.portal-login-body{
  margin:0;
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(67,124,255,.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(31,122,140,.16), transparent 30%),
    linear-gradient(135deg, #0f1f36 0%, #16304d 48%, #102742 100%);
  color:#182433;
}

/* 20260721 production inventory page separation */
.portal-page-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
}

.portal-page-actions .portal-login-btn,
.portal-page-actions .portal-link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:132px;
  min-height:44px;
  padding:10px 16px;
  text-decoration:none;
}

.portal-stock-list-head .portal-stock-create-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:168px;
  min-height:46px;
  padding:11px 18px;
  color:#fff;
  text-decoration:none;
}

.portal-stock-list-head .portal-stock-create-link:hover{
  color:#fff;
}

.portal-stock-list-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 20px;
  border-bottom:1px solid #e6ebf1;
  background:#f8fbfe;
}

.portal-stock-create-card{
  overflow:hidden;
}

.portal-stock-create-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.portal-stock-create-actions .portal-login-btn{
  min-width:260px;
}

.return-stock-view-switch{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

@media (max-width:760px){
  .portal-page-actions{
    width:100%;
    align-items:stretch;
    flex-direction:column;
  }
  .portal-page-actions .portal-login-btn,
  .portal-page-actions .portal-link-button{
    width:100%;
  }
  .portal-stock-list-controls,
  .portal-stock-create-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .portal-stock-list-head .portal-stock-create-link,
  .portal-stock-create-actions .portal-login-btn,
  .portal-stock-create-actions .portal-link-button{
    width:100%;
    min-width:0;
  }
  .return-stock-view-switch .portal-mini-action{
    flex:1 1 0;
    justify-content:center;
  }
}

.portal-login-shell{
  width:min(1060px, calc(100% - 40px));
  margin:0 auto;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(360px, .88fr) minmax(400px, .78fr);
  gap:70px;
  align-items:center;
}

.portal-login-brand{
  color:#fff;
  padding:28px 12px 28px 0;
}

.portal-login-tag,
.portal-eyebrow{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.portal-login-tag{
  background:rgba(255,255,255,.12);
  color:#fff;
  margin-bottom:18px;
  gap:8px;
}

.portal-login-tag img{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
}

.portal-login-brand h1{
  margin:0 0 16px;
  font-size:58px;
  letter-spacing:-.04em;
  line-height:.98;
}

.portal-login-brand p{
  max-width:460px;
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:17px;
  line-height:1.75;
}

.portal-login-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}

.portal-login-meta span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  font-size:13px;
  font-weight:700;
}

.portal-login-card{
  background:rgba(255,255,255,.98);
  border:1px solid rgba(214,222,232,.9);
  border-radius:28px;
  box-shadow:0 26px 70px rgba(7,18,37,.22);
  padding:34px 30px 28px;
}

.portal-login-card__head h2{
  margin:0 0 8px;
  font-size:28px;
  letter-spacing:-.03em;
}

.portal-login-card__head p{
  margin:0 0 22px;
  color:#6c7a91;
}

.portal-login-form{
  display:grid;
  gap:16px;
}

.portal-field{
  display:grid;
  gap:8px;
}

.portal-field span{
  font-size:13px;
  font-weight:700;
  color:#46576f;
}

.portal-field input,
.portal-field select,
.portal-field textarea{
  width:100%;
  border:1px solid #d5deea;
  border-radius:14px;
  padding:13px 14px;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.12);
}

.portal-login-btn{
  border:none;
  border-radius:14px;
  padding:13px 16px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.portal-login-btn:hover{
  filter:brightness(1.02);
}

.portal-login-foot{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:20px;
  color:#6c7a91;
  font-size:13px;
}

.portal-register-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}

.portal-register-actions a,
.portal-register-actions button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:11px 14px;
  border:0;
  border-radius:14px;
  background:#e7f3f5;
  color:#0b6f7a;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  font-family:inherit;
  cursor:pointer;
}

.portal-register-actions a:hover,
.portal-register-actions button:hover{
  background:#d8eef2;
}

.portal-alert{
  padding:12px 14px;
  border-radius:14px;
  margin-bottom:18px;
  font-size:13px;
}

.portal-alert--danger{
  background:#fdecec;
  border:1px solid #f2c1c1;
  color:#8b1d1d;
}

.portal-hero{
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(260px, .65fr);
  gap:22px;
  padding:30px;
  border-radius:28px;
  color:#fff;
  box-shadow:0 24px 60px rgba(17,24,39,.12);
}

.portal-hero--main{
  background:linear-gradient(135deg, #17324d, #1f7a8c);
}

.portal-hero--sub{
  background:linear-gradient(135deg, #1c3f6e, #206bc4);
}

.portal-hero--super{
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(72,187,203,.22), transparent 30%),
    linear-gradient(135deg, #102842 0%, #173f59 48%, #0f6f7a 100%);
}

.portal-eyebrow{
  background:rgba(255,255,255,.12);
  color:#fff;
  margin-bottom:14px;
}

.portal-hero__title{
  margin:0 0 10px;
  font-size:36px;
  line-height:1.1;
}

.portal-hero__desc{
  margin:0;
  max-width:760px;
  color:rgba(255,255,255,.84);
  line-height:1.8;
}

.portal-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.portal-chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.portal-chip--success{background:rgba(47,179,68,.24)}
.portal-chip--warning{background:rgba(245,159,0,.24)}
.portal-chip--danger{background:rgba(214,57,57,.24)}
.portal-chip--info{background:rgba(32,107,196,.28)}

.portal-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(32,107,196,.18);
  background:#fff;
  color:#1f3b57;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.portal-pill:hover{
  border-color:rgba(32,107,196,.36);
  color:#206bc4;
  text-decoration:none;
}

.portal-pill--active{
  background:#206bc4;
  border-color:#206bc4;
  color:#fff;
}

.portal-pill--active:hover{
  color:#fff;
}

.portal-inventory-switch{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:0;
}

.portal-inventory-switch__item{
  display:grid;
  gap:5px;
  min-height:74px;
  padding:16px 18px;
  border:1px solid #dbe6f2;
  border-radius:18px;
  background:#fff;
  color:#1f3b57;
  text-decoration:none;
  box-shadow:0 14px 34px rgba(15,35,55,.06);
}

.portal-inventory-switch__item strong{
  color:#17324d;
  font-size:15px;
}

.portal-inventory-switch__item span{
  color:#6c7a91;
  font-size:13px;
  line-height:1.45;
}

.portal-inventory-switch__item.is-active{
  border-color:#206bc4;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  box-shadow:0 20px 46px rgba(32,107,196,.2);
}

.portal-inventory-switch__item.is-active strong,
.portal-inventory-switch__item.is-active span{
  color:#fff;
}

.portal-inventory-switch__item:hover{
  text-decoration:none;
  border-color:#206bc4;
}

.portal-inbound-card{
  overflow:hidden;
  border-color:#dbe6f2;
}

.portal-inbound-form{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:18px;
  padding:24px;
  align-items:start;
}

.portal-inbound-section{
  display:grid;
  gap:14px;
  min-width:0;
  padding:18px;
  border:1px solid #e6eef6;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15, 38, 71, .05);
  align-items:start;
}

.portal-inbound-section .portal-form-field{
  align-self:start;
  width:100%;
}

.portal-inbound-section__head{
  display:grid;
  gap:4px;
}

.portal-inbound-section__head strong{
  color:#10284b;
  font-size:1rem;
}

.portal-inbound-section__head span{
  color:#65748c;
  font-size:.86rem;
  line-height:1.55;
}

.portal-inbound-section--sku,
.portal-inbound-section--logistics{
  grid-column:1 / -1;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.portal-inbound-section--image{
  background:#f8fbff;
}

.portal-inbound-section--details{
  grid-column:1 / -1;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.portal-inbound-field--wide{
  grid-column:1 / -1;
}

.portal-inbound-image-field .pod-image-uploader{
  display:grid;
  grid-template-columns:96px minmax(0, 1fr);
  align-items:center;
  gap:12px;
  max-width:none;
}

.portal-inbound-image-field .pod-image-uploader__preview,
.portal-inbound-image-field .pod-image-uploader__add{
  width:96px;
  height:96px;
  min-height:96px;
  border-radius:14px;
}

.portal-inbound-image-field .pod-image-uploader__meta{
  align-self:center;
  min-width:0;
  max-width:none;
  line-height:1.55;
}

.portal-inbound-image-field .pod-image-uploader__filename{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portal-inbound-section input:not([type="file"]):not([type="checkbox"]),
.portal-inbound-section select{
  height:48px;
  min-height:48px;
}

.portal-inbound-section textarea{
  min-height:104px;
}

.portal-inbound-submit{
  display:flex;
  justify-content:flex-end;
  padding-top:4px;
}

.portal-inbound-submit .portal-login-btn{
  width:min(100%, 320px);
}

.portal-inbound-card .portal-card-header--split a.portal-inbound-mode-link{
  display:flex;
  flex:0 0 auto;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:210px;
  min-height:58px;
  padding:10px 18px;
  border-radius:14px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  box-shadow:0 10px 22px rgba(26,103,154,.18);
  color:#fff;
  text-decoration:none;
}

.portal-inbound-card .portal-card-header--split a.portal-inbound-mode-link:hover{
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 13px 26px rgba(26,103,154,.22);
}

.portal-inbound-mode-link strong{
  font-size:15px;
  line-height:1.3;
}

.portal-inbound-mode-link small{
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:600;
}

.portal-inbound-bulk-card .portal-card-header--split a.portal-inbound-bulk-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:12px 18px;
  border-radius:14px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  box-shadow:0 10px 22px rgba(26,103,154,.18);
  color:#fff;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}

.portal-inbound-bulk-card .portal-card-header--split a.portal-inbound-bulk-download:hover{
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 13px 26px rgba(26,103,154,.22);
}

.portal-inbound-bulk-body{
  display:grid;
  gap:16px;
  padding:22px 24px 24px;
}

.portal-inbound-bulk-types{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.portal-inbound-bulk-type{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  padding:15px 16px;
  border:1px solid #dce8f3;
  border-radius:15px;
  background:linear-gradient(135deg, #f8fbff, #f4f9fc);
  color:#52637a;
}

.portal-inbound-bulk-type__label{
  flex:0 0 auto;
  padding:5px 10px;
  border-radius:999px;
  background:#dfeefd;
  color:#165d9d;
  font-size:13px;
  font-weight:900;
  line-height:1.4;
}

.portal-inbound-bulk-type p{
  margin:3px 0 0;
  line-height:1.55;
}

.portal-inbound-bulk-upload{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 190px;
  gap:14px;
  align-items:stretch;
}

.portal-inbound-bulk-file{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  min-width:0;
  min-height:76px;
  padding:13px 15px;
  border:1.5px dashed #a9c7df;
  border-radius:16px;
  background:#fbfdff;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.portal-inbound-bulk-file:hover,
.portal-inbound-bulk-file:focus-within{
  border-color:#2781b5;
  background:#f5fbff;
  box-shadow:0 0 0 4px rgba(39,129,181,.09);
}

.portal-inbound-bulk-file.is-selected{
  border-style:solid;
  border-color:#2a9a75;
  background:#f3fbf7;
}

.portal-inbound-bulk-file input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.portal-inbound-bulk-file__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:13px;
  background:#e7f4ec;
  color:#207a51;
  font-size:11px;
  font-weight:900;
  letter-spacing:.03em;
}

.portal-inbound-bulk-file__copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.portal-inbound-bulk-file__copy strong{
  color:#17324d;
  font-size:15px;
  font-weight:900;
}

.portal-inbound-bulk-file__copy small{
  overflow:hidden;
  color:#718198;
  font-size:13px;
  font-weight:500;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portal-inbound-bulk-file.is-selected .portal-inbound-bulk-file__copy small{
  color:#207a51;
  font-weight:700;
}

.portal-inbound-bulk-file__browse{
  padding:9px 13px;
  border:1px solid #cfe0ec;
  border-radius:11px;
  background:#fff;
  color:#166779;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

.portal-inbound-bulk-submit{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:100%;
  min-height:76px;
  box-shadow:0 12px 25px rgba(26,103,154,.18);
}

.portal-inbound-bulk-submit strong{
  font-size:16px;
}

.portal-inbound-bulk-submit small{
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:600;
}

.portal-inbound-bulk-footnote{
  margin:0;
  color:#718198;
  font-size:13px;
  line-height:1.55;
}

.portal-inbound-bulk-alert,
.portal-inbound-bulk-summary{
  margin:0;
  border-radius:12px;
  padding:12px 14px;
}

.portal-inbound-bulk-summary.is-ready{
  color:#176c43;
  background:#eaf8f0;
}

.portal-inbound-bulk-summary.is-error{
  color:#9f2d2d;
  background:#fff0f0;
}

.portal-inbound-bulk-preview{
  max-height:520px;
  border:1px solid #e1e8f0;
  border-radius:14px;
}

.portal-inbound-bulk-confirm{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

@media (max-width: 760px){
  .portal-inbound-card .portal-card-header--split{
    align-items:stretch;
    flex-direction:column;
  }
  .portal-inbound-card .portal-card-header--split a.portal-inbound-mode-link{
    width:100%;
    min-width:0;
  }
  .portal-inbound-bulk-card .portal-card-header--split{
    align-items:stretch;
    flex-direction:column;
  }
  .portal-inbound-bulk-card .portal-card-header--split a.portal-inbound-bulk-download{
    width:100%;
  }
  .portal-inbound-bulk-types,
  .portal-inbound-bulk-upload{
    grid-template-columns:1fr;
  }
  .portal-inbound-bulk-file{
    grid-template-columns:44px minmax(0, 1fr);
  }
  .portal-inbound-bulk-file__icon{
    width:44px;
    height:44px;
  }
  .portal-inbound-bulk-file__browse{
    grid-column:1 / -1;
    text-align:center;
  }
  .portal-inbound-bulk-submit{
    min-height:60px;
  }
}

@media (max-width: 980px){
  .portal-inbound-form,
  .portal-inbound-section--sku,
  .portal-inbound-section--details,
  .portal-inbound-section--logistics{
    grid-template-columns:1fr;
  }

  .portal-inbound-section--image,
  .portal-inbound-section--details{
    grid-column:1 / -1;
  }
}

.portal-bundle-builder{
  display:grid;
  gap:12px;
}

.portal-bundle-builder textarea[hidden]{
  display:none;
}

.portal-bundle-builder__rows{
  display:grid;
  gap:10px;
}

.portal-bundle-row{
  display:grid;
  grid-template-columns:minmax(220px, 1fr) 120px auto;
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid #dbe6f2;
  border-radius:14px;
  background:#f8fbff;
}

.portal-side-note{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}

.portal-side-note strong{
  display:block;
  margin-bottom:8px;
  font-size:14px;
}

.portal-side-note p{
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.7;
  font-size:13px;
}

.portal-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.portal-metrics--sub{
  align-items:stretch;
}

.portal-metrics--main{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  align-items:stretch;
}

.portal-metrics.portal-metrics--main{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.portal-metric-card{
  padding:22px;
  border-radius:22px;
  background:#fff;
  border:1px solid #e6ebf1;
  box-shadow:0 14px 32px rgba(17,24,39,.06);
}

.portal-metric-card span{
  display:block;
  color:#6c7a91;
  font-size:13px;
}

.portal-metric-card strong{
  display:block;
  margin-top:8px;
  font-size:32px;
  line-height:1.1;
}

.portal-metric-card em{
  display:block;
  margin-top:10px;
  color:#46576f;
  font-style:normal;
  font-size:13px;
}

.portal-super-hero{
  position:relative;
  overflow:hidden;
}

.portal-super-hero::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-120px;
  width:360px;
  height:360px;
  border-radius:50%;
  border:58px solid rgba(255,255,255,.06);
}

.portal-super-hero::after{
  content:"";
}

.portal-super-focus{
  position:relative;
  z-index:1;
  display:grid;
  gap:16px;
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
}

.portal-super-focus__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.portal-super-focus__head span{
  color:rgba(255,255,255,.78);
  font-size:13px;
  font-weight:700;
}

.portal-super-focus__head strong{
  font-size:40px;
  line-height:1;
}

.portal-super-focus__list{
  display:grid;
  gap:10px;
}

.portal-super-focus__list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  color:#fff;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
}

.portal-super-focus__list span{
  color:rgba(255,255,255,.82);
  font-size:13px;
}

.portal-super-focus__list strong{
  font-size:20px;
}

.portal-super-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.portal-metric-card--accent{
  color:#fff;
  background:linear-gradient(135deg, #17324d, #1f7a8c);
  border-color:transparent;
}

.portal-metric-card--accent span,
.portal-metric-card--accent em{
  color:rgba(255,255,255,.82);
}

.portal-alert-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.portal-alert-grid--main{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  align-items:stretch;
}

.portal-alert-grid--main .portal-alert-card{
  min-height:104px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.portal-alert-card{
  display:block;
  padding:20px 18px;
  border-radius:22px;
  border:1px solid #e6ebf1;
  background:#fff;
  color:#182433;
  box-shadow:0 14px 32px rgba(17,24,39,.06);
}

.portal-alert-card strong{
  display:block;
  margin-bottom:8px;
  font-size:16px;
}

.portal-alert-card p{
  margin:0;
  color:#46576f;
  line-height:1.75;
  font-size:13px;
}

.portal-alert-card--success{
  background:linear-gradient(180deg, #ffffff, #f4fbf6);
  border-color:#d6ebdb;
}

.portal-alert-card--warning{
  background:linear-gradient(180deg, #ffffff, #fff9ef);
  border-color:#f3dfb3;
}

.portal-alert-card--danger{
  background:linear-gradient(180deg, #ffffff, #fff2f2);
  border-color:#f1c9c9;
}

.portal-alert-card--info{
  background:linear-gradient(180deg, #ffffff, #f4f9ff);
  border-color:#d7e5f3;
}

.portal-setup-strip{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) minmax(420px, 1.25fr);
  gap:18px;
  align-items:center;
  padding:22px;
  border-radius:24px;
  background:linear-gradient(135deg, #fffaf0, #f7fbff);
  border:1px solid #f1dfb7;
  box-shadow:0 16px 38px rgba(17,24,39,.06);
}

.portal-setup-strip span{
  display:block;
  margin-bottom:6px;
  color:#a05f00;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}

.portal-setup-strip h2{
  margin:0;
  color:#17324d;
  font-size:22px;
}

.portal-setup-strip p{
  margin:8px 0 0;
  color:#46576f;
  font-size:13px;
  line-height:1.7;
}

.portal-setup-actions{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.portal-setup-actions a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid #e5d3aa;
  color:#17324d;
  font-size:13px;
  font-weight:900;
  text-align:center;
  text-decoration:none;
}

.portal-setup-actions a:hover{
  border-color:#d39a3a;
  color:#17324d;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(160,95,0,.12);
}

.portal-grid{
  display:grid;
  gap:18px;
}

.portal-grid--actions{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.portal-grid--sub-actions{
  align-items:stretch;
}

.portal-grid--sub-actions .portal-action-card{
  height:100%;
}

.portal-grid--main-actions{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  align-items:stretch;
}

.portal-grid.portal-grid--actions.portal-grid--main-actions{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.portal-grid--main-actions .portal-action-card{
  height:100%;
}

.portal-main-table-grid{
  align-items:start;
}

.portal-main-table-card .card-header{
  min-height:58px;
}

.portal-main-table{
  overflow-x:auto;
}

.portal-main-table .portal-table{
  min-width:0;
}

.portal-main-table--limited{
  max-height:360px;
  overflow:auto;
}

.portal-main-table--limited .portal-table thead th{
  position:sticky;
  top:0;
  z-index:2;
}

.portal-recent-orders-card{
  margin-bottom:0;
}

.portal-recent-orders-card .card-header{
  align-items:center;
  justify-content:space-between;
}

.portal-recent-orders-table{
  overflow-x:auto;
}

.portal-recent-orders-table .portal-table{
  min-width:0;
}

.portal-grid--split{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.portal-grid--split > *{
  min-width:0;
}

.portal-grid--split .table-responsive{
  max-width:100%;
}

.portal-super-command{
  padding:22px;
  border-radius:28px;
  background:#fff;
  border:1px solid #e6ebf1;
  box-shadow:0 18px 48px rgba(17,24,39,.08);
}

.portal-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.portal-section-head span{
  display:block;
  margin-bottom:4px;
  color:#1f7a8c;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.portal-section-head h2{
  margin:0;
  font-size:22px;
}

.portal-section-head a,
.portal-row-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#edf7fa;
  color:#0f6f7a;
  font-size:13px;
  font-weight:800;
}

.portal-section-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.portal-admin-quick-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin:0 0 18px;
}

.portal-admin-quick-link{
  display:grid;
  gap:5px;
  min-height:118px;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(180deg, #f8fbff, #fff);
  border:1px solid #dfe9f3;
  color:#17324d;
  text-decoration:none;
}

.portal-admin-quick-link:hover{
  color:#17324d;
  text-decoration:none;
  border-color:#b8d8e4;
  box-shadow:0 12px 24px rgba(17,24,39,.07);
}

.portal-admin-quick-link--primary{
  background:linear-gradient(135deg, #17324d, #1f7a8c);
  border-color:transparent;
  color:#fff;
}

.portal-admin-quick-link--primary:hover{
  color:#fff;
}

.portal-admin-quick-link span{
  color:#1f7a8c;
  font-size:12px;
  font-weight:900;
}

.portal-admin-quick-link--primary span,
.portal-admin-quick-link--primary em{
  color:rgba(255,255,255,.78);
}

.portal-admin-quick-link strong{
  font-size:17px;
  line-height:1.25;
}

.portal-admin-quick-link em{
  color:#607089;
  font-size:12px;
  font-style:normal;
  line-height:1.55;
}

.portal-command-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.portal-code-lookup{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) minmax(280px, 380px) minmax(132px, auto);
  gap:16px;
  align-items:stretch;
  margin:0 0 18px;
  padding:18px;
  border-radius:26px;
  background:
    radial-gradient(circle at 0 0, rgba(31,122,140,.12), transparent 32%),
    linear-gradient(135deg, #f6fbfd, #fff 58%, #eef8fb);
  border:1px solid #d6e8ef;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
}

.portal-code-lookup__intro,
.portal-code-lookup__field,
.portal-code-result__body{
  display:block;
}

.portal-code-lookup__eyebrow{
  display:inline-flex;
  margin-bottom:8px;
  padding:5px 10px;
  border-radius:999px;
  background:#dff1f5;
  color:#0f6f7a;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.portal-code-lookup__intro strong{
  display:block;
  color:#17324d;
  font-size:20px;
  letter-spacing:-.02em;
}

.portal-code-lookup__intro p{
  margin:8px 0 0;
  color:#6c7a91;
  font-size:13px;
  line-height:1.7;
}

.portal-code-lookup__field span{
  display:block;
  margin:0 0 6px;
  color:#46576f;
  font-weight:800;
}

.portal-code-lookup__field input{
  width:100%;
  height:54px;
  border:1px solid #cbdde7;
  border-radius:18px;
  padding:0 16px;
  outline:none;
  background:#fff;
  color:#17324d;
  font-size:16px;
  font-weight:800;
  letter-spacing:.04em;
}

.portal-code-lookup__field input:focus{
  border-color:#1f7a8c;
  box-shadow:0 0 0 3px rgba(31,122,140,.12);
}

.portal-code-lookup button,
.portal-code-result a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 20px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg, #0f6f7a, #2477d8);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(15,111,122,.18);
}

.portal-code-lookup button{
  flex-direction:column;
}

.portal-code-lookup button strong,
.portal-code-lookup button em{
  display:block;
}

.portal-code-lookup button em{
  margin-top:2px;
  opacity:.76;
  font-size:11px;
  font-style:normal;
}

.portal-code-result{
  display:flex;
  align-items:center;
  gap:16px;
  margin:0 0 18px;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(135deg, #edf7fa, #fff);
  border:1px solid #cde6ed;
  box-shadow:0 14px 30px rgba(17,24,39,.05);
}

.portal-code-result__icon{
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#0f6f7a;
  color:#fff;
  font-size:22px;
  font-weight:900;
}

.portal-code-result__body{
  flex:1 1 auto;
  min-width:0;
}

.portal-code-result span{
  display:block;
  color:#0f6f7a;
  font-size:12px;
  font-weight:900;
}

.portal-code-result strong{
  display:block;
  margin-top:4px;
  color:#17324d;
  font-size:20px;
}

.portal-code-result em{
  display:block;
  margin-top:4px;
  color:#46576f;
  font-size:13px;
  font-style:normal;
}

.portal-code-result--empty{
  background:#fff8e8;
  border-color:#ffe0a3;
}

.portal-code-result--empty .portal-code-result__icon{
  background:#b7791f;
}

.portal-command-group{
  display:grid;
  gap:12px;
  padding:16px;
  border-radius:22px;
  background:linear-gradient(180deg, #f8fbff, #fff);
  border:1px solid #dfe9f3;
}

.portal-command-group h3{
  margin:0;
  font-size:15px;
  color:#17324d;
}

.portal-command-list{
  display:grid;
  gap:10px;
}

.portal-command-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  color:#182433;
  background:#fff;
  border:1px solid #e6ebf1;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.portal-command-item:hover{
  transform:translateY(-1px);
  border-color:#b8d8e4;
  box-shadow:0 12px 24px rgba(17,24,39,.07);
}

.portal-command-item span,
.portal-command-item strong,
.portal-command-item em{
  display:block;
}

.portal-command-item strong{
  font-size:14px;
}

.portal-command-item em{
  margin-top:4px;
  color:#6c7a91;
  font-style:normal;
  font-size:12px;
  line-height:1.45;
}

.portal-command-item b{
  flex:0 0 auto;
  padding:6px 8px;
  border-radius:999px;
  background:#edf7fa;
  color:#0f6f7a;
  font-size:11px;
}

.portal-super-card{
  overflow:hidden;
}

.portal-card-header--split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.portal-card-header--split p{
  margin:6px 0 0;
  color:#6c7a91;
  font-size:13px;
}

.portal-card-header--split a:not(.btn){
  flex:0 0 auto;
  color:#0f6f7a;
  font-size:13px;
  font-weight:800;
}

.portal-table-sub{
  display:block;
  margin-top:4px;
  color:#6c7a91;
  font-size:12px;
}

.portal-inventory-hero .portal-hero__desc{
  max-width:680px;
}

.portal-inventory-panel{
  overflow:hidden;
}

.portal-inventory-list{
  display:grid;
}

.portal-inventory-list--cards{
  gap:12px;
  padding:16px;
}

.portal-inventory-item{
  display:grid;
  grid-template-columns:86px minmax(220px, 1fr) minmax(280px, .85fr) auto;
  gap:16px;
  align-items:center;
  padding:16px 18px;
  border:1px solid #e6ebf1;
  border-radius:20px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-inventory-item:first-child{
  border-top:1px solid #e6ebf1;
}

.portal-inventory-item--selectable{
  grid-template-columns:78px 86px minmax(220px, 1fr) minmax(280px, .85fr) auto;
}

.portal-inventory-thumb{
  width:72px;
  height:72px;
}

.portal-inventory-thumb button,
.portal-inventory-thumb span{
  display:flex;
  width:72px;
  height:72px;
  padding:0;
  align-items:center;
  justify-content:center;
  border:1px solid #dbe6f2;
  border-radius:18px;
  overflow:hidden;
  background:#f6f9fc;
  color:#7a8899;
  font-size:12px;
  font-weight:800;
}

.portal-inventory-thumb__empty{
  line-height:1.35;
  text-align:center;
}

.portal-inventory-thumb button{
  cursor:zoom-in;
}

.portal-inventory-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-inventory-title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.portal-inventory-title strong{
  font-size:16px;
}

.portal-inventory-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:9px;
  color:#6c7a91;
  font-size:13px;
}

.portal-inventory-owner{
  color:#0f6f7a;
  font-weight:900;
}

.portal-inventory-filter-bar{
  display:grid;
  grid-template-columns:minmax(240px, 1.3fr) minmax(190px, 1fr) minmax(220px, 1.1fr) repeat(4, auto) minmax(160px, auto);
  gap:12px;
  align-items:end;
  padding:16px;
  border-bottom:1px solid #e6ebf1;
  background:#f8fbff;
}

.portal-inventory-filter-bar label{
  display:grid;
  gap:6px;
  margin:0;
  color:#17324d;
  font-size:13px;
  font-weight:800;
}

.portal-inventory-filter-bar__search{
  min-width:240px;
}

.portal-inventory-filter-bar__total{
  justify-self:end;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:0 14px;
  background:#edf8fb;
  color:#0f6f7a;
  font-size:13px;
  font-weight:900;
}

.portal-inventory-warning{
  color:#a13d2d !important;
  font-weight:900;
}

.portal-inventory-bulk-form{
  display:grid;
  gap:0;
}

.portal-inventory-bulk-bar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid #e6ebf1;
  background:#fff;
}

.portal-inventory-bulk-check,
.portal-inventory-select{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  color:#17324d;
  font-size:13px;
  font-weight:900;
}

.portal-inventory-bulk-check input,
.portal-inventory-select input{
  width:16px;
  height:16px;
  accent-color:#0f7f8c;
}

.portal-inventory-bulk-count{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#edf8fb;
  color:#0f6f7a;
  font-size:13px;
  font-weight:800;
}

.portal-inventory-bulk-bar small{
  flex:1 1 320px;
  color:#6c7a91;
  line-height:1.55;
}

.portal-inventory-bulk-bar .portal-mini-action:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.portal-inventory-review-section{
  display:grid;
  gap:14px;
  padding:18px 0 0;
}

.portal-section-heading{
  display:grid;
  gap:4px;
  padding:0 16px;
}

.portal-section-heading h3{
  margin:0;
  color:#10233f;
  font-size:18px;
  font-weight:950;
}

.portal-section-heading p{
  margin:0;
  color:#5f718a;
  font-size:13px;
  line-height:1.6;
}

.portal-inventory-select{
  align-self:center;
  justify-self:start;
  padding:8px 10px;
  border:1px solid #dbe6f2;
  border-radius:999px;
  background:#f8fbff;
}

.portal-inventory-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.portal-inventory-stats span{
  display:grid;
  gap:4px;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fbff;
  color:#6c7a91;
  font-size:12px;
}

.portal-inventory-stats strong{
  color:#17324d;
  font-size:14px;
}

.portal-inventory-actions{
  display:flex;
  justify-content:flex-end;
}

.inventory-card{
  background:#fff;
  border:1px solid #d9e7ee;
  border-radius:18px;
  box-shadow:0 18px 48px rgba(15,31,45,.08);
  overflow:hidden;
}

.inventory-card__header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:22px 24px;
  border-bottom:1px solid #e6eef4;
  background:#fff;
}

.inventory-card__title{
  margin:0;
  color:#10233f;
  font-size:22px;
  font-weight:900;
  letter-spacing:0;
}

.inventory-card__desc{
  margin:6px 0 0;
  color:#55708a;
  line-height:1.65;
}

.inventory-card__body{
  padding:22px 24px;
}

.inventory-card--sync-hub .inventory-card__body{
  display:grid;
  gap:16px;
}

.inventory-card--preview-actions .inventory-card__body{
  padding:16px 24px;
}

.inventory-sync-state-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.inventory-sync-state{
  display:grid;
  gap:4px;
  min-height:76px;
  padding:14px 16px;
  border:1px solid #d9e7ee;
  border-radius:14px;
  background:#f8fbfd;
}

.inventory-sync-state span{
  color:#55708a;
  font-size:12px;
  font-weight:800;
}

.inventory-sync-state strong{
  color:#10233f;
  font-size:22px;
  font-weight:900;
  line-height:1.1;
}

.inventory-flow{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.inventory-flow--compact{
  margin-bottom:0;
}

.inventory-flow--compact .inventory-flow__item{
  min-height:96px;
}

.inventory-flow__item{
  display:grid;
  min-height:112px;
  gap:6px;
  padding:14px 16px;
  border:1px solid #d9e7ee;
  border-radius:14px;
  background:#fbfdff;
}

.inventory-flow__step{
  color:#0f8191;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.inventory-flow__title{
  color:#10233f;
  font-size:16px;
  font-weight:900;
}

.inventory-flow__desc{
  color:#55708a;
  line-height:1.55;
  font-size:13px;
}

.inventory-action-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,340px);
  gap:16px;
  align-items:start;
}

.inventory-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
  align-items:stretch;
}

.inventory-actions form,
.inventory-actions a{
  display:flex;
  min-width:0;
}

.inventory-actions button,
.inventory-actions a{
  width:100%;
  min-height:48px;
  border-radius:14px;
  font-weight:800;
  align-items:center;
  justify-content:center;
}

.inventory-actions--compact{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}

.inventory-actions--compact button,
.inventory-actions--compact a{
  min-height:44px;
}

.inventory-action-note{
  padding:14px 16px;
  border:1px solid #d9e7ee;
  border-radius:14px;
  background:#fbfdff;
  color:#55708a;
  line-height:1.6;
}

.inventory-action-note__footer{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #d9e7ee;
  color:#0f8191;
  font-weight:900;
}

.inventory-action-note strong{
  display:block;
  margin-bottom:6px;
  color:#10233f;
  font-weight:900;
}

.inventory-feedback{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #d9e7ee;
  border-radius:14px;
  background:#f8fbfd;
  color:#10233f;
  line-height:1.6;
  font-weight:700;
}

.inventory-feedback--success{
  border-color:#b8ead2;
  background:#effcf5;
  color:#0f6b44;
}

.inventory-feedback--warning{
  border-color:#ffe3a8;
  background:#fff8e8;
  color:#8a5b00;
}

.inventory-feedback--error{
  border-color:#ffd0d0;
  background:#fff3f3;
  color:#a13131;
}

.inventory-preview{
  margin-top:16px;
  border:1px solid #d9e7ee;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.inventory-preview__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid #e6eef4;
  background:#f8fbfd;
}

.inventory-preview__title{
  font-weight:900;
  color:#10233f;
}

.inventory-preview__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.inventory-preview__meta span{
  display:inline-flex;
  min-height:30px;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:#eef7fa;
  color:#0f4b63;
  font-weight:800;
}

.inventory-store-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid #e6eef4;
  background:#fff;
}

.inventory-store-card{
  display:grid;
  gap:6px;
  padding:10px 12px;
  border:1px solid #d9e7ee;
  border-radius:14px;
  background:#fbfdff;
}

.inventory-store-card__name{
  color:#10233f;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.inventory-store-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  color:#55708a;
  font-size:12px;
  font-weight:800;
}

.inventory-store-card__meta span{
  display:inline-flex;
  min-height:26px;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  background:#eef7fa;
}

.inventory-preview__toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid #e6eef4;
  background:#fff;
}

.inventory-preview__search input{
  width:100%;
  min-height:42px;
  padding:0 14px;
  border:1px solid #cfe0ec;
  border-radius:14px;
  color:#10233f;
}

.inventory-preview__filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.inventory-preview__filter{
  padding:9px 12px;
  border:0;
  border-radius:999px;
  background:#eef7fa;
  color:#0f4b63;
  font-weight:900;
  cursor:pointer;
}

.inventory-preview__filter.is-active{
  background:#0f8191;
  color:#fff;
}

.inventory-preview__table-wrap{
  max-height:min(620px,calc(100vh - 260px));
  overflow:auto;
  overscroll-behavior:contain;
}

.inventory-preview table{
  width:100%;
  min-width:760px;
  margin:0;
  border-collapse:collapse;
  table-layout:fixed;
}

.inventory-preview th,
.inventory-preview td{
  padding:9px 12px;
  border-top:1px solid #edf3f7;
  text-align:left;
  vertical-align:middle;
}

.inventory-preview th{
  position:sticky;
  top:0;
  z-index:1;
  background:#fbfdff;
  color:#55708a;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.inventory-preview th:nth-child(1),
.inventory-preview td:nth-child(1){
  width:26%;
}

.inventory-preview th:nth-child(2),
.inventory-preview td:nth-child(2){
  width:17%;
}

.inventory-preview th:nth-child(3),
.inventory-preview td:nth-child(3){
  width:28%;
}

.inventory-preview th:nth-child(4),
.inventory-preview td:nth-child(4){
  width:11%;
  text-align:center;
}

.inventory-preview th:nth-child(5),
.inventory-preview td:nth-child(5){
  width:18%;
}

.inventory-preview__sku{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:150px;
}

.inventory-preview__sku strong{
  white-space:nowrap;
}

.inventory-preview__ids{
  font-size:12px;
  color:#55708a;
}

.inventory-preview__ids summary{
  display:inline-flex;
  min-height:24px;
  align-items:center;
  color:#0f8191;
  font-weight:800;
  cursor:pointer;
}

.inventory-preview__ids div{
  margin-top:6px;
  padding-left:8px;
  border-left:3px solid #d9e7ee;
  line-height:1.5;
  word-break:break-all;
  max-width:320px;
}

.inventory-preview__rule{
  line-height:1.55;
  word-break:break-word;
}

.inventory-preview__qty{
  display:inline-flex;
  min-width:48px;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  background:#eef7fa;
  color:#10233f;
  font-size:16px;
}

.inventory-preview__ready{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#e6f7ee;
  color:#0f6b44;
  font-weight:900;
}

.inventory-preview__zero{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#fff7e4;
  color:#996200;
  font-weight:900;
}

.inventory-preview__warn{
  display:inline-flex;
  max-width:100%;
  padding:5px 9px;
  border-radius:12px;
  background:#fff7e4;
  color:#996200;
  font-weight:800;
  line-height:1.45;
}

.inventory-preview__empty{
  padding:16px;
  color:#55708a;
}

.inventory-preview__empty[hidden],
.inventory-preview__row[hidden]{
  display:none;
}

.inventory-preview__pager{
  position:sticky;
  bottom:0;
  z-index:2;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  border-top:1px solid #e6eef4;
  background:#f8fbfd;
  color:#55708a;
  font-weight:800;
}

.inventory-preview__pager-controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

.inventory-preview__pager button,
.inventory-preview__pager select{
  min-height:36px;
  padding:0 12px;
  border:1px solid #cfe0ec;
  border-radius:12px;
  background:#fff;
  color:#0f4b63;
  font-weight:800;
}

.inventory-preview__pager button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.inventory-preview__pager select{
  padding-right:28px;
}

@media (max-width:900px){
  .inventory-card__header,
  .inventory-preview__head,
  .inventory-preview__toolbar{
    grid-template-columns:1fr;
  }

  .inventory-flow,
  .inventory-sync-state-grid,
  .inventory-action-layout,
  .inventory-actions,
  .inventory-store-summary{
    grid-template-columns:1fr;
  }

  .inventory-preview__meta,
  .inventory-preview__filters{
    justify-content:flex-start;
  }

  .inventory-preview__pager{
    align-items:flex-start;
    flex-direction:column;
  }

  .return-stock-card__header,
  .return-stock-search{
    display:grid;
    grid-template-columns:1fr;
    justify-content:stretch;
  }

  .return-stock-search__input{
    min-width:0;
    width:100%;
  }

  .return-stock-search .portal-link-button{
    width:100%;
  }

  .inventory-preview__pager-controls{
    justify-content:flex-start;
  }
}

.tiktok-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.tiktok-stat-card{
  min-height:112px;
  display:grid;
  align-content:center;
  gap:8px;
  border:1px solid #d9e7ee;
  border-radius:16px;
  background:#fff;
  padding:22px 24px;
  box-shadow:0 18px 48px rgba(15,31,45,.08);
}

.tiktok-stat-card .text-secondary{
  font-size:13px;
  font-weight:800;
}

.tiktok-stat-card .stat-value{
  margin:0;
  color:#10233f;
  font-size:30px;
  line-height:1;
}

.store-auth-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.store-auth-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.platform-tabs{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.platform-tab{
  min-width:150px;
  height:48px;
  border:1px solid #d9e7ee;
  border-radius:14px;
  background:#f8fbfd;
  color:#55708a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.platform-tab.is-active{
  border-color:#108392;
  background:#108392;
  color:#fff;
  box-shadow:0 12px 30px rgba(16,131,146,.2);
}

.store-filter-row{
  display:grid;
  grid-template-columns:minmax(160px,240px) minmax(180px,260px) minmax(220px,1fr) auto auto;
  gap:12px;
  margin-bottom:18px;
}

.store-table-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-width:260px;
  max-width:360px;
}

.store-table-actions form{
  display:flex;
  min-width:0;
}

.store-table-actions .portal-mini-action{
  width:100%;
  justify-content:center;
  text-align:center;
  min-width:0;
  white-space:normal;
}

.store-action-note{
  grid-column:1/-1;
  display:block;
  max-width:100%;
  font-size:12px;
  line-height:1.5;
  color:#55708a;
  white-space:normal;
  overflow-wrap:anywhere;
}

.store-scope-warning{
  grid-column:1/-1;
  display:block;
  max-width:100%;
  font-size:12px;
  line-height:1.5;
  color:#9a5b00;
  background:#fff8e6;
  border:1px solid #ffe0a6;
  border-radius:10px;
  padding:8px 10px;
  white-space:normal;
  overflow-wrap:anywhere;
}

.store-name-cell strong{
  display:block;
}

.store-name-cell span{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.store-code-details{
  margin-top:4px;
  font-size:12px;
  color:#55708a;
}

.store-code-details summary{
  cursor:pointer;
  color:#0f8191;
  font-weight:800;
}

.store-code-details__full{
  display:block;
  margin-top:4px;
  max-width:240px;
  overflow-wrap:anywhere;
  line-height:1.45;
}

.store-help-note{
  border:1px solid #cbe6ee;
  background:#f4fbfd;
  color:#0f4b63;
  padding:16px 18px;
  border-radius:16px;
  margin-bottom:20px;
  line-height:1.65;
}

.tiktok-resource-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.tiktok-resource-card{
  display:grid;
  gap:10px;
  min-height:118px;
  border:1px solid #d9e7ee;
  border-radius:16px;
  background:#f8fbfd;
  padding:16px;
}

.tiktok-resource-card .portal-mini-action{
  justify-content:center;
  width:100%;
}

.tiktok-config-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.tiktok-api-summary{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}

.tiktok-api-summary__item{
  border:1px solid #d9e7ee;
  border-radius:16px;
  background:#f8fbfd;
  padding:14px 16px;
}

.tiktok-setup-page .table th,
.tiktok-setup-page .portal-table th{
  background:#f8fbfd;
  color:#55708a;
  font-size:13px;
  font-weight:800;
}

.tiktok-setup-page .table td,
.tiktok-setup-page .portal-table td{
  padding:14px 16px;
}

@media (max-width:900px){
  .tiktok-stat-grid,
  .tiktok-resource-grid,
  .tiktok-config-grid,
  .tiktok-api-summary,
  .store-filter-row{
    grid-template-columns:1fr;
  }

  .store-table-actions{
    grid-template-columns:1fr;
    max-width:none;
  }

  .store-auth-toolbar{
    align-items:flex-start;
  }
}

.portal-payload-preview{
  max-width:520px;
  max-height:260px;
  overflow:auto;
  white-space:pre-wrap;
  border:1px solid #e6eef4;
  border-radius:12px;
  background:#f8fbfd;
  padding:12px;
  color:#10233f;
  line-height:1.55;
}

.raw-order-id{
  display:grid;
  gap:4px;
  min-width:180px;
  max-width:260px;
}

.raw-order-id__short{
  color:#10233f;
  font-weight:800;
  overflow-wrap:anywhere;
}

.raw-order-id details{
  color:#55708a;
  font-size:12px;
  font-weight:700;
}

.raw-order-id summary{
  color:#0f8191;
  cursor:pointer;
  font-weight:800;
}

.raw-order-id__full{
  display:block;
  margin-top:4px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.tiktok-resource-action-note{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff7e4;
  color:#8a5b00;
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  white-space:nowrap;
}

.tiktok-resource-action-stack{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tiktok-resource-id{
  display:grid;
  gap:4px;
  min-width:180px;
  max-width:260px;
}

.tiktok-resource-id__short{
  color:#10233f;
  font-weight:800;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.tiktok-resource-id details{
  color:#55708a;
  font-size:12px;
  font-weight:700;
}

.tiktok-resource-id summary{
  color:#0f8191;
  cursor:pointer;
  font-weight:800;
}

.tiktok-resource-id__full{
  display:block;
  margin-top:4px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.tiktok-resource-summary{
  max-width:420px;
  line-height:1.55;
}

.tiktok-resource-summary__text{
  color:#10233f;
  overflow-wrap:anywhere;
}

.tiktok-events-filter{
  display:grid;
  grid-template-columns:minmax(160px,220px) minmax(160px,220px) minmax(180px,260px) minmax(220px,1fr) auto auto;
  gap:12px;
  align-items:end;
}

.tiktok-events-filter label{
  display:grid;
  gap:8px;
  font-weight:800;
  color:#10233f;
}

.tiktok-events-filter .portal-control{
  min-height:46px;
  border-radius:14px;
}

.tiktok-events-message{
  max-width:460px;
  white-space:normal;
  line-height:1.55;
}

@media (max-width:980px){
  .tiktok-events-filter{
    grid-template-columns:1fr;
  }
}

.sku-map-card{
  background:#fff;
  border:1px solid #d9e7ee;
  border-radius:18px;
  box-shadow:0 18px 48px rgba(15,31,45,.08);
  overflow:hidden;
}

.sku-map-card .card-header{
  padding:22px 24px;
  border-bottom:1px solid #e6eef4;
  background:#fff;
}

.sku-map-card .card-title{
  margin:0;
  color:#10233f;
  font-size:22px;
  font-weight:800;
  letter-spacing:0;
}

.sku-map-card .card-body{
  padding:22px 24px;
}

.pairing-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}

.pairing-actions form,
.pairing-actions a{
  display:flex;
  min-width:0;
}

.pairing-actions button,
.pairing-actions a{
  width:100%;
  min-height:48px;
  border-radius:14px;
  font-weight:800;
  align-items:center;
  justify-content:center;
}

.pairing-sync-feedback{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #d9e7ee;
  background:#f8fbfd;
  color:#10233f;
  line-height:1.6;
  font-weight:700;
}

.pairing-sync-feedback--success{
  border-color:#b8ead2;
  background:#effcf5;
  color:#0f6b44;
}

.pairing-sync-feedback--info{
  border-color:#cfe0ec;
  background:#f2f8fc;
  color:#0f4b63;
}

.pairing-sync-feedback--warning{
  border-color:#ffe3a8;
  background:#fff8e8;
  color:#8a5b00;
}

.pairing-sync-feedback--error{
  border-color:#ffd0d0;
  background:#fff3f3;
  color:#a13131;
}

.pairing-filter{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.pairing-filter a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 16px;
  border-radius:999px;
  background:#eef7fa;
  color:#0f4b63;
  text-decoration:none;
  font-weight:800;
}

.pairing-filter a.is-active{
  background:#108392;
  color:#fff;
}

.pairing-search{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 112px;
  gap:12px;
  align-items:end;
}

.pairing-search .portal-field{
  gap:8px;
}

.pairing-search input,
.pairing-search button{
  min-height:48px;
  border-radius:14px;
}

.pairing-product{
  display:flex;
  gap:12px;
  align-items:flex-start;
  width:260px;
  min-width:260px;
  max-width:260px;
}

.pairing-product img{
  width:58px;
  height:58px;
  flex:0 0 58px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #d9e7ee;
  background:#fff;
}

.pairing-product__body{
  min-width:0;
  display:grid;
  gap:5px;
}

.pairing-product__title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:178px;
  line-height:1.35;
  color:#10233f;
}

.pairing-product__meta{
  display:block;
  max-width:178px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pairing-product__details{
  font-size:12px;
  color:#0f8292;
}

.pairing-product__details summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
}

.pairing-product__details summary::-webkit-details-marker{
  display:none;
}

.pairing-product__details summary::after{
  content:"⌄";
  margin-left:6px;
  font-weight:900;
}

.pairing-product__details[open] summary::after{
  content:"⌃";
}

.pairing-product__details p{
  margin:6px 0 0;
  max-width:220px;
  color:#4f647a;
  line-height:1.55;
}

.pairing-attribute{
  display:grid;
  gap:6px;
  min-width:140px;
}

.pairing-attribute__line{
  display:flex;
  gap:6px;
  align-items:baseline;
}

.pairing-attribute__label{
  color:#6d7f90;
  font-size:12px;
  white-space:nowrap;
}

.pairing-attribute__value{
  font-weight:800;
  color:#10233f;
}

.pairing-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  background:#eef7fa;
  color:#0f4b63;
  white-space:nowrap;
}

.pairing-status--paired{
  background:#dff7ec;
  color:#0f6b44;
}

.pairing-status--pending{
  background:#fff4d8;
  color:#996200;
}

.pairing-status--unpaired{
  background:#f3f6f9;
  color:#5a6b7a;
}

.is-muted{
  opacity:.55;
}

.pairing-stock{
  display:grid;
  gap:4px;
  min-width:82px;
}

.pairing-stock__qty{
  font-size:18px;
  font-weight:900;
  color:#10233f;
  line-height:1.1;
}

.pairing-stock__qty--ready{
  color:#0f6b44;
}

.pairing-stock__hint{
  display:block;
  max-width:150px;
  color:#6d7f90;
  font-size:12px;
  line-height:1.45;
}

.mapping-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.mapping-action-form{
  display:inline;
}

.portal-panel__header .rule-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.rule-stat-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.rule-stat{
  padding:8px 12px;
  border-radius:999px;
  background:#eef7fa;
  color:#0f4b63;
  font-weight:800;
}

.rule-components{
  display:grid;
  gap:4px;
}

.rule-status-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:18px 24px 0;
}

.rule-status-tab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  border-radius:999px;
  background:#eef7fa;
  color:#0f4b63;
  font-weight:900;
  text-decoration:none;
}

.rule-status-tab.is-active{
  background:#108596;
  color:#fff;
}

.rule-action-note{
  color:#6b8197;
  font-size:12px;
  line-height:1.4;
}

.rule-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(320px, .92fr);
  gap:22px;
  align-items:start;
}

.rule-card{
  overflow:hidden;
  border:1px solid #d9e7ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 16px 42px rgba(15,31,45,.08);
}

.rule-card__header{
  padding:20px 22px;
  border-bottom:1px solid #e6eef4;
}

.rule-card__header h2{
  margin:0;
  color:#10233f;
  font-size:22px;
}

.rule-card__header p{
  margin:6px 0 0;
  color:#55708a;
  line-height:1.6;
}

.rule-card__body{
  padding:24px;
}

.rule-card__body.portal-account-form{
  display:block;
}

.rule-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.rule-grid .portal-field--wide{
  grid-column:1 / -1;
}

.rule-card .portal-field{
  gap:8px;
}

.rule-card .portal-field span{
  color:#10233f;
  font-size:14px;
}

.rule-card .portal-field em{
  min-height:34px;
  line-height:1.55;
}

.rule-card input,
.rule-card select,
.rule-card textarea{
  min-height:48px;
  border-radius:14px;
}

.rule-card textarea{
  min-height:118px;
  resize:vertical;
}

.rule-card select{
  max-width:100%;
}

.rule-help{
  display:grid;
  gap:12px;
}

.rule-guide{
  display:none;
  gap:12px;
}

.rule-guide.is-active{
  display:grid;
}

.rule-guide__title{
  margin:0;
  color:#10233f;
  font-size:18px;
}

.rule-guide__steps{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.rule-guide__steps li{
  border:1px solid #d9e7ee;
  border-radius:12px;
  padding:14px 16px;
  background:#f8fbfd;
  color:#52687d;
  line-height:1.58;
}

.rule-guide__steps strong{
  display:block;
  margin-bottom:4px;
  color:#0f4b63;
}

.rule-example{
  border-radius:8px;
  padding:2px 6px;
  background:#eef7fa;
  color:#0b7285;
  font-family:ui-monospace, SFMono-Regular, Consolas, monospace;
}

.rule-card .rule-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:22px;
  border-top:1px solid #e6eef4;
  padding-top:18px;
}

.rule-card .rule-actions .portal-login-btn,
.rule-card .rule-actions .portal-link-button{
  min-width:150px;
  min-height:48px;
}

.rule-mode-note,
.rule-field-note{
  display:grid;
  gap:6px;
  border-radius:12px;
  padding:14px 16px;
  background:#eef7fa;
  color:#0f4b63;
  line-height:1.55;
}

.rule-field-note{
  border:1px solid #cbe6ee;
  background:#f4fbfd;
}

.rule-field-note strong{
  color:#073a4b;
}

.production-match-preview{
  grid-column:1 / -1;
  display:grid;
  gap:12px;
  border:1px solid #cbe6ee;
  border-radius:14px;
  padding:16px;
  background:#f7fcfd;
  color:#4f667c;
  line-height:1.6;
}

.production-match-preview__flow{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.production-match-preview__box{
  border:1px solid #dbeaf1;
  border-radius:12px;
  padding:12px;
  background:#fff;
}

.production-match-preview__box strong{
  display:block;
  margin-bottom:4px;
  color:#0f4b63;
}

.production-match-preview__result{
  border-radius:12px;
  padding:12px 14px;
  background:#eaf7f9;
  color:#073a4b;
}

.is-rule-hidden{
  display:none !important;
}

.sku-rule-create{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  padding:0 24px 20px;
}

.sku-rule-create a{
  min-height:48px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.sku-rule-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
}

.sku-rule-summary__text{
  display:grid;
  gap:8px;
  min-width:0;
}

.sku-rule-summary__title{
  margin:0;
  color:#10233f;
  font-size:20px;
  font-weight:900;
  letter-spacing:0;
}

.sku-rule-summary__desc{
  margin:0;
  color:#55708a;
  line-height:1.7;
}

.sku-rule-summary__stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.sku-rule-summary__stat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  background:#eef7fa;
  color:#0f4b63;
  font-weight:900;
}

.sku-rule-summary__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.sku-rule-summary__actions a{
  min-height:44px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.pairing-preview{
  display:grid;
  gap:4px;
}

.pairing-preview__label{
  font-size:12px;
  color:#6d7f90;
}

.pairing-preview__sku{
  font-weight:800;
  color:#10233f;
}

.pairing-preview__warn{
  font-size:12px;
  color:#996200;
}

.pairing-preview__available{
  font-size:15px;
  font-weight:900;
  color:#0f6b44;
}

.pairing-preview__limit{
  font-size:12px;
  color:#6d7f90;
}

.pairing-preview__details{
  margin-top:4px;
  font-size:12px;
  color:#0f8292;
}

.pairing-preview__details summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
}

.pairing-preview__details summary::-webkit-details-marker{
  display:none;
}

.pairing-preview__details summary::after{
  content:"⌄";
  margin-left:6px;
  font-weight:900;
}

.pairing-preview__details[open] summary::after{
  content:"⌃";
}

.pairing-preview__component{
  display:block;
  margin-top:5px;
  color:#10233f;
  line-height:1.45;
}

.pairing-preview__component small{
  display:block;
  color:#6d7f90;
}

.sku-map-table{
  border-top:1px solid #e6eef4;
  overflow-x:auto;
}

.sku-map-table .portal-table{
  margin:0;
  min-width:1180px;
}

.sku-map-table .portal-table th{
  padding:14px 18px;
  background:#f8fbfd;
  color:#55708a;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

.sku-map-table .portal-table td{
  padding:18px;
  vertical-align:middle;
  border-top:1px solid #edf3f7;
}

.sku-map-table .portal-table tbody tr:hover{
  background:#fbfdff;
}

.pairing-local{
  display:grid;
  gap:5px;
  min-width:180px;
  color:#10233f;
}

.pairing-local__label{
  color:#6d7f90;
  font-size:12px;
}

.pairing-local__main{
  font-weight:800;
}

.pairing-row-action{
  min-height:38px;
  border-radius:12px;
  padding:8px 14px;
  font-weight:800;
}

@media (max-width:900px){
  .pairing-actions,
  .pairing-search,
  .sku-rule-summary{
    grid-template-columns:1fr;
  }

  .sku-rule-summary__actions{
    justify-content:stretch;
  }

  .sku-rule-summary__actions a,
  .sku-rule-create a{
    flex:1;
  }

  .sku-rule-create{
    justify-content:stretch;
  }
}

.portal-inventory-upload{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr);
  gap:16px;
  align-items:center;
  padding:12px;
  border:1px solid #d5deea;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-inventory-upload__thumb{
  position:relative;
  display:flex;
  width:112px;
  height:112px;
  padding:0;
  align-items:center;
  justify-content:center;
  border:1px dashed #bfd0e3;
  border-radius:20px;
  overflow:hidden;
  background:#f5f8fc;
  color:#6c7a91;
  font-size:13px;
  font-weight:800;
  text-align:center;
  cursor:pointer;
}

button.portal-inventory-upload__thumb{
  appearance:none;
  -webkit-appearance:none;
}

.portal-inventory-upload__thumb img{
  position:absolute;
  inset:0;
  display:none;
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-inventory-upload__thumb img.is-ready{
  display:block;
}

.portal-inventory-upload__thumb .is-hidden{
  display:none;
}

.portal-inventory-upload__input,
.portal-inventory-upload input[type="file"]{
  display:none!important;
}

.portal-inventory-upload__meta{
  display:grid;
  gap:10px;
  align-content:center;
}

.portal-detail-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.portal-back-link{
  display:inline-flex;
  margin-bottom:12px;
  color:#0f6f7a;
  font-size:13px;
  font-weight:800;
}

.portal-detail-head h1{
  margin:0;
  font-size:32px;
}

.portal-detail-head p{
  margin:8px 0 0;
  color:#6c7a91;
}

.portal-detail-card{
  overflow:hidden;
}

.portal-detail-image{
  display:flex;
  width:min(100%, 420px);
  aspect-ratio:4 / 3;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #dbe6f2;
  border-radius:22px;
  overflow:hidden;
  background:#f6f9fc;
  color:#6c7a91;
  font-weight:800;
  cursor:zoom-in;
}

.portal-detail-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-detail-image--empty{
  cursor:default;
}

.portal-image-replace-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.portal-image-replace-form.portal-inventory-upload{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr);
  align-items:center;
  padding:12px;
}

.portal-image-replace-form input[type="file"]{
  flex:1 1 220px;
  border:1px solid #d5deea;
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
}

.portal-detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  padding:18px;
}

.portal-detail-grid div{
  padding:14px 16px;
  border:1px solid #e6ebf1;
  border-radius:16px;
  background:#f8fbff;
}

.portal-detail-grid span{
  display:block;
  color:#6c7a91;
  font-size:12px;
  margin-bottom:6px;
}

.portal-detail-grid strong{
  color:#17324d;
}

.portal-detail-note{
  margin:0 18px 18px;
  padding:14px;
  border-radius:16px;
  background:#f8fbff;
  color:#46576f;
  line-height:1.7;
}

.portal-detail-actions{
  grid-column:1 / -1;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn-outline-danger{
  background:#fff;
  border-color:#f2c1c1;
  color:#b42318;
}

.portal-action-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  min-height:166px;
  padding:24px 22px 22px;
  border-radius:22px;
  background:
    radial-gradient(circle at 100% 0, rgba(18,128,139,.24), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fdff);
  border:1px solid #91c6d3;
  color:#182433;
  box-shadow:0 18px 42px rgba(17,24,39,.13);
  text-decoration:none;
  overflow:hidden;
  cursor:pointer;
  opacity:1;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.portal-action-card::after{
  content:"";
  display:none;
}

.portal-action-card:hover{
  transform:translateY(-2px);
  border-color:#0f7480;
  box-shadow:0 22px 48px rgba(15,111,122,.18);
  background:
    radial-gradient(circle at 100% 0, rgba(18,128,139,.25), transparent 38%),
    linear-gradient(180deg, #ffffff, #eefbff);
}

.portal-action-card:focus-visible{
  outline:3px solid rgba(32,107,196,.32);
  outline-offset:3px;
}

.portal-action-card.is-disabled,
.portal-action-card[aria-disabled="true"]{
  cursor:not-allowed;
  opacity:.56;
  box-shadow:none;
  border-style:dashed;
  pointer-events:none;
}

.portal-action-card--primary{
  background:linear-gradient(135deg, #1c3f6e, #206bc4);
  color:#fff;
  border-color:transparent;
}

.portal-action-card--primary p{
  color:rgba(255,255,255,.85);
}

.portal-action-card__cta{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:flex-end;
  min-width:84px;
  height:38px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg, #0f7480, #206bc4);
  color:#fff;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:0 12px 28px rgba(15,116,128,.2);
  transition:transform .16s ease, background .16s ease;
}

.portal-action-card__cta::after{
  content:"→";
  margin-left:8px;
  font-weight:900;
}

.portal-action-card:hover .portal-action-card__cta{
  background:linear-gradient(135deg, #135e67, #164f94);
  transform:translateY(-1px);
}

.portal-action-card__title{
  font-size:18px;
  font-weight:900;
  margin-bottom:8px;
}

.portal-action-card p{
  margin:0;
  color:#6c7a91;
  line-height:1.7;
  font-size:13px;
}

.portal-action-card{
  gap:18px;
  min-height:180px;
  padding:24px;
}

.portal-action-card__title,
.portal-action-card p{
  position:relative;
  z-index:1;
}

.portal-action-card__cta{
  z-index:2;
}

.portal-action-card__cta::after{
  content:"\2192";
}

.portal-account-form{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  align-items:start;
}

.portal-field--wide,
.portal-account-form .portal-field--wide{
  grid-column:1 / -1;
}

.portal-account-form .portal-field{
  display:grid;
  gap:8px;
  align-content:start;
  color:#17324d;
  font-weight:700;
}

.portal-account-form .portal-field:nth-last-child(2),
.portal-account-form .portal-field:has(textarea){
  grid-column:1 / -1;
}

.portal-account-form input,
.portal-account-form select,
.portal-account-form textarea{
  width:100%;
  border:1px solid #d5deea;
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
  color:#182433;
  font-size:14px;
  outline:none;
  min-height:48px;
}

.portal-account-form textarea{
  resize:vertical;
  min-height:106px;
}

.portal-account-form input:focus,
.portal-account-form select:focus,
.portal-account-form textarea:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.12);
}

.portal-account-form input[type="checkbox"]{
  width:auto;
  margin-right:8px;
}

.portal-account-form em{
  color:#6c7a91;
  font-size:12px;
  font-style:normal;
  line-height:1.6;
}

.portal-account-form .pod-image-uploader{
  margin-top:2px;
}

.portal-account-form .portal-login-btn{
  grid-column:1 / -1;
}

.portal-form-error{
  color:#b42318;
  font-size:12px;
  font-weight:700;
}

.portal-form-error-panel{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid #f4b8b0;
  border-radius:16px;
  background:#fff4f2;
  color:#9f1f14;
}

.portal-form-error-panel strong{
  font-size:14px;
}

.portal-form-error-panel span{
  color:#b42318;
  font-size:12px;
  font-weight:700;
}

.portal-mode-guide{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.portal-mode-card{
  display:grid;
  gap:8px;
  padding:20px;
  border-radius:22px;
  background:linear-gradient(180deg, #fff, #f8fbff);
  border:1px solid #d8e4ef;
  color:#182433;
  box-shadow:0 16px 34px rgba(17,24,39,.06);
}

.portal-mode-card--active{
  background:linear-gradient(135deg, #17324d, #1f7a8c);
  color:#fff;
  border-color:transparent;
}

.portal-mode-card strong{
  font-size:18px;
}

.portal-mode-card span{
  color:#6c7a91;
  line-height:1.7;
  font-size:13px;
}

.portal-mode-card--active span{
  color:rgba(255,255,255,.84);
}

.portal-sku-form .is-muted{
  opacity:.48;
}

.portal-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:0 4px;
  color:#46576f;
  font-weight:700;
}

.portal-file-preview{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 112px;
  gap:14px;
  align-items:center;
}

.portal-file-preview__box{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:112px;
  aspect-ratio:1 / 1;
  padding:12px;
  border:1px dashed #bfd0e3;
  border-radius:18px;
  overflow:hidden;
  background:#f6f9fc;
  color:#7a8899;
  text-align:center;
  font-size:12px;
  cursor:zoom-in;
}

button.portal-file-preview__box{
  appearance:none;
  -webkit-appearance:none;
}

.portal-file-preview__box img{
  position:absolute;
  inset:0;
  display:none;
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-file-preview__box img.is-ready{
  display:block;
}

.portal-image-thumb{
  display:inline-flex;
  width:58px;
  height:58px;
  padding:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #d8e4ef;
  background:#f8fbff;
  cursor:zoom-in;
  vertical-align:middle;
}

.portal-image-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-proof-upload{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr);
  gap:16px;
  align-items:center;
  padding:12px;
  border:1px solid #d5deea;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-proof-upload > input[type="file"]{
  display:none!important;
  visibility:hidden!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  clip:rect(0, 0, 0, 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  border:0!important;
}

.portal-sku-upload > input[type="file"]{
  display:none!important;
  visibility:hidden!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  clip:rect(0, 0, 0, 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  border:0!important;
}

.portal-proof-upload__input{
  display:none!important;
  visibility:hidden!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  clip:rect(0, 0, 0, 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  border:0!important;
}

.portal-proof-upload__card{
  position:relative;
  width:112px;
  aspect-ratio:1 / 1;
  padding:0;
  border:1px dashed #bfd0e3;
  border-radius:20px;
  overflow:hidden;
  background:#f5f8fc;
  cursor:zoom-in;
}

.portal-proof-upload__card:hover{
  border-color:#206bc4;
  box-shadow:0 12px 28px rgba(32,107,196,.14);
}

.portal-proof-upload__image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-proof-upload__placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px;
  text-align:center;
  color:#6c7a91;
}

.portal-proof-upload__placeholder strong{
  color:#17324d;
  font-size:14px;
}

.portal-proof-upload__placeholder em{
  color:#6c7a91;
  font-size:12px;
  line-height:1.5;
}

.portal-proof-upload__meta{
  display:grid;
  gap:6px;
  color:#6c7a91;
  font-size:13px;
}

.portal-proof-upload__meta strong{
  color:#182433;
  font-size:14px;
}

.portal-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.portal-form-field{
  display:grid;
  gap:8px;
  color:#17324d;
  font-weight:700;
}

.portal-form-field--wide{
  grid-column:1 / -1;
}

.portal-form-field small{
  color:#6c7a91;
  font-weight:500;
  line-height:1.5;
}

.portal-form-field input,
.portal-form-field select,
.portal-form-field textarea{
  width:100%;
  border:1px solid rgba(91,122,150,.28);
  border-radius:16px;
  padding:13px 15px;
  background:#fff;
  color:#17324d;
  outline:none;
  font-size:14px;
  min-height:48px;
}

.portal-form-field select{
  height:48px;
  line-height:20px;
  padding-top:0;
  padding-bottom:0;
  display:block;
}

.portal-form-field textarea{
  min-height:104px;
  resize:vertical;
}

.portal-form-field input[type="checkbox"]{
  width:auto;
  min-height:0;
}

.portal-form-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.portal-refresh-hero .portal-side-note{
  align-self:stretch;
}

.portal-refresh-panel{
  overflow:hidden;
}

.portal-refresh-summary{
  padding-bottom:18px;
}

.portal-refresh-form{
  display:grid;
  gap:22px;
  padding:0 24px 24px;
}

.portal-refresh-toggle{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border:1px solid #dce7f0;
  border-radius:18px;
  background:#f8fbfd;
  cursor:pointer;
}

.portal-refresh-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.portal-refresh-toggle__visual{
  position:relative;
  flex:0 0 auto;
  width:52px;
  height:30px;
  border-radius:999px;
  background:#c7d7e7;
  box-shadow:inset 0 0 0 1px rgba(90,120,150,.16);
  transition:background .18s ease;
}

.portal-refresh-toggle__visual::after{
  content:"";
  position:absolute;
  top:4px;
  left:4px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 3px 8px rgba(20,46,70,.18);
  transition:transform .18s ease;
}

.portal-refresh-toggle input:checked + .portal-refresh-toggle__visual{
  background:#0f7f8c;
}

.portal-refresh-toggle input:checked + .portal-refresh-toggle__visual::after{
  transform:translateX(22px);
}

.portal-refresh-toggle strong,
.portal-refresh-field span,
.portal-refresh-guides strong{
  display:block;
  color:#132942;
  font-weight:900;
}

.portal-refresh-toggle small,
.portal-refresh-field small,
.portal-refresh-guides p{
  display:block;
  margin-top:6px;
  color:#607089;
  font-size:13px;
  line-height:1.6;
  font-weight:600;
}

.portal-refresh-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.portal-refresh-field{
  display:grid;
  gap:10px;
  padding:18px;
  border:1px solid #dce7f0;
  border-radius:18px;
  background:#fff;
}

.portal-refresh-input{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  border:1px solid rgba(91,122,150,.28);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}

.portal-refresh-input input{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:0;
  padding:12px 14px;
  background:transparent;
  color:#12233f;
  font:inherit;
  font-weight:800;
}

.portal-refresh-input input:focus{
  outline:none;
  box-shadow:none;
}

.portal-refresh-input:focus-within{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.12);
}

.portal-refresh-input em{
  padding:0 14px;
  color:#607089;
  font-style:normal;
  font-size:13px;
  font-weight:900;
}

.portal-refresh-guides{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.portal-refresh-guides div{
  padding:16px 18px;
  border:1px solid #dce7f0;
  border-radius:18px;
  background:#f8fbfd;
}

.portal-refresh-guides p{
  margin-bottom:0;
}

.portal-refresh-actions{
  padding-top:2px;
}

.portal-form-field input:focus,
.portal-form-field select:focus,
.portal-form-field textarea:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.12);
}

.portal-form-field input:disabled,
.portal-form-field select:disabled,
.portal-form-field textarea:disabled{
  background:#f1f5f9;
  color:#7a8899;
  cursor:not-allowed;
}

.btn-outline-primary{
  background:#fff;
  border-color:#bfd0e3;
  color:#0f6f7a;
}

.btn-outline-primary:hover{
  background:#edf7fa;
}

.btn-outline-warning{
  background:#fff;
  border-color:#f3dfb3;
  color:#9a6700;
}

.btn-outline-success{
  background:#fff;
  border-color:#cdebd4;
  color:#1f6f35;
}

.portal-account-editor{
  display:grid;
  gap:18px;
}

.portal-account-editor--settings{
  gap:0;
}

.portal-account-settings-hero{
  min-height:auto;
}

.portal-account-settings-hero .portal-chip-row{
  margin-top:14px;
}

.portal-form-grid--settings-password,
.portal-form-grid--subaccount-login{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.portal-form-grid--settings-basic,
.portal-form-grid--subaccount-basic{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  align-items:start;
}

.portal-editor-card{
  overflow:hidden;
}

.portal-account-editor .portal-editor-card .card-body{
  padding:24px 28px;
}

.portal-account-editor .portal-sticky-actions{
  align-items:center;
}

.portal-settings-panel{
  overflow:hidden;
}

.portal-account-editor .portal-settings-panel .portal-settings-body{
  padding:0;
}

.portal-settings-section{
  padding:24px 28px;
  border-top:1px solid #e7edf5;
}

.portal-settings-section:first-child{
  border-top:0;
}

.portal-settings-section__head{
  margin-bottom:16px;
}

.portal-settings-section__head h4{
  margin:0;
  color:#17324d;
  font-size:18px;
  font-weight:900;
}

.portal-settings-section__head p{
  margin:6px 0 0;
  color:#6c7a91;
  font-size:13px;
  line-height:1.6;
}

.portal-settings-error{
  margin:0 28px 18px;
  padding:12px 14px;
  border:1px solid #f6c9c4;
  border-radius:14px;
  background:#fff7f6;
}

.portal-settings-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 28px;
  border-top:1px solid #e7edf5;
  background:#f8fbff;
}

.portal-settings-actions strong,
.portal-settings-actions span{
  display:block;
}

.portal-settings-actions strong{
  color:#17324d;
  font-weight:900;
}

.portal-settings-actions span{
  margin-top:4px;
  color:#6c7a91;
  font-size:12px;
}

.portal-settings-actions .portal-login-btn{
  width:auto;
  min-width:168px;
}

.portal-card-header--split{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.portal-card-header--split p{
  margin:6px 0 0;
  color:#6c7a91;
  font-size:13px;
  line-height:1.6;
}

.portal-form-section{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #e6ebf1;
  border-radius:22px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-form-section + .portal-form-section{
  margin-top:16px;
}

.portal-form-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:12px;
  border-bottom:1px solid #e6ebf1;
}

.portal-form-section__head strong{
  color:#17324d;
  font-size:16px;
}

.portal-form-section__head span{
  color:#6c7a91;
  font-size:12px;
  line-height:1.5;
  text-align:right;
}

.portal-account-create{
  display:grid;
  gap:16px;
}

.portal-account-create--balanced .portal-form-section{
  gap:16px;
}

.portal-help-box{
  min-height:48px;
  display:flex;
  align-items:center;
  padding:13px 15px;
  border:1px solid #d8e4ef;
  border-radius:16px;
  background:#f8fbff;
  color:#46576f;
  line-height:1.6;
  font-weight:500;
}

.portal-form-field--muted span{
  color:#6c7a91;
}

.portal-toggle-card{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border:1px solid #d8e4ef;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
  color:#17324d;
  cursor:pointer;
}

.portal-toggle-card input[type="checkbox"]{
  flex:0 0 auto;
  width:20px;
  height:20px;
  accent-color:#1f7a8c;
}

.portal-toggle-card span{
  display:grid;
  gap:4px;
}

.portal-toggle-card strong{
  font-size:14px;
}

.portal-toggle-card em{
  color:#6c7a91;
  font-size:12px;
  font-style:normal;
  line-height:1.55;
}

.portal-soft-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:999px;
  background:#edf7fa;
  color:#0f6f7a;
  font-size:12px;
  font-weight:800;
}

.portal-sticky-actions{
  position:sticky;
  bottom:18px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid #d8e4ef;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 48px rgba(17,24,39,.12);
  backdrop-filter:blur(12px);
}

.portal-sticky-actions strong,
.portal-sticky-actions span{
  display:block;
}

.portal-sticky-actions strong{
  color:#17324d;
}

.portal-sticky-actions span{
  margin-top:3px;
  color:#6c7a91;
  font-size:12px;
}

.portal-account-list{
  display:grid;
}

.portal-account-row{
  display:grid;
  grid-template-columns:minmax(220px, .85fr) minmax(360px, 1.35fr) auto;
  gap:16px;
  align-items:center;
  padding:18px;
  border-top:1px solid #e6ebf1;
}

.portal-account-row:first-child{
  border-top:0;
}

.portal-account-row__title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.portal-account-row__title strong{
  font-size:16px;
}

.portal-account-row__main p{
  margin:8px 0 0;
  color:#6c7a91;
  font-size:13px;
}

.portal-account-row__meta{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.portal-account-row__meta span{
  display:grid;
  gap:4px;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid #edf1f6;
}

.portal-account-row__meta em{
  color:#6c7a91;
  font-size:12px;
  font-style:normal;
}

.portal-account-row__meta strong{
  color:#17324d;
  font-size:13px;
}

.portal-account-row__actions{
  display:grid;
  gap:8px;
  justify-items:end;
}

.portal-empty-line{
  padding:24px 18px;
  color:#6c7a91;
}

.portal-inline-form{
  display:grid;
  grid-template-columns:86px 150px 96px 150px auto auto;
  gap:8px;
  align-items:center;
}

.portal-inline-form .form-control{
  min-height:38px;
  border-radius:10px;
}

.portal-inline-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}

.portal-commission-rule-form{
  grid-template-columns:minmax(220px, 1fr) 110px 92px auto;
}

.portal-commission-ledger-form{
  grid-template-columns:110px minmax(160px, 1fr) auto;
}

.portal-check-inline{
  display:flex;
  gap:6px;
  align-items:center;
  margin:0;
  white-space:nowrap;
}

.portal-inline-size-form,
.portal-review-form{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr)) auto;
  gap:10px;
  align-items:end;
  margin-top:14px;
  padding:14px;
  border:1px solid #e1eaf3;
  border-radius:18px;
  background:#f8fbff;
}

.portal-inline-size-form label{
  display:grid;
  gap:6px;
  color:#46576f;
  font-size:12px;
  font-weight:800;
}

.portal-inline-size-form input,
.portal-review-form input{
  width:100%;
  min-height:40px;
  border:1px solid #d5deea;
  border-radius:12px;
  padding:9px 11px;
  background:#fff;
  color:#17324d;
  outline:none;
}

.portal-inline-size-form input:focus,
.portal-review-form input:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.1);
}

.portal-inline-size-form button,
.portal-review-form button{
  min-height:40px;
  border:0;
  border-radius:999px;
  padding:0 15px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.portal-position-manager{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) 2fr auto;
  gap:14px;
  align-items:end;
  padding:18px 20px 20px;
  border-top:1px solid #edf2f7;
}

.portal-position-manager__select{
  margin:0;
}

.portal-position-manager__form{
  display:grid;
  grid-template-columns:minmax(220px, 1fr) 96px 92px 112px;
  gap:10px;
  align-items:end;
}

.portal-position-manager__form .portal-field{
  margin:0;
}

.portal-position-manager__meta{
  min-height:44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  padding:7px 12px;
  border:1px solid #e1eaf3;
  border-radius:14px;
  background:#f8fbff;
}

.portal-position-manager__form > .portal-field,
.portal-position-manager__meta,
.portal-position-manager__save,
.portal-position-manager__delete .btn{
  height:54px;
}

.portal-position-manager__form > .portal-field{
  display:grid;
  grid-template-rows:auto 1fr;
  align-content:end;
}

.portal-position-manager__form > .portal-field .portal-control,
.portal-position-manager__select .portal-control{
  height:54px;
  min-height:54px;
}

.portal-position-manager__meta span{
  color:#6c7a91;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.portal-position-manager__meta strong{
  color:#17243a;
  font-size:14px;
  line-height:1;
}

.portal-position-manager__save{
  min-height:54px;
  border:0;
  border-radius:14px;
  padding:0 22px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.portal-position-manager__delete{
  display:flex;
  align-items:end;
  justify-content:flex-end;
  margin:0;
}

.portal-position-manager__delete .btn{
  min-height:54px;
  border-radius:14px;
  padding:0 16px;
}

.portal-review-form{
  grid-template-columns:110px 110px minmax(150px, 1fr) auto auto;
  padding:0;
  border:0;
  background:transparent;
  margin-top:0;
}

.portal-inline-link{
  justify-self:start;
  border:0;
  padding:0;
  background:transparent;
  color:#206bc4;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.portal-inline-link:hover{
  text-decoration:underline;
}

.is-hidden{
  display:none!important;
}

.portal-proof-thumb{
  display:inline-flex;
  width:58px;
  height:58px;
  padding:0;
  border:1px solid #dbe6f2;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  vertical-align:middle;
}

.portal-proof-thumb:hover{
  border-color:#206bc4;
  box-shadow:0 10px 22px rgba(32,107,196,.14);
}

.portal-proof-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-image-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:28px;
}

.portal-image-lightbox.is-hidden{
  display:none!important;
}

.portal-image-lightbox__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(9,18,32,.72);
  cursor:zoom-out;
}

.portal-image-lightbox__panel{
  position:relative;
  z-index:1;
  width:min(880px, 100%);
  max-height:90vh;
  border-radius:24px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.portal-image-lightbox__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid #e6ebf1;
}

.portal-image-lightbox__head button{
  border:0;
  border-radius:999px;
  padding:8px 12px;
  background:#eef5fb;
  color:#17324d;
  font-weight:700;
  cursor:pointer;
}

.portal-image-lightbox__panel img{
  display:block;
  width:100%;
  max-height:calc(90vh - 58px);
  object-fit:contain;
  background:#0f172a;
}

.portal-channel-list{
  display:grid;
  gap:14px;
  padding:18px;
}

.portal-channel-card{
  display:grid;
  grid-template-columns:96px minmax(0, 1fr);
  gap:14px;
  padding:14px;
  border:1px solid #e6ebf1;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-channel-card__image{
  display:inline-flex;
  width:96px;
  height:96px;
  padding:0;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #dbe6f2;
  background:#fff;
  cursor:zoom-in;
}

.portal-channel-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-channel-card__placeholder{
  display:flex;
  width:96px;
  height:96px;
  align-items:center;
  justify-content:center;
  border:1px dashed #bfd0e3;
  border-radius:14px;
  background:#f5f8fc;
  color:#6c7a91;
  font-size:12px;
  line-height:1.45;
  text-align:center;
}

.portal-channel-card strong,
.portal-channel-card span{
  display:block;
}

.portal-channel-card span{
  margin-top:4px;
  color:#6c7a91;
  font-size:13px;
}

.portal-channel-card p{
  margin:10px 0 0;
  color:#46576f;
  font-size:13px;
  line-height:1.7;
}

.portal-flow{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
}

.portal-flow__item{
  padding:18px 16px;
  border-radius:20px;
  border:1px solid #dbe6f2;
  background:linear-gradient(180deg, #ffffff, #f7fbff);
}

.portal-flow__item strong{
  display:block;
  margin-bottom:8px;
  font-size:15px;
}

.portal-flow__item span{
  display:block;
  color:#6c7a91;
  line-height:1.7;
  font-size:13px;
}

.portal-empty-state{
  max-width:760px;
  margin:70px auto 20px;
  padding:42px 34px;
  border-radius:28px;
  background:#fff;
  border:1px solid #e6ebf1;
  text-align:center;
  box-shadow:0 20px 48px rgba(17,24,39,.08);
}

.portal-empty-state__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#eaf2ff;
  color:#206bc4;
  font-size:12px;
  font-weight:700;
}

.portal-empty-state h1{
  margin:18px 0 12px;
  font-size:34px;
}

.portal-empty-state p{
  margin:0 auto;
  max-width:580px;
  color:#6c7a91;
  line-height:1.8;
}

.portal-empty-state__actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.portal-grid-span-2{
  grid-column:1 / -1;
}

.portal-library-card{
  overflow:hidden;
}

.portal-print-code-apply .card-header{
  padding:20px 24px 16px;
}

.portal-print-code-apply__form{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:20px;
  padding:24px;
}

.portal-print-code-apply__form .portal-field{
  gap:9px;
  color:#132a42;
  font-weight:750;
}

.portal-print-code-apply__form .portal-field span{
  font-size:14px;
  line-height:1.35;
}

.portal-print-code-apply__form .portal-field em{
  color:#718198;
  font-size:12px;
  line-height:1.7;
}

.portal-print-code-apply__code input{
  max-width:520px;
}

.portal-print-code-apply__note{
  width:100%;
}

.portal-print-code-apply__note textarea{
  min-height:120px;
  max-height:180px;
}

.portal-print-code-apply__form .portal-login-btn{
  align-self:stretch;
  min-height:44px;
  padding:0 18px;
  margin-top:2px;
  border-radius:13px;
}

.portal-code-search{
  display:grid;
  grid-template-columns:minmax(240px, 1fr) auto auto;
  align-items:end;
  gap:12px;
  padding:16px 18px 4px;
  border-top:1px solid #edf2f7;
}

.portal-code-search--with-user{
  grid-template-columns:minmax(220px, .5fr) minmax(260px, 1fr) auto auto;
}

.portal-code-search label{
  display:grid;
  gap:8px;
  margin:0;
  color:#51627a;
  font-size:13px;
  font-weight:800;
}

.portal-code-search select,
.portal-code-search input{
  width:100%;
  min-height:46px;
  padding:0 16px;
  border:1px solid #d5e3ef;
  border-radius:16px;
  background:#fff;
  color:#13243a;
  outline:none;
}

.portal-code-search select:focus,
.portal-code-search input:focus{
  border-color:#1f7a8c;
  box-shadow:0 0 0 4px rgba(31,122,140,.12);
}

.portal-code-search button,
.portal-code-search a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  text-decoration:none;
  font-weight:900;
}

.portal-code-search button{
  background:linear-gradient(135deg,#206bc4,#1f7a8c);
  color:#fff;
  cursor:pointer;
}

.portal-code-search a{
  background:#eef6f9;
  color:#0f6f7f;
}

.portal-storage-summary{
  display:grid;
  grid-template-columns:repeat(4, minmax(150px, 1fr));
  gap:12px;
  padding:14px 18px 0;
}

.portal-storage-summary > div{
  display:grid;
  gap:6px;
  min-height:76px;
  padding:14px 16px;
  border:1px solid #dbe6f2;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f7fbff);
}

.portal-storage-summary span{
  color:#60708a;
  font-size:12px;
  font-weight:800;
}

.portal-storage-summary strong{
  color:#10243d;
  font-size:24px;
  line-height:1;
}

.portal-card-header-split{
  align-items:center;
  display:flex;
  gap:16px;
  justify-content:space-between;
}

.portal-section-subtitle{
  color:#60708a;
  font-size:13px;
  margin:6px 0 0;
}

.portal-inline-search{
  align-items:center;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
}

.portal-inline-search .portal-control{
  min-width:260px;
}

.portal-stock-filter-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.preprint-stock-page .portal-hero{
  grid-template-columns:minmax(0, 1fr) minmax(280px, 400px);
  align-items:stretch;
  gap:20px;
  padding:26px 28px;
  border-radius:24px;
}

.preprint-stock-page .portal-eyebrow{
  display:inline-flex;
  width:max-content;
  margin-bottom:14px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:13px;
  font-weight:900;
  letter-spacing:0;
}

.preprint-stock-page .portal-hero__title{
  font-size:34px;
}

.preprint-stock-page .portal-side-note{
  align-self:stretch;
  display:grid;
  align-content:start;
  padding:22px 24px;
  border-radius:20px;
}

.preprint-stock-page .card{
  overflow:hidden;
  border:1px solid #dbe7f0;
  border-radius:18px;
  box-shadow:0 18px 48px rgba(15,31,45,.08);
}

.preprint-stock-page .card-header{
  padding:22px 24px;
  border-bottom:1px solid #e6eef4;
  background:#fff;
}

.preprint-stock-page .card-title{
  color:#10233f;
  font-size:22px;
  font-weight:900;
}

.preprint-stock-form{
  grid-template-columns:repeat(2, minmax(260px, 1fr));
  padding:22px 24px 24px;
}

.preprint-stock-form .portal-form-actions{
  justify-content:flex-start;
}

.preprint-stock-form .portal-login-btn{
  width:auto;
  min-width:160px;
}

.preprint-stock-list-header{
  align-items:flex-start;
}

.preprint-stock-filter{
  justify-content:flex-end;
  max-width:820px;
}

.preprint-stock-filter .portal-control{
  min-width:150px;
  min-height:42px;
  height:42px;
}

.preprint-stock-filter input.portal-control{
  min-width:280px;
}

.portal-table--preprint-stock{
  min-width:920px;
}

.portal-table--preprint-stock td{
  vertical-align:top;
}

.preprint-stock-page[data-fixed-list-root]{
  padding-bottom:0;
}

@media (max-width: 1120px){
  .preprint-stock-page .portal-hero{
    grid-template-columns:1fr;
  }

  .preprint-stock-list-header{
    align-items:stretch;
    flex-direction:column;
  }

  .preprint-stock-filter{
    justify-content:flex-start;
    max-width:none;
    width:100%;
  }

  .preprint-stock-filter .portal-control,
  .preprint-stock-filter input.portal-control{
    flex:1 1 220px;
    min-width:220px;
  }
}

@media (max-width: 760px){
  .preprint-stock-page .portal-hero{
    padding:22px;
    border-radius:20px;
  }

  .preprint-stock-page .portal-hero__title{
    font-size:30px;
  }

  .preprint-stock-form{
    grid-template-columns:1fr;
    padding:18px;
  }

  .preprint-stock-page .card-header{
    padding:18px;
  }

  .preprint-stock-filter{
    display:grid;
    grid-template-columns:1fr;
  }

  .preprint-stock-filter .portal-control,
  .preprint-stock-filter input.portal-control,
  .preprint-stock-filter .portal-mini-action{
    width:100%;
    min-width:0;
  }
}

.portal-mini-action.is-active{
  background:#0f7f8c;
  color:#fff;
}

.portal-stock-thumb{
  align-items:center;
  border:1px solid #d5e3ef;
  border-radius:8px;
  display:inline-flex;
  height:52px;
  justify-content:center;
  object-fit:cover;
  overflow:hidden;
  width:52px;
}

.portal-stock-thumb--empty{
  background:#f1f7fb;
  color:#60708a;
  font-size:12px;
}

.return-stock-card{
  overflow:hidden;
}

.return-stock-card__header{
  align-items:start;
}

.return-stock-search{
  align-items:center;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  margin:0;
}

.return-stock-search__input{
  min-width:320px;
}

.return-stock-search .portal-link-button{
  min-height:40px;
  border-radius:999px;
  padding:0 16px;
}

.return-stock-metrics{
  padding:16px 24px;
}

.return-stock-table th,
.return-stock-table td{
  vertical-align:top;
}

.return-stock-table{
  min-width:1040px;
}

.return-stock-table tbody tr:hover,
.return-stock-card .portal-table tbody tr:hover{
  background:#fbfdff;
}

.return-stock-product strong,
.return-stock-meta strong{
  color:#10243d;
  display:block;
}

.return-stock-product span,
.return-stock-meta span{
  color:#60708a;
  display:block;
  font-size:12px;
  line-height:1.55;
}

.return-stock-detail{
  color:#60708a;
  font-size:12px;
  margin-top:6px;
}

.return-stock-detail summary{
  color:#176b7a;
  cursor:pointer;
  font-weight:800;
}

.return-stock-detail-grid,
.return-stock-image-links{
  display:grid;
  gap:4px;
}

.return-stock-detail-grid{
  margin-top:6px;
}

.return-stock-empty{
  color:#60708a;
  padding:24px !important;
}

.portal-metric-strip{
  align-items:center;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px 20px;
}

.portal-metric-strip span{
  background:#ebf8fb;
  border:1px solid #c8e1eb;
  border-radius:999px;
  color:#10243d;
  font-weight:900;
  padding:8px 14px;
}

.portal-metric-strip--compact{
  border-bottom:1px solid #d7e4ee;
}

.portal-stock-log-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.portal-stock-log-modal.is-open{
  display:flex;
}

.portal-stock-log-modal__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(15,28,43,.42);
  cursor:pointer;
}

.portal-stock-log-modal__panel{
  position:relative;
  z-index:1;
  width:min(1080px, 100%);
  max-height:min(760px, calc(100vh - 48px));
  display:grid;
  grid-template-rows:auto minmax(0, 1fr);
  overflow:hidden;
  border:1px solid #dbe6f2;
  border-radius:20px;
  background:#fff;
  box-shadow:0 28px 70px rgba(15,28,43,.22);
}

.portal-stock-log-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  border-bottom:1px solid #e6ebf1;
}

.portal-stock-log-modal__head h3{
  margin:0;
  color:#10243d;
  font-size:18px;
}

.portal-stock-log-modal__head p{
  margin:5px 0 0;
  color:#60708a;
  font-size:13px;
}

.portal-stock-log-list{
  overflow:auto;
  padding:14px;
}

.portal-stock-log-list__header,
.portal-stock-log-list__row{
  display:grid;
  grid-template-columns:140px 120px 120px 140px 140px minmax(180px, 1fr);
  gap:12px;
  align-items:center;
}

.portal-stock-log-list__header{
  position:sticky;
  top:0;
  z-index:1;
  padding:10px 12px;
  border-radius:12px;
  background:#f6f9fc;
  color:#60708a;
  font-size:12px;
  font-weight:900;
}

.portal-stock-log-list__row{
  margin-top:8px;
  padding:12px;
  border:1px solid #edf2f7;
  border-radius:14px;
  background:#fff;
  color:#17324d;
  font-size:13px;
}

.portal-stock-log-list__row small{
  display:block;
  margin-top:3px;
  color:#7a8899;
}

.portal-stock-log-list__row .is-positive{
  color:#12865e;
  font-weight:900;
}

.portal-stock-log-list__row .is-negative{
  color:#c2412f;
  font-weight:900;
}

.portal-stock-log-empty{
  padding:24px;
  text-align:center;
  color:#60708a;
}

.portal-code-library{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:14px;
  padding:18px;
}

.portal-code-card{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #dbe6f2;
  border-radius:22px;
  background:
    radial-gradient(circle at top right, rgba(31,122,140,.1), transparent 34%),
    linear-gradient(180deg, #fff, #f8fbff);
  box-shadow:0 14px 32px rgba(15,23,42,.06);
}

.portal-code-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.portal-code-card__head span{
  display:block;
  color:#6c7a91;
  font-size:12px;
  font-weight:700;
}

.portal-code-card__head strong{
  display:block;
  margin-top:4px;
  color:#13243a;
  font-size:24px;
  letter-spacing:.02em;
}

.portal-code-card__head em{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:#138344;
  font-size:12px;
  font-style:normal;
  font-weight:800;
}

.portal-code-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.portal-code-card__meta span{
  padding:7px 10px;
  border-radius:999px;
  background:#eef6f9;
  color:#39536d;
  font-size:12px;
  font-weight:700;
}

.portal-print-library-intro{
  color:#60708a;
  font-size:14px;
}

.portal-print-library-intro p{
  margin:0;
}

.portal-print-asset-list{
  display:grid;
  gap:12px;
  padding:0 18px 18px;
}

.portal-print-section-tabs{
  padding:14px 16px;
  border:1px solid #dce8f1;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 34px rgba(20, 44, 70, .08);
}

.portal-print-page-region{
  position:relative;
  padding-bottom:88px;
}

.portal-print-admin-note{
  padding:16px 20px 0;
  color:#60708a;
  font-size:13px;
}

.portal-print-admin-note p{
  margin:0;
}

.portal-print-admin-table{
  padding:16px 18px 0;
}

.portal-print-admin-table .portal-table th,
.portal-print-admin-table .portal-table td{
  vertical-align:middle;
}

.portal-print-inline-form{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}

.portal-print-inline-form .portal-control{
  min-width:220px;
  min-height:38px;
  border:1px solid #d5deea;
  border-radius:12px;
  padding:8px 10px;
}

.portal-print-actions{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

.portal-print-actions form{
  margin:0;
}

.portal-print-edit-row td{
  background:#f8fbff;
}

.portal-print-edit-details{
  display:block;
  margin:0;
}

.portal-print-edit-details summary{
  cursor:pointer;
  font-weight:800;
  color:#176b7a;
}

.portal-print-edit-details .portal-account-form{
  margin-top:14px;
}

.portal-print-fixed-bar{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:auto;
  width:100%;
  transform:none;
  margin-top:18px;
  box-shadow:0 10px 28px rgba(20, 44, 70, .08);
}

.portal-print-code-preview{
  grid-column:1 / -1;
  border:1px solid #dbeaf5;
  border-radius:14px;
  background:#f8fbff;
  padding:12px 14px;
  color:#17324d;
  font-size:13px;
  font-weight:800;
}

.portal-print-code-preview span{
  display:block;
  color:#60708a;
  font-weight:600;
  margin-top:4px;
}

.portal-print-upload-note{
  grid-column:1 / -1;
  border:1px solid #dbeaf5;
  border-radius:14px;
  background:#fbfdff;
  padding:12px 14px;
  color:#39536d;
  font-size:13px;
  line-height:1.7;
}

[data-print-spec-back-field][hidden],
[data-back-print-upload][hidden],
[data-back-print-size][hidden]{
  display:none !important;
}

.portal-upload-card{
  grid-column:1 / -1;
  display:grid;
  gap:10px;
  padding:18px;
  border:1px dashed #b8cbe0;
  border-radius:18px;
  background:#f8fbff;
  color:#39536d;
}

.portal-upload-card input[type=file]{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.portal-upload-card__button{
  display:inline-flex;
  width:max-content;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:999px;
  padding:0 18px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.portal-upload-card__hint{
  color:#60708a;
  font-size:13px;
  line-height:1.6;
}

.portal-upload-card__name{
  color:#17324d;
  font-size:13px;
  font-weight:700;
}

.portal-print-asset-card{
  display:grid;
  grid-template-columns:minmax(180px, 1.2fr) minmax(180px, 1fr) minmax(140px, .8fr) auto;
  gap:14px;
  align-items:center;
  padding:16px;
  border:1px solid #dbe6f2;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-print-asset-card span,
.portal-print-asset-card small{
  display:block;
  color:#60708a;
  font-size:12px;
  font-weight:700;
}

.portal-print-asset-card strong{
  display:block;
  margin:4px 0;
  color:#10243d;
  font-size:15px;
  font-weight:900;
}

.portal-print-asset-card a{
  justify-self:end;
  padding:9px 12px;
  border-radius:999px;
  background:#ebf8fb;
  color:#0f6f7f;
  font-weight:900;
  text-decoration:none;
}

.portal-print-asset-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.portal-print-library-hero__stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.portal-print-library-hero__stats span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
}

.portal-print-library-hero__stats b{font-size:16px}
.portal-print-library-hero__stats i{font-style:normal;font-size:12px;font-weight:800}

.portal-print-library-hero__actions{
  align-content:start;
}

.portal-print-library-hero__actions .portal-link-button{
  width:100%;
  margin-top:8px;
}

.portal-print-library-panel{
  position:relative;
  padding-bottom:24px;
}

.portal-print-library-search{
  display:grid;
  grid-template-columns:minmax(260px,1.35fr) minmax(180px,.8fr) minmax(150px,.55fr) auto;
  align-items:end;
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid #e7eef5;
}

.portal-print-library-search:has([name="sub_account"]){
  grid-template-columns:minmax(240px,1.2fr) minmax(190px,.8fr) minmax(190px,.8fr) minmax(145px,.5fr) auto;
}

.portal-print-library-search label{
  display:grid;
  gap:7px;
  min-width:0;
  color:#435873;
  font-size:12px;
  font-weight:900;
}

.portal-print-library-search .portal-control{
  width:100%;
  min-height:44px;
  padding:0 13px;
  border:1px solid #d4e1ed;
  border-radius:12px;
  background:#fff;
  color:#142840;
}

.portal-print-library-search__actions{
  display:flex;
  gap:8px;
}

.portal-print-library-search__actions button,
.portal-print-library-search__actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 17px;
  border:0;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}

.portal-print-library-search__actions button{background:#16798a;color:#fff}
.portal-print-library-search__actions a{background:#edf5f8;color:#146b79}

.portal-print-library-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  padding:20px;
}

.portal-print-library-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #dce7f1;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 22px rgba(25,51,78,.06);
}

.portal-print-library-card__preview{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:1 / 1;
  background:#f4f7fb;
  overflow:hidden;
}

.portal-print-library-card__preview img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.portal-print-library-card__preview > span{
  color:#8190a5;
  font-size:13px;
  font-weight:800;
}

.portal-print-library-card__status{
  position:absolute;
  top:10px;
  right:10px;
  padding:6px 9px;
  border-radius:999px;
  background:#e5f7ed;
  color:#237847;
  font-style:normal;
  font-size:11px;
  font-weight:900;
}

.portal-print-library-card__status--archived{background:#eef1f5;color:#66758a}

.portal-print-library-card__body{
  display:grid;
  gap:7px;
  padding:14px;
}

.portal-print-library-card__title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:8px;
  border-bottom:1px solid #edf2f6;
}

.portal-print-library-card__title strong{
  min-width:0;
  overflow-wrap:anywhere;
  color:#10243d;
  font-size:16px;
}

.portal-print-library-card__title span{white-space:nowrap;color:#718096;font-size:11px;font-weight:800}
.portal-print-library-card__title i{font-style:normal}

.portal-print-library-card__body p{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:8px;
  margin:0;
  font-size:12px;
  line-height:1.45;
}

.portal-print-library-card__body p b{color:#708097}
.portal-print-library-card__body p span{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#263b55;white-space:nowrap}
.portal-print-library-card__body p i{font-style:normal}

.portal-print-library-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 14px 14px;
}

.portal-print-library-card__actions a,
.portal-print-library-card__actions form{
  flex:1 1 92px;
}

.portal-print-library-card__actions form{
  margin:0;
}

.portal-print-library-card__actions a,
.portal-print-library-card__actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:38px;
  padding:0 10px;
  border-radius:10px;
  border:0;
  background:#eaf5f8;
  color:#0f6f7f;
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}

.portal-print-library-card__actions button{
  appearance:none;
  background:#fff0f0;
  color:#b43a3a;
  cursor:pointer;
}

.portal-print-library-card__actions button:hover{
  background:#ffe3e3;
}

.portal-print-library-empty{grid-column:1 / -1}

@media (max-width:1280px){
  .portal-print-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .portal-print-library-search,
  .portal-print-library-search:has([name="sub_account"]){grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:820px){
  .portal-print-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}
  .portal-print-library-search,
  .portal-print-library-search:has([name="sub_account"]){grid-template-columns:1fr;padding:14px}
  .portal-print-library-search__actions{width:100%}
  .portal-print-library-search__actions button,
  .portal-print-library-search__actions a{flex:1}
}

@media (max-width:520px){
  .portal-print-library-grid{grid-template-columns:1fr}
}

@media (max-width: 1080px){
  .portal-login-shell,
  .portal-hero,
  .portal-grid--split{
    grid-template-columns:1fr;
  }

  .portal-code-lookup,
  .portal-code-search,
  .portal-setup-strip{
    grid-template-columns:1fr;
  }

  .portal-storage-summary{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .portal-print-asset-card{
    grid-template-columns:1fr;
  }

  .portal-print-asset-actions{
    justify-self:start;
    justify-content:flex-start;
  }

  .portal-card-header-split{
    align-items:stretch;
    flex-direction:column;
  }

  .portal-inline-search .portal-control{
    min-width:0;
    width:100%;
  }

  .portal-code-result{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .portal-code-result a{
    width:100%;
  }

  .portal-grid--actions,
  .portal-super-metrics,
  .portal-setup-actions,
  .portal-admin-quick-grid,
  .portal-command-grid,
  .portal-inventory-stats,
  .portal-metrics,
  .portal-alert-grid,
  .portal-flow,
  .portal-mode-guide{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .portal-login-brand{
    padding-right:0;
  }

  .portal-inventory-item{
    grid-template-columns:72px minmax(0, 1fr);
  }

  .portal-account-row{
    grid-template-columns:1fr;
    align-items:start;
  }

  .portal-account-row__actions{
    justify-items:start;
  }

  .portal-inventory-stats,
  .portal-inventory-actions{
    grid-column:1 / -1;
  }

  .portal-inventory-actions{
    justify-content:flex-start;
  }
}

@media (max-width: 720px){
  .portal-login-shell{
    width:min(100%, calc(100% - 24px));
    padding:24px 0;
    gap:22px;
  }

  .portal-login-brand h1{
    font-size:42px;
  }

  .portal-hero,
  .portal-grid--actions,
  .portal-super-metrics,
  .portal-setup-actions,
  .portal-admin-quick-grid,
  .portal-command-grid,
  .portal-inventory-stats,
  .portal-metrics,
  .portal-alert-grid,
  .portal-flow,
  .portal-mode-guide,
  .portal-account-form,
  .portal-form-grid,
  .portal-inline-form,
  .portal-inline-size-form,
  .portal-position-manager,
  .portal-position-manager__form,
  .portal-review-form,
  .portal-form-grid--settings-password,
  .portal-form-grid--subaccount-login{
    grid-template-columns:1fr;
  }

  .portal-section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .portal-section-actions{
    justify-content:flex-start;
  }

  .portal-danger-form{
    justify-items:start;
    width:100%;
  }

  .portal-settings-section,
  .portal-settings-actions{
    padding:20px;
  }

  .portal-settings-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .portal-settings-actions .portal-login-btn{
    width:100%;
  }

  .portal-file-preview{
    grid-template-columns:1fr;
  }

  .portal-hero{
    padding:24px 20px;
  }

  .portal-detail-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .portal-detail-grid,
  .portal-inventory-upload{
    grid-template-columns:1fr;
  }

  .portal-channel-card{
    grid-template-columns:1fr;
  }

  .portal-proof-upload{
    grid-template-columns:1fr;
  }

  .portal-proof-upload__card{
    width:112px;
    max-width:none;
  }

  .portal-card-header--split,
  .portal-form-section__head,
  .portal-sticky-actions{
    align-items:flex-start;
    flex-direction:column;
  }

  .portal-form-section__head span{
    text-align:left;
  }

  .portal-account-row__meta{
    grid-template-columns:1fr;
  }
}

.portal-panel{
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  border:1px solid #e2eaf3;
  box-shadow:0 18px 44px rgba(17,24,39,.06);
}

.portal-panel__header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px;
  border-bottom:1px solid #e8eef5;
}

.portal-panel__header h2{
  margin:0;
  font-size:22px;
}

.portal-panel__header p{
  margin:8px 0 0;
  color:#61708a;
}

.portal-filter-panel{
  padding-bottom:10px;
}

.portal-workbench-shell{
  margin-bottom:0 !important;
  padding-bottom:12px;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}

.portal-workbench-results{
  margin-top:0 !important;
  border-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
}

.portal-workbench-results .portal-panel__header{
  border-top:1px solid #e0eaf2;
}

.portal-date-filter{
  display:grid;
  grid-template-columns:repeat(2, minmax(180px, 1fr)) auto auto;
  gap:14px;
  align-items:end;
  padding:20px 24px 0;
}

.portal-date-filter--search{
  grid-template-columns:repeat(2, minmax(170px, .8fr)) minmax(260px, 1.4fr) auto auto;
}

.portal-date-filter--finance{
  grid-template-columns:repeat(2, minmax(150px, .75fr)) repeat(2, minmax(220px, 1.15fr)) auto auto;
}

.portal-date-filter__wide{
  min-width:0;
}

.portal-date-filter label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:700;
  color:#173251;
}

.portal-control{
  width:100%;
  min-height:48px;
  border:1px solid #d5e2ef;
  border-radius:16px;
  padding:10px 14px;
  color:#132942;
  background:#fff;
}

.portal-control:focus{
  outline:2px solid rgba(14,118,132,.18);
  border-color:#7cb7c4;
}

.portal-summary-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:12px;
  padding:18px 24px 0;
}

.portal-auto-push-panel .portal-summary-strip{
  padding-bottom:18px;
}

.portal-summary-strip--compact{
  display:flex;
  flex-wrap:wrap;
}

.portal-summary-strip span{
  display:block;
  border:1px solid #dce7f0;
  background:#f8fbfd;
  border-radius:18px;
  padding:14px 16px;
  color:#607089;
}

.portal-summary-strip strong{
  display:block;
  margin-top:4px;
  color:#132942;
  font-size:24px;
  line-height:1.1;
}

.portal-stats-help{
  margin:14px 24px 4px;
}

.portal-auto-push-panel .portal-panel__header{
  align-items:center;
}

.portal-auto-push-form{
  display:grid;
  grid-template-columns:auto minmax(170px, 220px) auto;
  gap:10px;
  align-items:center;
}

.portal-summary-strip--auto strong{
  font-size:22px;
}

.portal-progress-lanes{
  display:grid;
  grid-template-columns:repeat(8, minmax(118px, 1fr));
  gap:10px;
  padding:0 24px 18px;
}

.portal-progress-lane{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:46px;
  border-radius:14px;
  padding:8px 12px;
  background:#f6fbfd;
  border:1px solid #d8e7f0;
  color:#173251;
  text-decoration:none;
}

.portal-progress-lane span{
  font-size:12px;
  font-weight:800;
}

.portal-progress-lane strong{
  color:#0f7f8c;
  font-size:18px;
  line-height:1;
}

.portal-progress-lane:hover,
.portal-progress-lane.is-active{
  background:#0f7f8c;
  border-color:#0f7f8c;
  color:#fff;
  text-decoration:none;
}

.portal-progress-lane:hover strong,
.portal-progress-lane.is-active strong{
  color:#fff;
}

.portal-link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  border:0;
  border-radius:16px;
  padding:0 20px;
  background:linear-gradient(135deg, #0d6b83, #0f8591);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.portal-link-button:hover{
  color:#fff;
  text-decoration:none;
}

.portal-link-button--ghost{
  background:#eaf5f7;
  color:#0d7180;
}

.portal-link-button--ghost:hover{
  color:#0d7180;
}

.portal-link-button--danger{
  background:linear-gradient(135deg, #a33a2b, #cc4b37);
}

.portal-link-button--danger:hover{
  color:#fff;
}

.portal-link-button--active{
  box-shadow:0 12px 24px rgba(13,107,131,.18);
}

.portal-danger-form{
  display:grid;
  gap:10px;
  justify-items:end;
}

.portal-confirm-check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  max-width:260px;
  color:#46576f;
  font-size:12px;
  font-weight:800;
  line-height:1.45;
}

.portal-confirm-check input{
  width:16px;
  height:16px;
  margin-top:1px;
  accent-color:#0f7f8c;
}

.portal-confirm-check--inline{
  align-items:center;
  max-width:none;
  white-space:nowrap;
}

.portal-table-wrap{
  overflow:auto;
}

.portal-table{
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}

.portal-order-table--compact{
  min-width:760px;
}

.portal-table th,
.portal-table td{
  padding:15px 18px;
  border-bottom:1px solid #edf2f7;
  text-align:left;
  vertical-align:middle;
}

.portal-table th{
  color:#63718a;
  font-size:13px;
  font-weight:800;
  background:#f8fafc;
}

.portal-table td{
  color:#17243a;
  font-size:14px;
}

.portal-branch-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:10px;
  border:1px solid #dce7f0;
  border-radius:24px;
  background:rgba(255,255,255,.76);
  box-shadow:0 18px 44px rgba(25, 59, 88, .08);
}

.portal-branch-nav button,
.portal-branch-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border:0;
  border-radius:999px;
  padding:0 20px;
  background:#eef6f8;
  color:#376170;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.portal-branch-nav button:hover,
.portal-branch-nav button.is-active,
.portal-branch-nav a:hover,
.portal-branch-nav a.is-active{
  background:linear-gradient(135deg, #0d7180, #1e73d6);
  color:#fff;
  box-shadow:0 12px 26px rgba(15, 113, 128, .2);
  text-decoration:none;
}

.portal-branch-nav button:hover,
.portal-branch-nav a:hover{
  transform:translateY(-1px);
}

.portal-branch-nav button.is-loading,
.portal-branch-nav a.is-loading{
  cursor:progress;
  opacity:.82;
}

.portal-branch-nav button.is-loading::before,
.portal-branch-nav a.is-loading::before{
  content:"";
  width:12px;
  height:12px;
  margin-right:8px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:999px;
  animation:portal-order-spin .75s linear infinite;
}

.portal-branch-nav--flow{
  gap:7px;
  padding:8px;
  border-radius:18px;
}

.portal-branch-nav--flow button,
.portal-branch-nav--flow a{
  position:relative;
  flex:1 1 148px;
  min-height:38px;
  border-radius:12px;
  padding:0 12px;
  font-size:12px;
  line-height:1.2;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(239,248,250,.92));
  color:#1f4864;
  box-shadow:inset 0 0 0 1px rgba(172,202,217,.5);
}

.portal-branch-nav--flow button::after,
.portal-branch-nav--flow a::after{
  content:"";
  position:absolute;
  right:-5px;
  top:50%;
  width:11px;
  height:11px;
  border-top:1px solid rgba(112,151,170,.28);
  border-right:1px solid rgba(112,151,170,.28);
  transform:translateY(-50%) rotate(45deg);
  pointer-events:none;
}

.portal-branch-nav--flow button:last-child::after,
.portal-branch-nav--flow a:last-child::after{
  display:none;
}

.portal-branch-nav--flow button:hover,
.portal-branch-nav--flow button.is-active,
.portal-branch-nav--flow a:hover,
.portal-branch-nav--flow a.is-active{
  background:linear-gradient(135deg, #0d7180, #1e73d6);
  color:#fff;
  box-shadow:0 10px 20px rgba(15, 113, 128, .2);
}

.portal-branch-nav--flow button:hover::after,
.portal-branch-nav--flow button.is-active::after,
.portal-branch-nav--flow a:hover::after,
.portal-branch-nav--flow a.is-active::after{
  border-color:rgba(30,115,214,.45);
}

.portal-commission-card{
  overflow:hidden;
  border:1px solid #dce7f0;
  border-radius:18px;
  box-shadow:0 18px 44px rgba(25,59,88,.08);
}

.portal-commission-card__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:22px 24px;
}

.portal-commission-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

.portal-commission-adjust-form{
  margin:0;
  padding:18px 24px 22px;
  border-top:1px solid #edf2f7;
  border-bottom:1px solid #edf2f7;
  background:#f8fbfd;
}

.portal-commission-adjust-form label{
  min-width:0;
}

.portal-commission-adjust-form select,
.portal-commission-adjust-form input{
  width:100%;
  min-height:44px;
  border:1px solid #cfe0ed;
  border-radius:12px;
  padding:0 12px;
  color:#17243a;
  background:#fff;
}

.portal-order-branch{
  display:none;
}

.portal-scan-grid.portal-order-branch,
.portal-ops-board.portal-order-branch{
  display:none;
}

.portal-order-branch.is-active{
  display:block;
}

.portal-ops-board.portal-order-branch.is-active,
.portal-scan-grid.portal-order-branch.is-active{
  display:grid;
}

.portal-order-branch.is-branch-loading{
  position:relative;
  min-height:180px;
  opacity:.78;
}

.portal-order-branch.is-branch-loading::after{
  content:"";
  position:absolute;
  top:22px;
  right:22px;
  z-index:12;
  width:24px;
  height:24px;
  border:3px solid #d8edf4;
  border-top-color:#0f7d8a;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(15,88,110,.12);
  animation:portal-order-spin .75s linear infinite;
}

.portal-status{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:#e8f4f5;
  color:#0f7480;
  font-size:12px;
  font-weight:800;
}

.portal-status--warning{
  background:#fff2d9;
  color:#9a6400;
}

.portal-status--success{
  background:#e8f8ed;
  color:#197447;
}

.portal-status--info{
  background:#e8f4ff;
  color:#1d62a8;
}

.portal-empty{
  color:#6b7890;
  text-align:center;
}

.portal-panel__header--stack{
  align-items:flex-start;
  flex-wrap:wrap;
}

.portal-order-queue{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
  padding:12px 22px 0;
}

.portal-order-queue__card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid #dce7f0;
  border-radius:14px;
  padding:12px 14px;
  background:linear-gradient(135deg, #f8fbfd, #eef7fa);
  color:#17243a;
  text-decoration:none;
}

.portal-order-queue__card:hover{
  color:#17243a;
  text-decoration:none;
  border-color:#9fcbd3;
  box-shadow:0 12px 28px rgba(20, 92, 115, .12);
}

.portal-order-queue__card.is-active{
  border-color:#0f7f8c;
  background:#e8f7f8;
  box-shadow:inset 0 -2px 0 #0f7f8c;
}

.portal-order-queue__card span{
  color:#607089;
  font-size:12px;
  font-weight:800;
}

.portal-order-queue__card strong{
  font-size:21px;
  color:#0d7180;
}

.portal-workbench-filter{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:10px 22px 18px;
  padding:14px 16px;
  border:1px solid #dce7f0;
  border-radius:14px;
  background:#fff;
}

.portal-workbench-filter .portal-control{
  min-height:42px;
  font-size:12px;
  border-radius:12px;
}

.portal-workbench-filter .portal-link-button{
  min-height:42px;
  padding:0 16px;
  border-radius:12px;
  font-size:12px;
}

.portal-workbench-filter [hidden]{
  display:none !important;
}

.portal-filter-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(160px, 1fr)) minmax(220px, 1.3fr);
  gap:8px 10px;
  align-items:end;
}

.portal-filter-row--search{
  grid-template-columns:repeat(4, minmax(180px, 1fr));
}

.portal-filter-row--time{
  grid-template-columns:minmax(170px, .8fr) minmax(170px, .8fr) minmax(260px, 1.2fr) auto auto;
}

.portal-filter-row--package{
  display:flex;
  align-items:center;
  gap:8px;
}

.portal-filter-row--add{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
}

.portal-filter-row label{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
  color:#173251;
  font-size:12px;
  font-weight:800;
}

.portal-filter-label{
  color:#607089;
  font-size:12px;
  font-weight:800;
}

.portal-package-types{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.portal-filter-adders{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.portal-filter-more,
.portal-package-types a,
.portal-filter-adders button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border-radius:10px;
  border:0;
  background:#f3f8fa;
  color:#376170;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.portal-filter-more{
  background:#eaf5f7;
  color:#0d7180;
}

.portal-package-types a:hover,
.portal-package-types a.is-active,
.portal-filter-more:hover,
.portal-filter-adders button:hover{
  color:#0b7d7a;
  background:#e6f5f3;
  text-decoration:none;
  box-shadow:inset 0 -2px 0 #0b9b8d;
}

.portal-filter-grow{
  min-width:220px;
}

.portal-quick-dates{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  min-height:42px;
}

.portal-quick-dates a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#eef6f8;
  color:#376170;
  font-weight:800;
  text-decoration:none;
}

.portal-quick-dates a:hover,
.portal-quick-dates a.is-active{
  background:#0f7f8c;
  color:#fff;
  text-decoration:none;
}

.portal-production-line{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:16px;
  padding:16px;
  border:1px solid #dce7f0;
  border-radius:18px;
  background:#fff;
  break-inside:avoid;
}

.portal-production-artwork{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  justify-content:center;
  min-height:140px;
  border:1px dashed #b8cad9;
  border-radius:14px;
  background:#f8fbfd;
  color:#607089;
  font-size:12px;
  font-weight:800;
  text-align:center;
}

.portal-production-artwork img{
  max-width:136px;
  max-height:112px;
  object-fit:contain;
}

.portal-production-artwork a{
  color:#0d7180;
  font-weight:900;
}

.portal-production-meta{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px 14px;
  align-content:center;
}

.portal-production-meta strong{
  grid-column:1 / -1;
  color:#17243a;
  font-size:18px;
}

.portal-production-meta span{
  color:#52647a;
  font-weight:800;
}

@media (max-width: 1100px){
  .portal-filter-row,
  .portal-filter-row--search,
  .portal-filter-row--package,
  .portal-filter-row--time{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px){
  .portal-work-lanes{
    grid-template-columns:1fr;
    padding:12px 14px 4px;
  }

  .portal-workbench-filter{
    margin:14px;
    padding:14px;
  }

  .portal-filter-row,
  .portal-filter-row--search,
  .portal-filter-row--package,
  .portal-filter-row--time{
    grid-template-columns:1fr;
  }
}

.portal-ops-board{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.portal-ops-board__item{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px 12px;
  align-items:start;
  padding:18px 20px;
  border:1px solid #dbe7f0;
  border-radius:22px;
  background:linear-gradient(135deg, #fff, #f4fbfd);
  box-shadow:0 16px 34px rgba(24, 54, 86, .07);
}

.portal-ops-board__item span{
  grid-row:1 / 3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:#e7f5f7;
  color:#0d7180;
  font-weight:900;
}

.portal-ops-board__item strong{
  color:#17243a;
  font-size:16px;
}

.portal-ops-board__item p{
  margin:0;
  color:#607089;
  line-height:1.65;
  font-size:13px;
}

.portal-ops-board--cards{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  padding:0 24px 22px;
}

.portal-ops-card{
  position:relative;
  min-height:168px;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px;
  border:1px solid #dbe7f0;
  border-radius:24px;
  background:
    radial-gradient(circle at 90% 18%, rgba(32,107,196,.13), transparent 34%),
    linear-gradient(135deg, #fff, #f3fbfd);
  color:#17243a;
  text-decoration:none;
  box-shadow:0 18px 38px rgba(24, 54, 86, .07);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portal-ops-card:hover{
  color:#17243a;
  text-decoration:none;
  transform:translateY(-2px);
  border-color:#91c7d1;
  box-shadow:0 24px 48px rgba(20, 92, 115, .14);
}

.portal-ops-card span{
  width:max-content;
  border-radius:999px;
  padding:5px 10px;
  background:#e8f4f5;
  color:#0d7180;
  font-size:12px;
  font-weight:900;
}

.portal-ops-card strong{
  font-size:20px;
  font-weight:900;
}

.portal-ops-card p{
  margin:0;
  color:#607089;
  line-height:1.65;
  font-size:13px;
}

.portal-ops-card b{
  position:absolute;
  right:20px;
  bottom:16px;
  font-size:32px;
  line-height:1;
  color:#0d7180;
}

.portal-summary-strip--grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
}

.portal-summary-strip--grid span{
  justify-content:space-between;
}

.portal-work-lanes{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  padding:14px 24px 6px;
}

.portal-work-lane{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
  min-height:68px;
  padding:14px 16px;
  border:1px solid #d5e5ee;
  border-radius:14px;
  background:#f8fcfd;
  color:#173251;
  text-decoration:none;
}

.portal-work-lane:hover{
  color:#173251;
  text-decoration:none;
  border-color:#9fcbd3;
  box-shadow:0 12px 28px rgba(20, 92, 115, .12);
}

.portal-work-lane.is-active{
  color:#fff;
  border-color:#0f7f8c;
  background:linear-gradient(135deg, #0f7f8c, #1f7ad6);
  box-shadow:0 16px 34px rgba(20, 92, 115, .18);
}

.portal-work-lane span{
  font-weight:900;
}

.portal-work-lane strong{
  font-size:24px;
}

.portal-work-lane small{
  grid-column:1 / -1;
  color:#607089;
  font-size:12px;
  font-weight:800;
}

.portal-work-lane.is-active small{
  color:rgba(255, 255, 255, .82);
}

.portal-status-filter{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:18px 24px 22px;
}

.portal-status-filter__item{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  border-radius:999px;
  padding:0 16px;
  background:#eef6f8;
  color:#376170;
  font-weight:800;
  text-decoration:none;
}

.portal-status-filter__item:hover,
.portal-status-filter__item.is-active{
  background:#0f7f8c;
  color:#fff;
  text-decoration:none;
}

.portal-status-filter__item.is-loading,
.portal-status-filter__item.is-pending{
  cursor:progress;
  opacity:.84;
}

.portal-status-filter__item.is-loading::after,
.portal-status-filter__item.is-pending::after{
  content:"";
  width:10px;
  height:10px;
  margin-left:8px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:999px;
  animation:portal-order-spin .75s linear infinite;
}

.portal-order-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
}

.portal-order-toolbar--center{
  justify-content:center;
  gap:12px;
  width:100%;
}

.portal-order-toolbar__actions{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}

.portal-order-toolbar__actions [hidden]{
  display:none !important;
}

.portal-order-toolbar [hidden],
.portal-link-button[hidden]{
  display:none !important;
}

.portal-order-toolbar__count{
  color:#63718a;
  font-weight:800;
}

.portal-scan-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.portal-scan-grid.portal-order-branch:not(.is-active),
.portal-ops-board.portal-order-branch:not(.is-active){
  display:none;
}

.portal-scan-card{
  border:1px solid #dce7f0;
  border-radius:24px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 14px 36px rgba(25, 59, 88, .08);
}

.portal-scan-card .portal-panel__header{
  border-bottom:1px solid #edf2f7;
}

.portal-scan-card .portal-inline-form{
  grid-template-columns:minmax(0, 1fr);
  padding:18px 22px 8px;
}

.portal-scan-card .portal-scan-input{
  width:100%;
  min-width:0;
}

.portal-scan-card .portal-inline-form .portal-link-button{
  grid-column:1 / -1;
}

.portal-inline-result{
  min-height:26px;
  padding:0 22px 20px;
  color:#607089;
  font-weight:800;
}

.portal-inline-result.is-ok{
  color:#197447;
}

.portal-inline-result.is-error{
  color:#a13d2d;
}

.portal-print-batch{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.portal-print-batch span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  border-radius:999px;
  padding:0 12px;
  background:rgba(255,255,255,.14);
  color:rgba(255,255,255,.86);
  font-size:12px;
  font-weight:800;
}

.portal-print-batch strong{
  margin-left:4px;
  color:#fff;
}

.portal-link-button.is-disabled,
.portal-link-button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.portal-order-table{
  min-width:1320px;
}

.portal-check-col{
  width:44px;
  text-align:center !important;
}

.portal-row-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.portal-row-actions a{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  border-radius:999px;
  padding:0 10px;
  background:#eef6f8;
  color:#0d7180;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}

.portal-mini-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  border:0;
  border-radius:999px;
  padding:0 10px;
  background:#eef6f8;
  color:#0d7180;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.portal-mini-action:hover{
  background:#0f7f8c;
  color:#fff;
  text-decoration:none;
}

.portal-toggle-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 12px;
  border:1px solid #cfe0f1;
  border-radius:8px;
  color:#14304c;
  font-weight:800;
  background:#f8fbff;
}

.portal-toggle-row input[type="checkbox"]{
  position:relative;
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:0;
  appearance:none;
  border:1px solid #c2d4e5;
  border-radius:5px;
  background:#fff;
  box-shadow:inset 0 1px 2px rgba(17,43,68,.08);
  cursor:pointer;
}

.portal-toggle-row input[type="checkbox"]:checked{
  border-color:#168a99;
  background:linear-gradient(135deg, #0b8b9a, #246fc4);
}

.portal-toggle-row input[type="checkbox"]:checked::after{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:5px;
  height:10px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

.portal-toggle-row input[type="checkbox"]:focus-visible{
  outline:3px solid rgba(14,118,132,.18);
  outline-offset:2px;
}

.portal-row-actions a:hover{
  background:#0f7f8c;
  color:#fff;
  text-decoration:none;
}

.portal-image-mode-toggle{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  border:1px solid #cfe0f1;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.portal-image-mode-toggle span{
  padding:0 12px;
  color:#334762;
  font-size:13px;
  font-weight:800;
}

.portal-image-mode-toggle button{
  min-width:62px;
  height:40px;
  border:0;
  border-left:1px solid #cfe0f1;
  background:#f7fbff;
  color:#0d7180;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.portal-image-mode-toggle button.is-active{
  background:#1687e8;
  color:#fff;
}

.portal-order-products{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:230px;
  max-width:320px;
}

.portal-order-product{
  display:grid;
  grid-template-columns:58px minmax(0, 1fr);
  gap:10px;
  align-items:center;
  position:relative;
}

.portal-order-product__thumb{
  width:58px;
  height:58px;
  border:1px solid #d8e6f3;
  border-radius:8px;
  padding:3px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.portal-order-product__thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.portal-order-product__thumb--empty{
  color:#8aa0b6;
  font-size:12px;
  cursor:default;
}

.portal-order-product__meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.portal-order-product__meta strong,
.portal-order-product__meta span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portal-order-product__meta strong{
  color:#10233f;
  font-size:13px;
}

.portal-order-product__meta span{
  color:#5f7288;
  font-size:12px;
}

.portal-order-product__details{
  margin-top:2px;
  color:#4f657d;
  font-size:12px;
}

.portal-order-product__details summary{
  width:max-content;
  color:#0f7f8c;
  font-weight:900;
  cursor:pointer;
  list-style:none;
}

.portal-order-product__details summary::-webkit-details-marker{
  display:none;
}

.portal-order-product__details summary::after{
  content:"⌄";
  margin-left:5px;
  font-size:11px;
}

.portal-order-product__details[open] summary::after{
  content:"⌃";
}

.portal-order-product__detail-body{
  display:grid;
  gap:6px;
  margin-top:6px;
  padding:8px;
  border:1px solid #d8e6f3;
  border-radius:8px;
  background:#f8fbfe;
}

.portal-order-product__detail-body p{
  margin:0;
  color:#4f657d;
  line-height:1.35;
  white-space:normal;
}

.portal-order-product__component{
  display:grid;
  gap:3px;
  padding-top:6px;
  border-top:1px dashed #d8e6f3;
}

.portal-order-product__component:first-of-type{
  padding-top:0;
  border-top:0;
}

.portal-order-product__component strong{
  font-size:12px;
  color:#10233f;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}

.portal-order-product__component span,
.portal-order-product__component em{
  color:#5f7288;
  font-size:12px;
  font-style:normal;
  line-height:1.35;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}

.portal-order-product__component em.is-ok{
  color:#0d7f5f;
  font-weight:900;
}

.portal-order-product__component em.is-danger{
  color:#b42318;
  font-weight:900;
}

.portal-order-product__switch{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.portal-order-product__switch button{
  min-height:24px;
  border:1px solid #cfe0f1;
  border-radius:6px;
  padding:0 7px;
  background:#f7fbff;
  color:#0d7180;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.portal-order-product__switch button.is-active{
  border-color:#0f7f8c;
  background:#0f7f8c;
  color:#fff;
}

.portal-order-product__switch button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.portal-order-product__hover{
  position:absolute;
  left:0;
  top:66px;
  z-index:4000;
  display:none;
  grid-template-columns:96px minmax(320px, 1fr);
  gap:14px;
  width:min(760px, 70vw);
  padding:12px;
  border-radius:8px;
  background:#050505;
  color:#fff;
  box-shadow:0 18px 44px rgba(0,0,0,.34);
}

.portal-order-product__thumb:hover ~ .portal-order-product__hover,
.portal-order-product__thumb:focus-visible ~ .portal-order-product__hover{
  display:grid;
}

.portal-order-product__hover img{
  width:96px;
  height:96px;
  border-radius:6px;
  background:#fff;
  object-fit:contain;
}

.portal-order-product__hover p{
  margin:0 0 6px;
  color:#fff;
  font-size:13px;
  line-height:1.35;
  white-space:nowrap;
}

.portal-order-product__hover span{
  color:#d4e7ff;
  font-weight:800;
}

.portal-print-trace-table{
  min-width:980px;
}

.portal-mini-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border-radius:999px;
  padding:0 10px;
  margin:2px 4px 2px 0;
  background:#eef6f8;
  color:#0d7180;
  font-size:12px;
  font-weight:800;
}

.portal-print-body{
  margin:0;
  background:#f2f6fb;
  color:#17243a;
}

.portal-print-sheet{
  width:min(1080px, calc(100% - 32px));
  margin:24px auto 48px;
}

.portal-print-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  border-radius:28px;
  padding:28px;
  background:linear-gradient(135deg, #123a55, #13818e);
  color:#fff;
  box-shadow:0 24px 54px rgba(25, 59, 88, .18);
}

.portal-print-header h1{
  margin:6px 0 8px;
  font-size:34px;
}

.portal-print-header p{
  margin:0;
  max-width:720px;
  color:rgba(255,255,255,.78);
}

.portal-print-card{
  margin-top:18px;
  border:1px solid #dce7f0;
  border-radius:24px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 14px 36px rgba(25, 59, 88, .08);
  break-inside:avoid;
}

.portal-print-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 22px;
  border-bottom:1px solid #edf2f7;
  background:#f8fbfd;
}

.portal-print-card__head strong{
  display:block;
  font-size:20px;
}

.portal-print-card__head span{
  color:#63718a;
}

.portal-print-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
  padding:18px 22px;
}

.portal-print-grid div{
  border:1px solid #edf2f7;
  border-radius:16px;
  padding:12px;
}

.portal-print-grid span,
.portal-print-line span{
  display:block;
  color:#63718a;
  font-size:12px;
  font-weight:800;
}

.portal-print-grid strong{
  display:block;
  margin-top:4px;
}

.portal-print-label,
.portal-print-lines{
  margin:0 22px 22px;
  border:1px dashed #b9cad8;
  border-radius:20px;
  padding:18px;
}

.portal-print-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.portal-print-label__meta{
  flex:0 0 280px;
}

.portal-print-label__meta span{
  display:block;
  color:#63718a;
  font-size:12px;
  font-weight:800;
}

.portal-print-label__meta strong{
  display:block;
  margin:5px 0 8px;
  overflow-wrap:anywhere;
}

.portal-print-label__meta p{
  margin:0 0 12px;
  color:#63718a;
  line-height:1.55;
}

.portal-official-label{
  flex:1 1 auto;
  min-height:520px;
  border:1px solid #dce7f0;
  border-radius:12px;
  overflow:hidden;
  background:#f8fbfd;
}

.portal-official-label iframe,
.portal-official-label img{
  display:block;
  width:100%;
  height:520px;
  border:0;
  object-fit:contain;
  background:#fff;
}

.portal-print-label--template{
  align-items:flex-start;
  font-size:var(--official-label-font-size, 9px);
}

.portal-print-label--template .portal-official-label{
  flex:0 0 auto;
  width:min(100%, var(--official-label-width, 100mm));
  min-height:var(--official-label-height, 150mm);
}

.portal-print-label--template .portal-official-label iframe,
.portal-print-label--template .portal-official-label img{
  height:var(--official-label-height, 150mm);
}

.portal-print-code{
  border:2px solid #17243a;
  border-radius:12px;
  padding:18px;
  font-size:18px;
  font-weight:900;
  letter-spacing:.08em;
}

.portal-print-lines h2{
  margin:0 0 12px;
  font-size:18px;
}

.portal-print-line{
  display:grid;
  grid-template-columns:1.4fr repeat(5, minmax(90px, 1fr));
  gap:12px;
  padding:12px 0;
  border-top:1px solid #edf2f7;
}

.portal-print-line:first-of-type{
  border-top:0;
}

.portal-print-warning{
  margin:0 22px 22px;
  border-radius:16px;
  padding:12px 14px;
  background:#fff2d9;
  color:#9a6400;
  font-weight:800;
}

.portal-print-body--labels{
  min-height:100vh;
  background:#303236;
  color:#17243a;
}

.portal-label-console{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  min-height:100vh;
  --official-label-width:100mm;
  --official-label-height:150mm;
  --official-label-font-size:9px;
  --express-rotated-height:67mm;
  --express-rotate-scale:.6667;
  --express-area-height:calc(var(--official-label-height) - 34mm);
}

.portal-label-console [hidden]{
  display:none !important;
}

.portal-label-preview-stage{
  display:grid;
  justify-items:center;
  align-content:start;
  gap:28px;
  min-width:0;
  padding:18px 28px 96px;
  overflow:auto;
}

.portal-label-page{
  position:relative;
  width:var(--official-label-width);
  min-height:var(--official-label-height);
  background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.38);
  overflow:hidden;
  page-break-after:always;
  break-after:page;
}

.portal-label-page--archive{
  height:var(--official-label-height);
  min-height:var(--official-label-height);
}

.portal-label-archived-page{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:#fff;
  object-fit:fill;
}

.portal-label-document-wrap{
  position:relative;
  height:var(--express-area-height);
  min-height:0;
  overflow:hidden;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.portal-label-document{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:#fff;
  object-fit:contain;
  transform-origin:center;
}

.portal-label-document--pdf{
  overflow:hidden;
}

.portal-label-document-wrap.is-loading .portal-label-document,
.portal-label-document-wrap.has-error .portal-label-document{
  filter:brightness(.55);
}

.portal-label-reload{
  position:absolute;
  inset:0;
  z-index:8;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  padding:0 16px;
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}

.portal-label-document-wrap:not(.has-error):not(.is-loading) .portal-label-reload{
  display:none;
}

.portal-label-page[data-fit="cover"] .portal-label-document{
  object-fit:cover;
}

.portal-label-page[data-fit="fill"] .portal-label-document{
  object-fit:fill;
}

.portal-label-console--hide-express .portal-label-document-wrap{
  display:none !important;
}

.portal-label-console--hide-express{
  --express-area-height:0mm;
}

.portal-label-page--product-only{
  --express-area-height:0mm;
}

.portal-label-page--product-only .portal-label-document-wrap{
  display:none !important;
}

.portal-label-console--rotate-express .portal-label-document-wrap{
  display:block;
}

.portal-label-console--rotate-express{
  --express-area-height:var(--express-rotated-height);
}

.portal-label-console--hide-express.portal-label-console--rotate-express{
  --express-area-height:0mm;
}

.portal-label-console--hide-express.portal-label-console--rotate-express .portal-label-document-wrap{
  display:none !important;
}

.portal-label-console--rotate-express .portal-label-document{
  position:absolute;
  left:50%;
  top:50%;
  width:var(--official-label-width);
  height:var(--official-label-height);
  transform:translate(-50%, -50%) rotate(90deg) scale(var(--express-rotate-scale));
}

.portal-label-console--template-100{
  --official-label-width:100mm !important;
  --official-label-height:100mm !important;
}

.portal-label-overlay--watermark{
  position:absolute;
  inset:40% auto auto 50%;
  z-index:4;
  transform:translate(-50%, -50%) rotate(-22deg);
  font-size:34px;
  font-weight:900;
  letter-spacing:.08em;
  pointer-events:none;
}

.portal-label-overlay--watermark[data-watermark="light"]{
  color:rgba(23,36,58,.12);
}

.portal-label-overlay--watermark[data-watermark="dark"]{
  color:rgba(23,36,58,.26);
}

.portal-label-product-panel{
  border-top:1px solid #17243a;
  font-size:var(--official-label-font-size);
  background:#fff;
  height:calc(var(--official-label-height) - var(--express-area-height));
  display:grid;
  grid-template-rows:auto minmax(0, 1fr) auto;
  overflow:hidden;
}

.portal-label-product-panel__head{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1px solid #17243a;
}

.portal-label-product-panel__head span{
  padding:4px 7px;
  border-right:1px solid #17243a;
  font-weight:800;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.portal-label-product-panel__head span:last-child{
  border-right:0;
}

.portal-label-message-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:18mm;
  border-bottom:1px solid #17243a;
}

.portal-label-message-row span{
  padding:5px 7px;
  border-right:1px solid #17243a;
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  overflow:hidden;
}

.portal-label-message-row span:last-child{
  border-right:0;
}

.portal-label-product-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-content:start;
  min-height:0;
}

.portal-label-product-line{
  display:grid;
  grid-template-columns:34px minmax(0, 1fr) 24px;
  gap:5px;
  align-items:start;
  padding:5px 7px;
  border-bottom:1px solid #d7d7d7;
  min-height:21mm;
  border-right:1px solid #d7d7d7;
}

.portal-label-product-line:nth-child(2n){
  border-right:0;
}

.portal-label-console--no-product-image .portal-label-product-line{
  grid-template-columns:minmax(0, 1fr) 24px;
}

.portal-label-console--no-quantity .portal-label-product-line{
  grid-template-columns:34px minmax(0, 1fr);
}

.portal-label-console--no-product-image.portal-label-console--no-quantity .portal-label-product-line{
  grid-template-columns:minmax(0, 1fr);
}

.portal-label-product-image{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #d7d7d7;
  color:#8a94a3;
  font-weight:900;
  overflow:hidden;
}

.portal-label-product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-label-product-text{
  min-width:0;
  display:grid;
  gap:2px;
  align-content:start;
  line-height:1.25;
}

.portal-label-product-text strong,
.portal-label-product-text span{
  display:block;
  overflow:visible;
  white-space:normal;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.portal-label-product-text strong{
  max-height:2.5em;
  overflow:hidden;
}

.portal-label-product-text span{
  max-height:4.8em;
  overflow:hidden;
}

.portal-label-product-text > strong,
.portal-label-product-text > span{
  font-size:var(--sku-font-size, 12px);
}

.portal-label-console--sku-bold .portal-label-product-text > strong,
.portal-label-console--sku-bold .portal-label-product-text > span{
  font-weight:800;
}

.portal-label-product-line b{
  color:#d71920;
  font-size:24px;
  text-align:center;
}

.portal-label-total-row{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:flex-end;
  gap:8px;
  min-height:18mm;
  padding:4px 9px 8px;
}

.portal-label-total-row > span{
  font-size:12px;
  font-weight:900;
}

.portal-label-total-row > strong{
  display:block;
  font-size:var(--quantity-total-font-size, 32px);
  line-height:1;
  font-weight:900;
}

.portal-label-buyer-message{
  min-width:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  padding:0 4px;
  color:#17243a;
  font-size:var(--buyer-message-font-size, 14px);
  font-weight:700;
  line-height:1.15;
  text-align:center;
  overflow:hidden;
}

.portal-label-buyer-message b{
  flex:0 0 auto;
  font:inherit;
  font-weight:900;
}

.portal-label-buyer-message span{
  min-width:0;
  max-height:2.3em;
  font:inherit;
  white-space:pre-wrap;
  overflow:hidden;
  overflow-wrap:anywhere;
}

.portal-label-missing,
.portal-label-empty{
  display:grid;
  place-items:center;
  min-height:80mm;
  padding:20px;
  text-align:center;
  color:#63718a;
}

.portal-label-document-wrap .portal-label-missing{
  width:100%;
  height:100%;
  min-height:0;
  box-sizing:border-box;
  align-content:center;
  justify-items:center;
  gap:8px;
  padding:8mm 7mm;
  overflow:hidden;
}

.portal-label-document-wrap .portal-label-missing span{
  overflow-wrap:anywhere;
}

.portal-label-document-wrap .portal-label-missing p{
  max-width:88%;
  margin:4px 0 2px;
  color:#4e6078;
  font-size:13px;
  line-height:1.45;
}

.portal-label-missing strong{
  display:block;
  color:#d58900;
}

.portal-label-missing__reload{
  border:0;
  border-radius:999px;
  min-height:32px;
  padding:0 14px;
  background:#0f7f8c;
  color:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}

.portal-label-settings{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  background:#fff;
  border-left:1px solid #dce7f0;
  box-shadow:-12px 0 30px rgba(0,0,0,.18);
}

.portal-label-settings__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 20px 16px;
  border-bottom:1px solid #edf2f7;
}

.portal-label-settings__head strong{
  font-size:20px;
}

.portal-label-settings__head span{
  font-weight:900;
}

.portal-label-settings__section{
  display:grid;
  gap:10px;
  padding:16px 20px;
  border-bottom:1px solid #edf2f7;
}

.portal-label-settings__section h2{
  margin:0 0 4px;
  font-size:16px;
}

.portal-label-settings label{
  display:grid;
  gap:7px;
  color:#17243a;
  font-size:13px;
  font-weight:800;
}

.portal-label-check{
  display:flex !important;
  grid-template-columns:none;
  align-items:center;
  gap:9px !important;
  line-height:1.45;
}

.portal-label-settings input[type="number"],
.portal-label-settings select{
  width:100%;
  height:36px;
  border:1px solid #cfe0ec;
  border-radius:6px;
  padding:0 10px;
  background:#fff;
  color:#17243a;
}

.portal-label-print-action,
.portal-label-download-action{
  justify-content:center;
}

.portal-label-save-status{
  min-height:18px;
  color:#0d7180;
  font-size:12px;
  font-weight:800;
}

.portal-detail-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:14px;
  padding:18px 22px 22px;
}

.portal-detail-grid--compact{
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
}

.portal-detail-grid div{
  border:1px solid #e2edf5;
  border-radius:18px;
  background:linear-gradient(135deg, #ffffff 0%, #f4fbfd 100%);
  padding:14px 16px;
  min-width:0;
}

.portal-detail-grid span,
.portal-mini-list span{
  display:block;
  color:#63718a;
  font-size:12px;
  font-weight:800;
}

.portal-detail-grid strong{
  display:block;
  margin-top:5px;
  overflow-wrap:anywhere;
}

.portal-timeline{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
  padding:18px 22px 22px;
}

.portal-timeline__item{
  position:relative;
  display:flex;
  gap:12px;
  border:1px solid #e2edf5;
  border-radius:18px;
  padding:14px;
  background:#fff;
}

.portal-timeline__item > span{
  width:12px;
  height:12px;
  flex:0 0 12px;
  border-radius:999px;
  margin-top:5px;
  background:#c8d6e3;
  box-shadow:0 0 0 5px #edf5fa;
}

.portal-timeline__item--done > span{
  background:#0c9f67;
}

.portal-timeline__item--warning > span{
  background:#d58900;
}

.portal-timeline__item strong{
  display:block;
}

.portal-timeline__item p{
  margin:4px 0;
  color:#52617a;
}

.portal-timeline__item small{
  color:#7a8798;
}

.portal-two-column{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
}

.portal-two-column--inside{
  padding:0 22px 22px;
}

.portal-mini-list{
  display:grid;
  gap:10px;
  padding:0 22px 22px;
}

.portal-mini-list div{
  border:1px solid #edf2f7;
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
}

.portal-order-list-region{
  position:relative;
  padding-bottom:132px;
}

.portal-order-list-region.is-loading{
  opacity:.72;
}

.portal-order-list-region.is-loading::before{
  content:"";
  position:absolute;
  right:18px;
  top:12px;
  z-index:8;
  width:22px;
  height:22px;
  border:3px solid #d8edf4;
  border-top-color:#0f7d8a;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(15, 88, 110, .12);
  animation:portal-order-spin .8s linear infinite;
}

.portal-mini-action.is-loading,
.portal-link-button.is-loading{
  opacity:.76;
  cursor:progress;
}

@keyframes portal-order-spin{
  to{ transform:rotate(360deg); }
}

[data-fixed-list-root]{
  position:relative;
  padding-bottom:152px;
}

.portal-order-fixed-bar{
  position:fixed;
  left:50%;
  right:auto;
  bottom:14px;
  z-index:120;
  width:min(1180px, calc(100vw - 32px));
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px;
  border:1px solid #dce8f1;
  border-radius:18px;
  background:rgba(247, 251, 253, .96);
  backdrop-filter:blur(12px);
  box-shadow:0 14px 34px rgba(20, 44, 70, .16);
}

.portal-order-fixed-bar.portal-print-fixed-bar{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:auto;
  width:100%;
  transform:none;
  margin-top:18px;
  box-shadow:0 10px 28px rgba(20, 44, 70, .08);
}

.portal-order-fixed-bar__selection,
.portal-order-fixed-bar__pager{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.portal-order-fixed-bar__selection span,
.portal-order-page-jump,
.portal-order-page-size{
  display:flex;
  align-items:center;
  gap:6px;
  color:#53627a;
  font-size:13px;
  font-weight:800;
}

.portal-order-fixed-bar .portal-control{
  height:36px;
  min-height:36px;
  border-radius:10px;
  padding:0 10px;
}

.order-detail-action-note{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  border-radius:14px;
  padding:0 14px;
  background:#fff7e4;
  color:#8a5b00;
  font-weight:800;
  line-height:1.35;
}

.portal-order-page-jump input{
  width:72px;
  text-align:center;
}

.portal-order-page-size select{
  width:110px;
}

.preprint-stock-page .portal-fixed-list-bar{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:auto;
  width:auto;
  transform:none;
  margin:16px;
  box-shadow:0 10px 28px rgba(20, 44, 70, .08);
}

.balance-ledger-page .card{
  overflow:hidden;
  border-color:#d9e7ee;
  border-radius:18px;
  box-shadow:0 18px 48px rgba(15,31,45,.08);
}

.balance-ledger-page .card-header{
  border-bottom:1px solid #e6eef4;
  padding:22px 24px;
  background:#fff;
}

.balance-ledger-page .card-title{
  color:#10233f;
  font-size:22px;
  font-weight:900;
}

.balance-ledger-page .card-body{
  padding:22px 24px;
}

.balance-ledger-filter{
  display:grid;
  grid-template-columns:minmax(150px, 190px) minmax(150px, 190px) minmax(160px, 220px) minmax(220px, 1fr) auto auto;
  gap:12px;
  align-items:end;
}

.balance-ledger-filter label{
  display:grid;
  gap:8px;
  color:#10233f;
  font-weight:800;
}

.balance-ledger-filter .portal-control{
  min-height:46px;
  border-radius:14px;
}

.balance-ledger-note{
  max-width:460px;
  white-space:normal;
  line-height:1.55;
}

.balance-ledger-amount--plus{
  color:#0f7a4f;
  font-weight:900;
}

.balance-ledger-amount--minus{
  color:#a13131;
  font-weight:900;
}

.portal-after-sales-filter{
  margin:12px 0 18px;
  border:1px solid #d8e6f3;
  border-radius:18px;
  background:#f7fbff;
  padding:10px 12px;
}

.portal-after-sales-filter > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#0b2a4a;
  font-weight:700;
}

.portal-after-sales-filter > summary::-webkit-details-marker{
  display:none;
}

.portal-after-sales-filter > summary::after{
  content:"⌄";
  color:#0f8191;
  font-size:16px;
}

.portal-after-sales-filter[open] > summary::after{
  content:"⌃";
}

.portal-after-sales-filter__title{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.portal-after-sales-filter__count{
  margin-left:auto;
  color:#0f8191;
  white-space:nowrap;
}

.portal-after-sales-filter .portal-status-filter{
  margin-top:10px;
}

.portal-status-filter--sub .portal-status-filter__item{
  font-size:14px;
}

.portal-mini-action.is-disabled{
  opacity:.48;
  pointer-events:none;
}

@media (max-width: 980px){
  .balance-ledger-filter{
    grid-template-columns:1fr;
  }
}

@media (max-width: 900px){
  .rule-layout,
  .rule-grid,
  .production-match-preview__flow{
    grid-template-columns:1fr;
  }

  .rule-card .rule-actions{
    justify-content:stretch;
  }

  .rule-card .rule-actions a,
  .rule-card .rule-actions button{
    flex:1;
  }
}

@media print{
  .portal-no-print,
  .portal-print-button{
    display:none !important;
  }
  .portal-print-body{
    background:#fff;
  }
  .portal-print-body--labels{
    background:#fff;
  }
  .portal-label-console{
    display:block;
    min-height:0;
  }
  .portal-label-preview-stage{
    display:block;
    padding:0;
    overflow:visible;
  }
  .portal-label-page{
    width:var(--official-label-width);
    min-height:var(--official-label-height);
    margin:0;
    box-shadow:none;
    overflow:hidden;
  }
  .portal-label-document-wrap{
    height:var(--express-area-height);
  }
  .portal-label-product-panel{
    break-inside:avoid;
  }
  .portal-print-sheet{
    width:100%;
    margin:0;
  }
  .portal-print-header,
  .portal-print-card{
    box-shadow:none;
  }
  .portal-print-label{
    break-inside:avoid;
  }
  .portal-official-label{
    min-height:720px;
  }
  .portal-official-label iframe,
  .portal-official-label img{
    height:720px;
  }
}

@media (max-width: 760px){
  .portal-order-toolbar,
  .portal-date-filter{
    align-items:stretch;
  }
  .portal-date-filter--search,
  .portal-scan-grid,
  .portal-ops-board,
  .portal-auto-push-form,
  .portal-progress-lanes,
  .portal-scan-card .portal-inline-form,
  .portal-refresh-grid,
  .portal-refresh-guides{
    grid-template-columns:1fr;
  }
  .portal-order-toolbar .portal-link-button,
  .portal-date-filter .portal-link-button{
    width:100%;
  }
  .portal-inbound-section--sku,
  .portal-inbound-section--details,
  .portal-inbound-section--logistics{
    grid-template-columns:1fr;
  }
  .portal-bundle-row{
    grid-template-columns:1fr;
  }
  .portal-inbound-image-field .pod-image-uploader{
    grid-template-columns:96px 96px;
  }
  .portal-inbound-image-field .pod-image-uploader__preview,
  .portal-inbound-image-field .pod-image-uploader__add{
    width:96px;
    height:96px;
    min-height:96px;
  }
  .portal-inbound-image-field .pod-image-uploader__meta{
    grid-column:1 / -1;
    max-width:none;
  }
  .portal-print-header,
  .portal-print-label{
    flex-direction:column;
  }
  .portal-print-label__meta{
    flex:0 0 auto;
    width:100%;
  }
  .portal-official-label,
  .portal-official-label iframe,
  .portal-official-label img{
    width:100%;
    height:420px;
    min-height:420px;
  }
  .portal-print-line{
    grid-template-columns:1fr;
  }
  .portal-two-column{
    grid-template-columns:1fr;
  }
  .portal-inventory-switch,
  .portal-inbound-form,
  .portal-inventory-filter-bar{
    grid-template-columns:1fr;
  }
  .portal-inbound-submit{
    justify-content:stretch;
  }
  .portal-inbound-submit .portal-login-btn{
    width:100%;
  }
  .portal-inventory-filter-bar__total{
    justify-self:start;
  }
  .portal-refresh-form{
    padding:0 16px 18px;
  }
  .portal-refresh-toggle{
    align-items:flex-start;
  }
  .portal-refresh-actions{
    justify-content:stretch;
  }
  .portal-refresh-actions .portal-link-button{
    width:100%;
  }
  .portal-stock-log-modal{
    padding:12px;
  }
  .portal-stock-log-list__header{
    display:none;
  }
  .portal-stock-log-list__row{
    grid-template-columns:1fr;
  }
  .portal-order-fixed-bar{
    align-items:stretch;
    bottom:10px;
    width:calc(100vw - 20px);
    flex-direction:column;
  }
  [data-fixed-list-root]{
    padding-bottom:190px;
  }
  .portal-order-list-region{
    padding-bottom:170px;
  }
  .portal-order-fixed-bar__selection,
  .portal-order-fixed-bar__pager{
    width:100%;
  }
}
