/* manual-shipment-ui.css — DS.13.24: manual-shipment.css + ugradjeni <style> + theme-bridge (ds05e) + ds05h + biz dialog <style> (isti redosled) */
/* ===== DS.13.24: iz manual-shipment.css ===== */
/* ==========================================================
   CORRECTO WMS
   MANUAL SHIPMENT UI V2
   canonical page stylesheet
   ========================================================== */


/* ==========================================================
   01. PAGE
   ========================================================== */

.page-manual-shipment{
  background:var(--wms-bg,#202020);
  color:var(--wms-text,#fff);
}

.page-manual-shipment *{
  box-sizing:border-box;
}

.page-manual-shipment .v14-page{
  width:100%;
  max-width:none !important;
  margin:0;
  padding:24px 28px 52px;
}

.manual-create-layout{
  width:100%;
  max-width:none;
  margin:18px 0 0;
}


/* ==========================================================
   02. HERO
   ========================================================== */

.manual-hero{
  width:100%;
  min-height:126px;

  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:24px;

  padding:24px 28px;

  background:var(--wms-surface,#414141);
  background-image:none;

  border:1px solid var(--wms-line,#5a5a5a);
  border-radius:20px;

  box-shadow:
    0 14px 32px rgba(0,0,0,.16) !important;
}

.manual-hero > div:first-child{
  min-width:0;
}

.manual-hero small{
  display:block;
  margin-bottom:6px;

  color:#9fc5ff;
  font-size:12px !important;
  font-weight:800;
  letter-spacing:.04em;
}

.manual-hero h1{
  margin:0 0 5px;

  color:#fff;
  font-size:30px;
  line-height:1.12;
  letter-spacing:-.025em;
}

.manual-hero p{
  margin:0;

  color:var(--wms-muted,#d0d0d0);
  font-size:14px;
  line-height:1.45;
}

.manual-hero-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.manual-history-btn{
  min-height:46px;

  padding:0 17px;

  border:1px solid var(--wms-line-strong,#707070);
  border-radius:12px;

  background:var(--wms-surface-2,#363636);
  color:#fff;

  font-size:13px;
  font-weight:800;

  cursor:pointer;

  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.manual-history-btn:hover{
  background:var(--wms-hover,#4b4b4b);
  border-color:#8a8a8a;
  transform:translateY(-1px);
}


/* ==========================================================
   03. MAIN FORM CARD
   ========================================================== */

.manual-form-card{
  width:100%;

  margin:0;
  padding:22px 24px 24px;

  background:var(--wms-surface,#414141);
  background-image:none;

  border:1px solid var(--wms-line,#5a5a5a);
  border-radius:20px;

  box-shadow:
    0 14px 34px rgba(0,0,0,.14) !important;
}

.manual-form-card > h2,
.manual-form-card > h3{
  margin:0 0 18px;

  color:#fff;

  font-size:20px !important;
  line-height:1.2;
}


/* ==========================================================
   04. FORM GRID
   ========================================================== */

.manual-form-card .v14-form,
.manual-form-card .v14-form-2{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(0,1fr);

  column-gap:20px;
  row-gap:11px;

  align-items:start;
}

.manual-form-card label,
.manual-form-card .field{
  min-width:0;

  display:grid;
  grid-template-rows:auto 46px;

  gap:5px;

  margin:0;

  color:#fff;

  font-size:13px !important;
  line-height:1.25;
  font-weight:600;
}

.manual-form-card label > span,
.manual-form-card .field > span{
  min-height:16px;
}


/* ==========================================================
   05. INPUTS
   ========================================================== */

.page-manual-shipment input:not([type="checkbox"]),
.page-manual-shipment select,
.page-manual-shipment textarea{
  width:100%;

  margin:0;

  border:1px solid #686868 !important;
  border-radius:10px !important;

  outline:none;

  background:var(--wms-input,#2b2b2b) !important;
  background-image:none !important;

  color:#fff !important;

  font-family:inherit;
  font-size:14px !important;
  font-weight:500;

  box-shadow:none !important;

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.page-manual-shipment input:not([type="checkbox"]),
.page-manual-shipment select{
  height:46px;
  min-height:46px !important;

  padding:0 13px;
}

.page-manual-shipment textarea{
  min-height:88px;
  padding:11px 13px;

  resize:vertical;
}

.page-manual-shipment input::placeholder,
.page-manual-shipment textarea::placeholder{
  color:#939aa5 !important;

  font-size:13px !important;

  opacity:1;
}

.page-manual-shipment input:focus,
.page-manual-shipment select:focus,
.page-manual-shipment textarea:focus{
  border-color:#4e8df7 !important;

  background:#303030 !important;

  box-shadow:
    0 0 0 3px rgba(59,130,246,.14) !important;
}

.page-manual-shipment select{
  cursor:pointer;
}


/* ==========================================================
   06. FULL WIDTH ELEMENTS
   ========================================================== */

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

.manual-items,
.manual-cod-box,
.aks-extra-options{
  grid-column:1 / -1;
}


/* ==========================================================
   07. COD / PAYMENT
   ========================================================== */

.manual-cod-box{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(0,1fr);

  gap:12px 18px;

  padding:15px 16px;

  border:1px solid var(--wms-line,#5a5a5a);
  border-radius:14px;

  background:var(--wms-surface-2,#363636);
}

.manual-switch{
  min-height:44px;

  display:flex !important;
  align-items:center;

  gap:10px !important;

  color:#fff;

  font-size:13px;
  font-weight:700 !important;
}

.manual-switch input[type="checkbox"]{
  width:18px;
  height:18px;

  margin:0;

  accent-color:#2f72ed;
}


/* ==========================================================
   08. AKS EXTRA OPTIONS
   ========================================================== */

.aks-extra-options{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(0,1fr);

  gap:12px 18px;

  padding:15px 16px;

  border:1px solid var(--wms-line,#5a5a5a);
  border-radius:14px;

  background:var(--wms-surface-2,#363636);
}

.aks-return-switch{
  grid-column:1 / -1;

  min-height:42px;

  padding:8px 10px;

  border-radius:10px;

  background:var(--wms-surface-3);
}


/* ==========================================================
   09. POSTAL AUTOCOMPLETE
   ========================================================== */

.aks-postal-field{
  position:relative;
}

.aks-postal-suggestions{
  position:absolute;

  z-index:100;

  top:calc(100% + 5px);
  left:0;
  right:0;

  display:none;

  max-height:270px;

  overflow:auto;

  padding:5px;

  border:1px solid var(--wms-line-strong,#707070);
  border-radius:11px;

  background:#292929;

  box-shadow:
    0 18px 45px rgba(0,0,0,.38);
}

.aks-postal-suggestions.open{
  display:block;
}

.aks-postal-option{
  width:100%;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  padding:10px 11px;

  border:0;
  border-radius:8px;

  background:transparent;

  color:#fff;

  text-align:left;

  cursor:pointer;
}

.aks-postal-option:hover,
.aks-postal-option:focus{
  background:var(--wms-hover,#4b4b4b);

  outline:none;
}

.aks-postal-option b{
  font-size:13px;
}

.aks-postal-option small{
  color:var(--wms-muted,#d0d0d0);

  font-size:11px !important;

  white-space:nowrap;
}

.aks-postal-manual{
  margin-top:4px;

  padding:8px 11px;

  border-top:1px solid var(--wms-line,#5a5a5a);

  color:#aaa;

  font-size:11px;
}


/* ==========================================================
   10. ITEMS
   ========================================================== */

.manual-items{
  position:relative;

  padding:16px;

  border:1px solid var(--wms-line,#5a5a5a);
  border-radius:15px;

  background:var(--wms-surface-2,#363636);
}

.manual-items-head{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:14px;

  margin-bottom:11px;
}

.manual-items-head h2,
.manual-items-head h3{
  margin:0;

  font-size:16px !important;
}

.product-search-label{
  position:relative;
}

.product-suggestions{
  position:absolute;

  z-index:90;

  left:0;
  right:0;
  top:calc(100% + 5px);

  display:none;

  max-height:310px;

  overflow:auto;

  padding:5px;

  border:1px solid var(--wms-line-strong,#707070);
  border-radius:11px;

  background:#292929;

  box-shadow:
    0 18px 45px rgba(0,0,0,.38);
}

.product-suggestions.open{
  display:block;
}

.product-suggestion{
  width:100%;

  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    auto;

  gap:12px;

  align-items:center;

  padding:9px 11px;

  border:0;
  border-radius:8px;

  background:transparent;

  color:#fff;

  text-align:left;

  cursor:pointer;
}

.product-suggestion:hover{
  background:var(--wms-hover,#4b4b4b);
}

.product-suggestion b{
  display:block;

  font-size:13px;
  line-height:1.3;
}

.product-suggestion small{
  color:var(--wms-muted,#d0d0d0);

  font-size:11px !important;
}


/* ==========================================================
   11. ITEM ROWS
   ========================================================== */

.manual-item-list{
  display:grid;

  gap:7px;
}

.manual-item{
  display:grid !important;

  grid-template-columns:
    minmax(270px,2.4fr)
    minmax(90px,.55fr)
    minmax(110px,.65fr)
    minmax(120px,.7fr)
    40px;

  gap:10px;

  align-items:center;

  padding:9px 10px;

  border:1px solid #555;
  border-radius:11px;

  background:#303030;
}

.manual-item-info{
  min-width:0;

  display:flex;

  align-items:center;

  gap:10px;
}

.manual-item-info img{
  width:42px;
  height:42px;

  flex:0 0 42px;

  border-radius:8px;

  object-fit:contain;

  background:#fff;
}

.manual-item-info > div{
  min-width:0;

  display:grid;

  gap:2px;
}

.manual-item-info b{
  display:-webkit-box;

  overflow:hidden;

  font-size:13px;
  line-height:1.25;

  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.manual-item-info small{
  overflow:hidden;

  color:var(--wms-muted,#d0d0d0);

  font-size:11px !important;

  text-overflow:ellipsis;
  white-space:nowrap;
}

.manual-item label{
  display:grid;

  grid-template-rows:auto 40px !important;

  gap:3px !important;

  font-size:11px !important;
}

.manual-item label input{
  height:40px !important;
  min-height:40px !important;
}

.manual-item-total{
  text-align:right;
}

.manual-item-total b{
  display:block;

  color:#fff;

  font-size:14px;
  white-space:nowrap;
}

.manual-item-total small{
  color:var(--wms-muted,#d0d0d0);

  font-size:10px !important;
}

.manual-remove{
  width:40px;
  height:40px;

  padding:0;

  border:1px solid #7f3131;
  border-radius:9px;

  background:#5c2626;

  color:#fff;

  font-size:18px;

  cursor:pointer;
}

.manual-remove:hover{
  background:#7f1d1d;
}


/* ==========================================================
   12. TOTALS
   ========================================================== */

.manual-totals{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:8px;

  margin-top:10px;
}

.manual-totals > *,
.manual-totals span{
  min-width:0;

  padding:10px 12px;

  border:1px solid #555;
  border-radius:10px;

  background:#303030;
}


/* ==========================================================
   13. BUTTONS
   ========================================================== */

.page-manual-shipment button,
.page-manual-shipment .btn,
.page-manual-shipment .v14-primary{
  font-family:inherit;

  font-size:13px !important;
}

.page-manual-shipment .v14-primary{
  min-height:46px;

  display:inline-flex;

  align-items:center;
  justify-content:center;

  gap:7px;

  padding:0 18px;

  border:1px solid #3d7ff0 !important;
  border-radius:12px !important;

  background:#2f72ed !important;

  color:#fff;

  font-weight:800;

  cursor:pointer;

  box-shadow:
    0 7px 18px rgba(37,99,235,.18);
}

.page-manual-shipment .v14-primary:hover{
  background:#3b82f6 !important;
}

.page-manual-shipment .v14-primary:disabled{
  opacity:.5;

  cursor:not-allowed;

  box-shadow:none;
}


/* ==========================================================
   14. HISTORY DRAWER
   ========================================================== */

.manual-drawer{
  position:fixed;

  z-index:1500;

  inset:0;

  visibility:hidden;

  pointer-events:none;
}

.manual-drawer.open{
  visibility:visible;

  pointer-events:auto;
}

.manual-drawer-backdrop{
  position:absolute;

  inset:0;

  border:0;

  background:rgba(0,0,0,.65);

  opacity:0;

  backdrop-filter:blur(5px);

  transition:opacity .18s ease;
}

.manual-drawer.open .manual-drawer-backdrop{
  opacity:1;
}

.manual-drawer-panel{
  position:absolute;

  top:0;
  right:0;
  bottom:0;

  width:min(720px,94vw);

  overflow:auto;

  padding:20px;

  border-left:1px solid var(--wms-line,#5a5a5a);

  background:#292929;
  color:#fff;

  transform:translateX(100%);

  box-shadow:
    -24px 0 60px rgba(0,0,0,.35);

  transition:transform .2s ease;
}

.manual-drawer.open .manual-drawer-panel{
  transform:translateX(0);
}

.manual-drawer-panel header{
  display:flex;

  align-items:flex-start;
  justify-content:space-between;

  gap:16px;

  padding-bottom:14px;

  border-bottom:1px solid var(--wms-line,#5a5a5a);
}

.manual-drawer-panel header small{
  color:#9fc5ff;

  font-size:11px !important;

  font-weight:800;
  letter-spacing:.1em;
}

.manual-drawer-panel header h2{
  margin:4px 0;

  font-size:24px !important;
}

.manual-drawer-panel header p{
  margin:0;

  color:var(--wms-muted,#d0d0d0);

  font-size:13px;
}

.manual-drawer-close{
  width:40px;
  height:40px;

  border:1px solid #626262;
  border-radius:10px;

  background:#363636;

  color:#fff;

  font-size:22px;

  cursor:pointer;
}

.manual-drawer-toolbar{
  display:grid;

  grid-template-columns:minmax(0,1fr) auto;

  gap:9px;

  padding:14px 0;
}

.manual-drawer-toolbar input,
.manual-drawer-toolbar button{
  min-height:44px;
}


/* ==========================================================
   15. HISTORY CARDS
   ========================================================== */

.manual-history-list{
  display:grid;

  gap:8px;
}

.manual-history-list .manual-shipment-card{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    auto
    auto;

  gap:12px;

  align-items:center;

  padding:12px;

  border:1px solid #515151;
  border-radius:12px;

  background:#333;
}

.manual-card-main{
  min-width:0;

  display:grid;

  gap:3px;
}

.manual-card-main small{
  color:var(--wms-muted,#d0d0d0);

  font-size:11px;
}

.manual-card-money{
  min-width:130px;

  display:grid;

  gap:4px;

  text-align:right;
}

.manual-card-actions{
  min-width:128px;

  display:grid;

  gap:6px;
}

.manual-card-actions button,
.manual-label-link{
  min-height:38px;

  padding:7px 10px;

  border:1px solid #626262;
  border-radius:8px;

  background:#3a3a3a;

  color:#fff;

  font-size:11px !important;
  font-weight:700;

  text-decoration:none;
  text-align:center;

  cursor:pointer;
}


/* ==========================================================
   16. AKS STATUS
   ========================================================== */

.manual-aks-ok,
.manual-aks-error,
.manual-aks-wait{
  margin-top:7px;

  padding:8px 10px;

  border-radius:9px;

  display:grid;

  gap:2px;

  font-size:11px;
}

.manual-aks-ok{
  border:1px solid rgba(39,174,96,.40);

  background:rgba(39,174,96,.12);
}

.manual-aks-error{
  border:1px solid rgba(235,87,87,.40);

  background:rgba(235,87,87,.12);
}

.manual-aks-wait{
  border:1px solid rgba(242,153,74,.32);

  background:rgba(242,153,74,.10);
}


/* ==========================================================
   17. SUCCESS MODAL
   ========================================================== */

.manual-success{
  position:fixed;

  z-index:1700;

  inset:0;

  display:none;

  place-items:center;

  padding:18px;

  background:rgba(0,0,0,.72);

  backdrop-filter:blur(7px);
}

.manual-success.open{
  display:grid;
}

.manual-success-card{
  width:min(620px,96vw);

  max-height:90vh;

  overflow:auto;

  padding:24px;

  border:1px solid var(--wms-line,#5a5a5a);
  border-radius:18px;

  background:#303030;

  color:#fff;

  box-shadow:
    0 30px 90px rgba(0,0,0,.45);
}

.manual-success-icon{
  width:52px;
  height:52px;

  display:grid;

  place-items:center;

  margin-bottom:12px;

  border-radius:14px;

  background:#15803d;

  color:#fff;

  font-size:29px;
  font-weight:900;
}

.manual-success-card > small{
  color:#9fc5ff;

  font-size:11px !important;

  font-weight:800;
  letter-spacing:.1em;
}

.manual-success-card h2{
  margin:5px 0;

  font-size:26px !important;
}

.manual-success-card p{
  color:var(--wms-muted,#d0d0d0);

  font-size:13px;
}

.manual-success-summary{
  margin-top:14px;

  padding:14px;

  border:1px solid #555;
  border-radius:11px;

  background:#292929;
}

.manual-success-actions{
  display:flex;

  justify-content:flex-end;

  gap:9px;

  margin-top:15px;
}


/* ==========================================================
   18. RESPONSIVE
   ========================================================== */

@media(max-width:1100px){

  .page-manual-shipment .v14-page{
    padding:18px;
  }

  .manual-form-card .v14-form,
  .manual-form-card .v14-form-2{
    column-gap:14px;
  }

  .manual-item{
    grid-template-columns:
      minmax(0,1fr)
      minmax(90px,.45fr)
      minmax(105px,.55fr);
  }

  .manual-item-info{
    grid-column:1 / -1;
  }

  .manual-remove{
    grid-column:3;
    justify-self:end;
  }
}


@media(max-width:760px){

  .page-manual-shipment .v14-page{
    padding:12px;
  }

  .manual-hero{
    grid-template-columns:1fr;

    padding:19px !important;
  }

  .manual-hero-actions,
  .manual-history-btn{
    width:100%;
  }

  .manual-hero h1{
    font-size:25px;
  }

  .manual-form-card{
    padding:16px;
  }

  .manual-form-card .v14-form,
  .manual-form-card .v14-form-2{
    grid-template-columns:1fr;
  }

  .v14-span-2,
  .manual-items,
  .manual-cod-box,
  .aks-extra-options{
    grid-column:1;
  }

  .manual-cod-box,
  .aks-extra-options{
    grid-template-columns:1fr;
  }

  .aks-return-switch{
    grid-column:1;
  }

  .manual-item{
    grid-template-columns:
      minmax(0,1fr)
      minmax(90px,.55fr);

    padding:10px;
  }

  .manual-item-info{
    grid-column:1 / -1;
  }

  .manual-remove{
    grid-column:2;

    justify-self:end;
  }

  .manual-totals{
    grid-template-columns:1fr;
  }

  .manual-history-list .manual-shipment-card{
    grid-template-columns:1fr;
  }

  .manual-card-money{
    text-align:left;
  }

  .manual-card-actions{
    grid-template-columns:1fr 1fr;
  }

  .manual-drawer-panel{
    width:100%;

    padding:14px;
  }

  .manual-drawer-toolbar{
    grid-template-columns:1fr;
  }
}


@media(max-width:480px){

  .manual-hero{
    border-radius:15px !important;
  }

  .manual-form-card{
    border-radius:15px;
  }

  .manual-item{
    grid-template-columns:1fr;
  }

  .manual-item-info,
  .manual-remove{
    grid-column:1;
  }

  .manual-remove{
    width:100%;
  }

  .manual-card-actions{
    grid-template-columns:1fr;
  }

  .manual-success-actions{
    display:grid;
  }
}


/* ==========================================================
   MANUAL_SHIPMENT_AUTOCOMPLETE_UI_V1
   Scoped only to article/service autocomplete.
   BizniSoft customer suggestions are intentionally untouched.
   ========================================================== */

#productSuggestions.product-suggestions{
  max-height:380px;

  padding:6px;
}

#productSuggestions .product-suggestion{
  grid-template-columns:
    50px
    minmax(0,1fr)
    minmax(125px,auto);

  gap:12px;

  min-height:68px;

  padding:9px 10px;

  border:1px solid transparent;
}

#productSuggestions .product-suggestion +
.product-suggestion{
  margin-top:3px;
}

#productSuggestions .product-suggestion:hover{
  border-color:
    var(--wms-line-strong,#707070);
}

#productSuggestions .product-suggestion-media{
  width:46px;
  height:46px;

  display:flex;

  align-items:center;
  justify-content:center;

  overflow:hidden;

  border-radius:9px;

  background:
    var(--wms-hover,#414141);
}

#productSuggestions .product-suggestion-media img{
  width:100%;
  height:100%;

  display:block;

  object-fit:cover;
}

#productSuggestions .product-suggestion-media-service{
  font-size:16px;
  font-weight:800;

  line-height:1;

  letter-spacing:.02em;

  color:#fff;
}

#productSuggestions .product-suggestion-main{
  min-width:0;

  display:block;
}

#productSuggestions .product-suggestion-main b{
  margin-bottom:4px;

  font-size:13px;

  line-height:1.3;

  white-space:normal;

  overflow-wrap:anywhere;
}

#productSuggestions .product-suggestion-main small{
  display:block;

  line-height:1.35;

  white-space:normal;
}

#productSuggestions .product-suggestion-meta{
  min-width:125px;

  display:block;

  text-align:right;
}

#productSuggestions .product-suggestion-meta b{
  margin-bottom:4px;

  font-size:14px;

  font-variant-numeric:tabular-nums;

  white-space:nowrap;
}

#productSuggestions .product-suggestion-meta small{
  display:block;

  line-height:1.35;

  white-space:nowrap;
}

#productSuggestions .product-suggestion-service
.product-suggestion-media{
  border:
    1px solid
    var(--wms-line-strong,#707070);
}


@media(max-width:760px){

  #productSuggestions .product-suggestion{
    grid-template-columns:
      44px
      minmax(0,1fr);

    gap:10px;
  }

  #productSuggestions .product-suggestion-media{
    width:40px;
    height:40px;
  }

  #productSuggestions .product-suggestion-meta{
    grid-column:2;

    min-width:0;

    display:flex;

    align-items:center;

    gap:10px;

    text-align:left;
  }

  #productSuggestions .product-suggestion-meta b,
  #productSuggestions .product-suggestion-meta small{
    margin:0;
  }

}


@media(max-width:480px){

  #productSuggestions.product-suggestions{
    max-height:330px;
  }

  #productSuggestions .product-suggestion{
    padding:8px;
  }

}


/* ==========================================================
   MANUAL_SHIPMENT_AUTOCOMPLETE_IMAGE_FALLBACK_V2
   ========================================================== */

#productSuggestions .product-suggestion{
  grid-template-columns:
    44px
    minmax(0,1fr)
    minmax(125px,auto);

  gap:10px;
  min-height:60px;
  padding:7px 9px;
}

#productSuggestions .product-suggestion-media{
  width:40px;
  height:40px;
}

#productSuggestions .product-suggestion-media-product{
  position:relative;
}

#productSuggestions .product-suggestion-fallback{
  position:absolute;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:15px;
  font-weight:800;
  line-height:1;

  color:#fff;
}

#productSuggestions .product-suggestion-image{
  position:relative;
  z-index:1;

  width:100%;
  height:100%;

  display:block;
  object-fit:cover;

  background:var(--wms-hover,#414141);
}

#productSuggestions .product-suggestion-media-product.is-fallback{
  border:
    1px solid
    var(--wms-line-strong,#707070);
}

/* ===== DS.13.24: iz manual-shipment.html <style> #1 (MANUAL_BIZ_CUSTOMER_TYPE_REQUIRED_V1) ===== */

/* ============================================================
   MANUAL_BIZ_CUSTOMER_TYPE_REQUIRED_V1
   Tip partnera mora jasno da se izdvoji dok nije izabran.
   ============================================================ */

.manual-biz-type-label--attention{
  color:#fbbf24;
  font-weight:800;
}

.manual-biz-type-select--attention{
  border-color:#f59e0b!important;
  background:
    linear-gradient(
      180deg,
      rgba(245,158,11,.18) 0%,
      rgba(10,25,47,.98) 100%
    )!important;
  color:#fff;
  box-shadow:
    0 0 0 1px rgba(245,158,11,.35),
    0 0 0 4px rgba(245,158,11,.10)!important;
}

.manual-biz-type-select--attention:focus{
  border-color:#fbbf24!important;
  box-shadow:
    0 0 0 1px rgba(251,191,36,.55),
    0 0 0 5px rgba(251,191,36,.16)!important;
}

.manual-biz-type-help{
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.35;
  color:#fbbf24;
  font-weight:700;
}

.manual-biz-type-label:not(.manual-biz-type-label--attention) .manual-biz-type-help{
  display:none;
}

/* ===== DS.13.24: iz wms-manual-shipment-theme-bridge.css ===== */

/* CORRECTO WMS DS05E
   Manual Shipment - scoped theme bridge
   Presentation only. No operational changes.
*/

/* Light palette: scoped exclusively to manual shipment. */
html[data-theme="light"] body.page-manual-shipment {
  --manual-ui-bg: var(--wms-bg);
  --manual-ui-card: #ffffff;
  --manual-ui-card-soft: #f8fafc;
  --manual-ui-input: #ffffff;
  --manual-ui-heading: var(--wms-ui-heading, #101828);
  --manual-ui-text: #172033;
  --manual-ui-muted: #56657c;
  --manual-ui-line: #d6e0eb;
  --manual-ui-primary: var(--wms-ui-primary, #245db8);
}

/* Preserve existing dark styling.
   These variables support common theme usage. */
html[data-theme="dark"] body.page-manual-shipment {
  --manual-ui-bg: #091525;
  --manual-ui-card: #112038;
  --manual-ui-card-soft: #182b46;
  --manual-ui-input: #09182c;
  --manual-ui-heading: #f1f5ff;
  --manual-ui-text: #edf2fc;
  --manual-ui-muted: #a9bbd3;
  --manual-ui-line: #304561;
  --manual-ui-primary: #60a5fa;
}

/* Light: main background and major panels. */
html[data-theme="light"] body.page-manual-shipment {
  background: var(--manual-ui-bg);
  color: var(--manual-ui-text);
}

html[data-theme="light"] body.page-manual-shipment .manual-hero,
html[data-theme="light"] body.page-manual-shipment .manual-form-card {
  background: var(--manual-ui-card);
  border-color: var(--manual-ui-line) !important;
  color: var(--manual-ui-text);
}

html[data-theme="light"] body.page-manual-shipment .manual-hero h1,
html[data-theme="light"] body.page-manual-shipment
  .manual-form-card > h2,
html[data-theme="light"] body.page-manual-shipment
  .manual-form-card > h3 {
  color: var(--manual-ui-heading);
}

html[data-theme="light"] body.page-manual-shipment .manual-hero small {
  color: var(--manual-ui-primary) !important;
}

html[data-theme="light"] body.page-manual-shipment .manual-hero p {
  color: var(--manual-ui-muted);
}

/* Light: inputs and form labels, excluding checkboxes. */
html[data-theme="light"] body.page-manual-shipment
  .manual-form-card label,
html[data-theme="light"] body.page-manual-shipment
  .manual-form-card .field {
  color: var(--manual-ui-text);
}

html[data-theme="light"] body.page-manual-shipment
  input:not([type="checkbox"]),
html[data-theme="light"] body.page-manual-shipment select,
html[data-theme="light"] body.page-manual-shipment textarea {
  background: var(--manual-ui-input) !important;
  color: var(--manual-ui-text) !important;
  border-color: var(--manual-ui-line) !important;
  color-scheme: light;
}

html[data-theme="light"] body.page-manual-shipment
  input:not([type="checkbox"]):focus,
html[data-theme="light"] body.page-manual-shipment select:focus,
html[data-theme="light"] body.page-manual-shipment textarea:focus {
  background: #ffffff !important;
  border-color: #3478e8 !important;
  box-shadow: 0 0 0 3px rgba(52,120,232,.14) !important;
}

html[data-theme="light"] body.page-manual-shipment
  .manual-history-btn {
  background: var(--manual-ui-card-soft) !important;
  color: var(--manual-ui-heading);
  border-color: var(--manual-ui-line) !important;
}

/* History drawer: fix dark-only hardcoded colors. */
html[data-theme="light"] body.page-manual-shipment
  .manual-drawer-panel {
  background: var(--manual-ui-bg);
  color: var(--manual-ui-text);
  border-left-color: var(--manual-ui-line);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-drawer-panel header {
  border-bottom-color: var(--manual-ui-line);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-drawer-panel header h2 {
  color: var(--manual-ui-heading);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-drawer-panel header small {
  color: var(--manual-ui-primary) !important;
}

html[data-theme="light"] body.page-manual-shipment
  .manual-drawer-panel header p {
  color: var(--manual-ui-muted);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-drawer-close {
  background: var(--manual-ui-card-soft);
  color: var(--manual-ui-text);
  border-color: var(--manual-ui-line);
}

/* Cards and action controls inside history. */
html[data-theme="light"] body.page-manual-shipment
  .manual-history-list .manual-shipment-card {
  background: var(--manual-ui-card);
  color: var(--manual-ui-text);
  border-color: var(--manual-ui-line);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-card-main,
html[data-theme="light"] body.page-manual-shipment
  .manual-card-money {
  color: var(--manual-ui-text);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-card-main strong,
html[data-theme="light"] body.page-manual-shipment
  .manual-card-main b {
  color: var(--manual-ui-heading);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-card-main small {
  color: var(--manual-ui-muted);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-card-actions button,
html[data-theme="light"] body.page-manual-shipment
  .manual-label-link {
  background: var(--manual-ui-card-soft);
  color: var(--manual-ui-text);
  border-color: var(--manual-ui-line);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-history-list .manual-shipment-card
  .manual-card-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Positive / warning / error badges retain their meaning.
   Do not override semantic status colors or status logic. */

/* Success dialog: light appearance. */
html[data-theme="light"] body.page-manual-shipment
  .manual-success-card {
  background: var(--manual-ui-card);
  color: var(--manual-ui-text);
  border-color: var(--manual-ui-line);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-success-card h2 {
  color: var(--manual-ui-heading);
}

html[data-theme="light"] body.page-manual-shipment
  .manual-success-card p {
  color: var(--manual-ui-muted);
}

/* Accessible text flow for long recipient names. */
body.page-manual-shipment .manual-card-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ===== DS.13.24: iz wms-manual-shipment-ds05h.css ===== */

/* CORRECTO WMS DS.05H
   Manual shipment visual correction.
   CSS only - no business logic changes.
*/

/* ========================================
   1. HISTORY CARDS - BOTH THEMES
   ======================================== */

.manual-history-list .manual-shipment-card {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(128px, 170px);
    gap: 12px 16px;
    align-items: start;
}

.manual-history-list .manual-shipment-card .manual-card-main {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 5px;
    overflow-wrap: normal !important;
    word-break: normal;
}

.manual-history-list .manual-shipment-card
.manual-card-main strong,
.manual-history-list .manual-shipment-card
.manual-card-main b {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.4;
}

.manual-history-list .manual-shipment-card
.manual-card-main small {
    display: block;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.45;
}

.manual-history-list .manual-shipment-card
.manual-card-money {
    grid-column: 1;
    min-width: 0;
    text-align: left;
    align-self: center;
}

.manual-history-list .manual-shipment-card
.manual-card-actions {
    grid-column: 2;
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-self: center;
}

.manual-history-list .manual-shipment-card
.manual-card-actions button {
    width: 100%;
    min-height: 40px;
}

@media (max-width: 520px) {
    .manual-history-list .manual-shipment-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .manual-history-list .manual-shipment-card
    .manual-card-main,
    .manual-history-list .manual-shipment-card
    .manual-card-money,
    .manual-history-list .manual-shipment-card
    .manual-card-actions {
        grid-column: 1;
    }

    .manual-history-list .manual-shipment-card
    .manual-card-actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* ========================================
   2. NEW BIZNISOFT PARTNER - LIGHT THEME
   ======================================== */

html[data-theme="light"] .manual-biz-dialog {
    color-scheme: light;
}

html[data-theme="light"] .manual-biz-dialog-card {
    background: #ffffff;
    color: #172033;
    border: 1px solid #d6e0eb;
}

html[data-theme="light"]
.manual-biz-dialog-head h2 {
    color: #101828;
}

html[data-theme="light"]
.manual-biz-dialog-head small {
    color: #245db8 !important;
}

html[data-theme="light"]
.manual-biz-dialog-head p {
    color: #526179;
    opacity: 1;
}

html[data-theme="light"]
.manual-biz-form-grid label {
    color: #26354a !important;
}

html[data-theme="light"]
.manual-biz-form-grid input:not([type="checkbox"]),
html[data-theme="light"]
.manual-biz-form-grid select,
html[data-theme="light"]
.manual-biz-form-grid textarea {
    background: #ffffff !important;
    color: #172033;
    border: 1px solid #cbd7e6 !important;
    color-scheme: light;
}

html[data-theme="light"]
.manual-biz-form-grid input::placeholder,
html[data-theme="light"]
.manual-biz-form-grid textarea::placeholder {
    color: #64748b !important;
}

html[data-theme="light"]
.manual-biz-dialog-x {
    background: #f1f5f9;
    color: #172033;
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    width: 40px;
    height: 40px;
}

/* Keep the required partner type visually distinct. */

html[data-theme="light"]
.manual-biz-type-label--attention {
    color: #92400e;
}

html[data-theme="light"]
.manual-biz-type-select--attention {
    background: #fffbeb !important;
    color: #78350f;
    border-color: #d97706 !important;
}

html[data-theme="light"]
.manual-biz-type-help {
    color: #92400e !important;
}

/* ========================================
   3. LIGHT FORM CONTRAST
   ======================================== */

html[data-theme="light"]
.manual-cod-box .manual-switch,
html[data-theme="light"]
.manual-cod-box .manual-switch span {
    color: #172033;
}

html[data-theme="light"]
.manual-items .manual-totals span {
    background: #eff5fc;
    color: #172033;
    border-color: #d6e0eb;
}

html[data-theme="light"]
.manual-items .manual-totals small {
    color: #526179 !important;
}

html[data-theme="light"]
.manual-items .manual-totals b {
    color: #101828;
}

/* Light checkbox labels, without altering
   checkbox selection or event handling. */

html[data-theme="light"]
.manual-form-card input[type="checkbox"] {
    accent-color: #245db8;
}

/* ========================================
   4. DARK THEME
   ======================================== */

/* Existing dark colors remain untouched.
   Only the shared history-card layout
   improvements above apply to both themes. */

/* ===== DS.13.24: iz manual-shipment.html <style> #2 (biz dialog) ===== */

.manual-biz-customer-actions{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
}

.manual-biz-new-btn{
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:9px 14px;
  cursor:pointer;
  font-weight:700;
}

.manual-biz-dialog{
  width:min(780px,calc(100vw - 28px));
  max-height:calc(100vh - 40px);
  padding:0;
  border:0;
  border-radius:18px;
  background:transparent;
}

.manual-biz-dialog::backdrop{
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(3px);
}

.manual-biz-dialog-card{
  padding:22px;
  border-radius:18px;
  background:var(--card,#17191d);
  color:inherit;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
}

.manual-biz-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}

.manual-biz-dialog-head h2{
  margin:3px 0 4px;
}

.manual-biz-dialog-head p{
  margin:0;
  opacity:.7;
  max-width:560px;
}

.manual-biz-dialog-x{
  border:0;
  background:transparent;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  color:inherit;
}

.manual-biz-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.manual-biz-form-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.manual-biz-form-grid input,
.manual-biz-form-grid select,
.manual-biz-form-grid textarea{
  width:100%;
  box-sizing:border-box;
}

.manual-biz-full{
  grid-column:1/-1;
}

.manual-biz-vat{
  justify-content:center;
  flex-direction:row!important;
  align-items:center;
}

.manual-biz-vat input{
  width:auto;
}

.manual-biz-create-error{
  margin-top:16px;
  padding:12px 14px;
  border-radius:10px;
  background:rgba(190,45,45,.18);
  border:1px solid rgba(220,70,70,.35);
}

.manual-biz-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}

@media(max-width:700px){
  .manual-biz-form-grid{
    grid-template-columns:1fr;
  }

  .manual-biz-full{
    grid-column:auto;
  }

  .manual-biz-dialog-card{
    padding:16px;
  }
}

/* ===== DS.13.25: tamna tema — sive povrsine (#292929, #303030, #333, #3a3a3a, #17191d) prate --wms-* tokene ===== */
html[data-theme="dark"] body.page-manual-shipment .manual-drawer-panel,
html[data-theme="dark"] body.page-manual-shipment .manual-biz-dialog-card,
html[data-theme="dark"] body.page-manual-shipment .manual-success-card{background:var(--wms-surface)!important;border-color:var(--wms-line)!important;color:var(--wms-text)}
html[data-theme="dark"] body.page-manual-shipment .manual-history-list .manual-shipment-card,
html[data-theme="dark"] body.page-manual-shipment .manual-success-summary,
html[data-theme="dark"] body.page-manual-shipment .manual-totals > *,
html[data-theme="dark"] body.page-manual-shipment .product-suggestions,
html[data-theme="dark"] body.page-manual-shipment .aks-postal-suggestions{background:var(--wms-surface-2)!important;border-color:var(--wms-line)!important}
html[data-theme="dark"] body.page-manual-shipment .manual-card-actions button,
html[data-theme="dark"] body.page-manual-shipment .manual-label-link,
html[data-theme="dark"] body.page-manual-shipment .manual-drawer-close,
html[data-theme="dark"] body.page-manual-shipment #refresh,
html[data-theme="dark"] body.page-manual-shipment .manual-biz-new-btn,
html[data-theme="dark"] body.page-manual-shipment #bizCustomerCreateCancel,
html[data-theme="dark"] body.page-manual-shipment #manualSuccessStay{background:var(--wms-surface-3)!important;border:1px solid var(--wms-line-strong)!important;color:var(--wms-text)!important}
html[data-theme="dark"] body.page-manual-shipment input:not([type="checkbox"]),
html[data-theme="dark"] body.page-manual-shipment select,
html[data-theme="dark"] body.page-manual-shipment textarea{border-color:var(--wms-line-strong)!important}
html[data-theme="dark"] body.page-manual-shipment input:not([type="checkbox"]):focus,
html[data-theme="dark"] body.page-manual-shipment select:focus,
html[data-theme="dark"] body.page-manual-shipment textarea:focus{border-color:var(--wms-brand)!important}

/* ===== DS.13.26: tamna tema — polje u fokusu ostaje plavo (bilo #303030) ===== */
html[data-theme="dark"] body.page-manual-shipment input:not([type="checkbox"]):focus,
html[data-theme="dark"] body.page-manual-shipment select:focus,
html[data-theme="dark"] body.page-manual-shipment textarea:focus{background:var(--wms-input)!important}

/* ===== DS.13.27: svetla tema — predlozi (kupac, artikal, mesto, PTT) i sazetak posle slanja vise nisu #292929 ===== */
html[data-theme="light"] body.page-manual-shipment .product-suggestions,
html[data-theme="light"] body.page-manual-shipment .aks-postal-suggestions{background:var(--wms-surface);border-color:var(--wms-line-strong);box-shadow:var(--wms-shadow-lg)}
html[data-theme="light"] body.page-manual-shipment .product-suggestion,
html[data-theme="light"] body.page-manual-shipment .aks-postal-option{color:var(--wms-text)!important}
html[data-theme="light"] body.page-manual-shipment .product-suggestion:hover,
html[data-theme="light"] body.page-manual-shipment .aks-postal-option:hover,
html[data-theme="light"] body.page-manual-shipment .aks-postal-option:focus{background:var(--wms-hover)!important}
html[data-theme="light"] body.page-manual-shipment #productSuggestions .product-suggestion-media{background:var(--wms-surface-3)!important}
html[data-theme="light"] body.page-manual-shipment #productSuggestions .product-suggestion-media-service,
html[data-theme="light"] body.page-manual-shipment #productSuggestions .product-suggestion-fallback{color:var(--wms-brand)!important}
html[data-theme="light"] body.page-manual-shipment .manual-success-summary{background:var(--wms-surface-2);border-color:var(--wms-line);color:var(--wms-text)}
