.orders-page{
  padding:4px;
}

.orders-topbar{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}

.orders-topbar h2{
  margin:0;
  font-size:22px;
}

.orders-topbar p{
  margin:5px 0 0;
  color:#64748b;
  font-size:13px;
}

.order-primary,
.order-secondary{
  min-height:38px;
  padding:8px 14px;
  border-radius:9px;
  cursor:pointer;
  font-weight:700;
}

.order-primary{
  border:0;
  background:#0f172a;
  color:#fff;
}

.order-secondary{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
}

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

.order-kpi{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:15px;
}

.order-kpi span{
  display:block;
  color:#64748b;
  font-size:11px;
}

.order-kpi strong{
  display:block;
  margin-top:5px;
  font-size:21px;
}

.orders-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 220px auto;
  gap:10px;
  margin-bottom:12px;
}

.orders-toolbar input,
.orders-toolbar select{
  min-height:40px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  padding:8px 10px;
  background:#fff;
}

.orders-table-wrap{
  overflow:auto;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
}

.orders-table{
  width:100%;
  min-width:950px;
  border-collapse:collapse;
}

.orders-table th,
.orders-table td{
  padding:11px;
  border-bottom:1px solid #eef2f7;
  text-align:left;
  font-size:12px;
}

.orders-table th{
  background:#f8fafc;
  color:#64748b;
  font-size:11px;
}

.orders-table .num{
  text-align:right;
}

.order-row{
  cursor:pointer;
}

.order-row:hover{
  background:#fafcff;
}

.order-row small{
  display:block;
  color:#94a3b8;
  margin-top:3px;
}

.order-open{
  border:1px solid #cbd5e1;
  border-radius:7px;
  background:#fff;
  padding:6px 9px;
  cursor:pointer;
}

.order-status{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
}

.order-status-draft{
  background:#f1f5f9;
  color:#475569;
}

.order-status-confirmed{
  background:#dbeafe;
  color:#1d4ed8;
}

.order-status-processing{
  background:#fef3c7;
  color:#92400e;
}

.order-status-completed{
  background:#dcfce7;
  color:#166534;
}

.order-status-cancelled{
  background:#fee2e2;
  color:#991b1b;
}

.order-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:25000;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:30px 15px;
  overflow:auto;
  background:rgba(15,23,42,.55);
}

.order-modal{
  width:min(1250px,100%);
  background:#fff;
  border-radius:16px;
  box-shadow:0 25px 80px rgba(15,23,42,.28);
}

.order-modal-head{
  display:flex;
  justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid #e2e8f0;
}

.order-modal-head h3{
  margin:0;
}

.order-modal-head p{
  margin:4px 0 0;
  color:#64748b;
}

.order-modal-close{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  min-width:38px;
  padding:0;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#f1f5f9;
  color:#0f172a;
  font-size:26px;
  font-weight:700;
  cursor:pointer;
}

.order-modal-body{
  padding:20px;
}

.order-form-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:12px;
  margin-bottom:20px;
}

.order-form-grid label,
.order-bottom-grid label{
  display:block;
  font-size:11px;
  color:#64748b;
}

.order-form-grid input,
.order-form-grid select,
.order-bottom-grid input,
.order-bottom-grid textarea{
  width:100%;
  margin-top:5px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:9px;
  background:#fff;
}

.order-bottom-grid textarea{
  min-height:85px;
  resize:vertical;
}

.order-items-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.order-items-header h4{
  margin:0;
}

.order-items-wrap{
  overflow:auto;
  border:1px solid #e2e8f0;
  border-radius:10px;
}

.order-items-table{
  width:100%;
  min-width:950px;
  border-collapse:collapse;
}

.order-items-table th,
.order-items-table td{
  padding:7px;
  border-bottom:1px solid #eef2f7;
}

.order-items-table th{
  background:#f8fafc;
  color:#64748b;
  font-size:10px;
}

.order-items-table input{
  width:100%;
  min-width:80px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  padding:7px;
}

.order-items-table .oi-product-search{
  min-width:280px;
}

.order-items-table .num{
  text-align:right;
  white-space:nowrap;
}

.oi-remove{
  width:30px;
  height:30px;
  border:0;
  border-radius:7px;
  background:#fee2e2;
  color:#991b1b;
  cursor:pointer;
  font-size:18px;
}

.order-bottom-grid{
  display:grid;
  grid-template-columns:1fr 350px;
  gap:20px;
  margin-top:20px;
}

.order-totals{
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:14px;
}

.order-totals > div{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid #eef2f7;
}

.order-grand-total{
  font-size:16px;
  border-bottom:0 !important;
}

.order-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:15px 20px 20px;
}

.order-product-popup,
.order-customer-popup{
  display:none;
  position:fixed;
  z-index:30000;
  max-width:calc(100vw - 16px);
  max-height:340px;
  overflow:auto;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.22);
}

.order-product-popup.open,
.order-customer-popup.open{
  display:block;
}

.order-product-result,
.order-customer-result{
  display:flex;
  justify-content:space-between;
  gap:20px;
  width:100%;
  padding:11px 13px;
  border:0;
  border-bottom:1px solid #e2e8f0;
  background:#fff;
  color:#0f172a;
  text-align:left;
  cursor:pointer;
}

.order-product-result:hover,
.order-customer-result:hover{
  background:#f8fafc;
}

.order-product-result strong,
.order-customer-result strong{
  display:block;
}

.order-product-result small,
.order-customer-result small{
  display:block;
  margin-top:3px;
  color:#64748b;
}

.order-product-result-right{
  text-align:right;
  white-space:nowrap;
}

.order-product-empty,
.order-customer-empty,
.orders-empty,
.orders-loading,
.orders-error{
  padding:25px;
  text-align:center;
  color:#64748b;
}

.orders-error{
  color:#b91c1c;
}

@media(max-width:1050px){
  .order-kpis{
    grid-template-columns:repeat(2,1fr);
  }

  .order-form-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:700px){
  .order-kpis,
  .order-form-grid,
  .order-bottom-grid,
  .orders-toolbar{
    grid-template-columns:1fr;
  }

  .orders-topbar{
    flex-direction:column;
  }
}

.order-open{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:82px !important;
  min-height:34px !important;
  padding:6px 10px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:12px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.order-open:hover{
  background:#f8fafc !important;
  color:#020617 !important;
}


.order-history-section{
  margin:20px;
  padding:16px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
}

.order-history-section h4{
  margin:0 0 14px;
}

.order-history-item{
  display:grid;
  grid-template-columns:14px 1fr;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #eef2f7;
}

.order-history-item:last-child{
  border-bottom:0;
}

.order-history-dot{
  width:9px;
  height:9px;
  margin-top:5px;
  border-radius:50%;
  background:#0f172a;
}

.order-history-item strong{
  display:block;
  font-size:12px;
}

.order-history-item small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:10px;
}

.order-history-change{
  display:inline-block;
  margin-top:6px;
  padding:4px 7px;
  border-radius:7px;
  background:#f1f5f9;
  color:#475569;
  font-size:10px;
}

.order-history-loading,
.order-history-empty{
  padding:12px 0;
  color:#64748b;
  font-size:12px;
}

.order-pdf{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:145px !important;
  color:#0f172a !important;
}


.order-cancel-action,
.order-delete-action{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  padding:8px 14px !important;
  border-radius:9px !important;
  font-size:12px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.order-cancel-action{
  border:1px solid #f59e0b !important;
  background:#fffbeb !important;
  color:#92400e !important;
}

.order-delete-action{
  border:1px solid #fecaca !important;
  background:#fff1f2 !important;
  color:#b91c1c !important;
}

.order-cancel-action:hover{
  background:#fef3c7 !important;
}

.order-delete-action:hover{
  background:#fee2e2 !important;
}


.order-create-project{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  padding:8px 14px !important;
  border:0 !important;
  border-radius:9px !important;
  background:#0f172a !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.order-create-project:hover{
  opacity:.9;
}

.order-create-project:disabled{
  opacity:.55;
  cursor:not-allowed !important;
}


.order-link-project{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  padding:8px 14px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:12px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.order-link-project:hover{
  background:#f8fafc !important;
}

.order-project-link-backdrop{
  position:fixed;
  inset:0;
  z-index:40000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:70px 15px;
  background:rgba(15,23,42,.55);
}

.order-project-link-modal{
  width:min(700px,100%);
  max-height:80vh;
  overflow:auto;
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.3);
}

.order-project-link-head{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:18px 20px;
  border-bottom:1px solid #e2e8f0;
}

.order-project-link-head h3{
  margin:0;
}

.order-project-link-head p{
  margin:5px 0 0;
  color:#64748b;
  font-size:12px;
}

.order-project-link-close{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:10px !important;
  background:#f1f5f9 !important;
  color:#0f172a !important;
  font-size:26px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.order-project-link-body{
  padding:20px;
}

#orderProjectSearch{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  margin-bottom:12px;
}

.order-project-result{
  display:flex !important;
  justify-content:space-between !important;
  gap:20px !important;
  width:100% !important;
  padding:12px !important;
  border:0 !important;
  border-bottom:1px solid #e2e8f0 !important;
  background:#fff !important;
  color:#0f172a !important;
  text-align:left !important;
  cursor:pointer !important;
}

.order-project-result:hover{
  background:#f8fafc !important;
}

.order-project-result strong{
  display:block;
}

.order-project-result small{
  display:block;
  margin-top:4px;
  color:#64748b;
}

.order-project-result-meta{
  text-align:right;
  white-space:nowrap;
}

.order-project-result-meta span{
  display:block;
  color:#64748b;
  font-size:10px;
}

.order-project-hint{
  padding:20px;
  text-align:center;
  color:#64748b;
  font-size:12px;
}


.order-linked-project{
  margin:16px 0;
}

.order-linked-project-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:15px 16px;
  border:1px solid #c7d2fe;
  border-radius:12px;
  background:#f8faff;
}

.order-linked-project-info span{
  display:block;
  margin-bottom:4px;
  color:#64748b;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
}

.order-linked-project-info strong{
  display:block;
  margin-bottom:3px;
  font-size:15px;
}

.order-linked-project-info small{
  display:block;
  margin-top:5px;
  color:#64748b;
}

.order-open-project{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  padding:7px 12px !important;
  border:0 !important;
  border-radius:8px !important;
  background:#0f172a !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:700 !important;
  white-space:nowrap !important;
  cursor:pointer !important;
}

.order-open-project:hover{
  opacity:.9;
}

.order-project-none,
.order-project-loading{
  padding:10px 12px;
  border:1px dashed #cbd5e1;
  border-radius:9px;
  color:#64748b;
  font-size:11px;
}

@media(max-width:650px){
  .order-linked-project-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .order-open-project{
    width:100% !important;
  }
}


/* =====================================================
   ORDERS MOBILE UX V2
   ===================================================== */

@media(max-width:900px){

  #orders,
  #orders *{
    box-sizing:border-box;
  }

  .orders-page{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .orders-topbar{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
  }

  .orders-toolbar{
    display:grid !important;
    grid-template-columns:1fr !important;

    width:100% !important;
    max-width:100% !important;

    gap:8px !important;
  }

  .orders-toolbar input,
  .orders-toolbar select,
  .orders-toolbar button{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;

    min-height:44px !important;
  }

  .order-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .orders-table-wrap{
    width:100% !important;
    max-width:100% !important;

    overflow-x:auto !important;

    -webkit-overflow-scrolling:touch;
  }

  .orders-table{
    width:850px !important;
    min-width:850px !important;
  }


  /* Order modal */

  .order-modal-backdrop{
    padding:0 !important;
    align-items:flex-end !important;
  }

  .order-modal{
    width:100% !important;
    max-width:100% !important;

    max-height:94dvh !important;

    margin:0 !important;

    border-radius:18px 18px 0 0 !important;

    overflow-y:auto !important;
    overflow-x:hidden !important;
  }

  .order-modal-body{
    width:100% !important;
    min-width:0 !important;
  }

  .order-form-grid,
  .order-bottom-grid{
    grid-template-columns:1fr !important;
  }

  .order-items-wrap{
    width:100% !important;
    overflow-x:auto !important;

    -webkit-overflow-scrolling:touch;
  }

  .order-items-table{
    width:900px !important;
    min-width:900px !important;
  }

  .order-modal-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
  }

  .order-modal-actions button{
    flex:1 1 140px !important;
    min-height:44px !important;
  }
}


@media(max-width:600px){

  .order-kpis{
    grid-template-columns:1fr 1fr !important;
  }

  .orders-topbar > button,
  .orders-topbar .order-primary{
    width:100% !important;
  }
}




/* ===== EXTERNAL ORDER READONLY VIEW ===== */

.external-order-modal{
  width:min(1180px,96vw);
}

.external-order-title-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.external-order-title-line h3{
  margin:0;
}

.order-source-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  background:#f2f4f7;
  color:#344054;
  white-space:nowrap;
}

.order-source-woocommerce{
  background:#f4ebff;
  color:#6941c6;
}

.order-source-skroutz{
  background:#fff4ed;
  color:#c4320a;
}

.order-source-manual{
  background:#f2f4f7;
  color:#344054;
}

.order-source-quote{
  background:#eff8ff;
  color:#175cd3;
}

.order-source-pylon{
  background:#ecfdf3;
  color:#027a48;
}

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

.external-order-field{
  border:1px solid #eaecf0;
  border-radius:12px;
  padding:12px;
  background:#fff;
  min-width:0;
}

.external-order-field span{
  display:block;
  margin-bottom:5px;
  color:#667085;
  font-size:12px;
}

.external-order-field strong{
  display:block;
  color:#101828;
  word-break:break-word;
}

.external-order-address-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:18px;
}

.external-order-card{
  border:1px solid #eaecf0;
  border-radius:12px;
  padding:15px;
  background:#fff;
}

.external-order-card h4{
  margin:0 0 10px;
}

.external-address{
  display:grid;
  gap:5px;
  line-height:1.45;
}

.external-address-contact{
  color:#475467;
  margin-top:2px;
}

.external-order-section{
  margin-top:6px;
}

.external-order-items .num{
  text-align:right;
  white-space:nowrap;
}

.external-line-type{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
}

.external-line-type.product{
  background:#eff8ff;
  color:#175cd3;
}

.external-line-type.service{
  background:#f2f4f7;
  color:#475467;
}

.external-order-bottom{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:18px;
  margin-top:18px;
}

.external-order-notes{
  white-space:pre-wrap;
  line-height:1.5;
  color:#344054;
}

.external-order-totals{
  border:1px solid #eaecf0;
  border-radius:12px;
  padding:15px;
  background:#fff;
  align-self:start;
}

.external-order-totals > div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:8px 0;
  border-bottom:1px solid #f2f4f7;
}

.external-order-totals > div:last-child{
  border-bottom:0;
}

.external-order-grand-total{
  margin-top:4px;
  padding-top:12px !important;
  font-size:18px;
}

.external-order-grand-total strong{
  font-size:20px;
}

.external-order-empty{
  color:#667085;
  padding:14px;
}


@media(max-width:900px){

  .external-order-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .external-order-address-grid{
    grid-template-columns:1fr;
  }

  .external-order-bottom{
    grid-template-columns:1fr;
  }

  .external-order-totals{
    width:100%;
  }
}


@media(max-width:600px){

  .external-order-summary{
    grid-template-columns:1fr;
  }

  .external-order-modal{
    width:100%;
  }

  .external-order-title-line{
    align-items:flex-start;
  }

  .external-order-items{
    min-width:720px;
  }
}



/* ===== SKROUTZ ORDER ACCEPT ===== */

.skroutz-order-box{
  margin:18px 0 22px;
  padding:18px;
  border:1px solid #d9e1e8;
  border-radius:14px;
  background:#fff;
}

.skroutz-order-box-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.skroutz-order-box-head h4{
  margin:0 0 5px;
}

.skroutz-order-box-head p{
  margin:0;
  opacity:.72;
}

.skroutz-state-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  background:#eef2f6;
}

.skroutz-state-badge.open{
  background:#fff4d6;
}

.skroutz-accept-grid{
  display:grid;
  grid-template-columns:2fr 2fr 1fr;
  gap:14px;
}

.skroutz-accept-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.skroutz-accept-grid label > span{
  font-size:12px;
  font-weight:700;
  opacity:.72;
}

.skroutz-accept-grid select{
  width:100%;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #ccd5de;
  border-radius:9px;
  background:#fff;
}

.skroutz-order-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}

.skroutz-accept-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.skroutz-order-message{
  margin-top:12px;
  min-height:20px;
  font-size:13px;
}

.skroutz-order-message.success{
  font-weight:700;
}

.skroutz-order-message.error{
  font-weight:700;
}

.skroutz-selected-info{
  padding-top:8px;
  font-size:13px;
}

@media (max-width:800px){

  .skroutz-accept-grid{
    grid-template-columns:1fr;
  }

  .skroutz-order-box-head{
    flex-direction:column;
  }

  .skroutz-order-actions{
    justify-content:stretch;
  }

  .skroutz-order-actions button{
    width:100%;
  }
}


/* ===== SKROUTZ INVOICE / FEES ===== */

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

.skroutz-info-card{
  padding:16px;
  border:1px solid #d9e1e8;
  border-radius:14px;
  background:#fff;
}

.skroutz-info-card h4{
  margin:0 0 12px;
}

.skroutz-info-row{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:7px 0;
  border-bottom:1px solid #eef1f4;
}

.skroutz-info-row:last-child{
  border-bottom:0;
}

.skroutz-info-row span{
  opacity:.7;
  font-size:13px;
}

.skroutz-info-row strong{
  text-align:right;
}

.skroutz-fees-list > div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:7px 0;
}

.skroutz-fees-total{
  margin-top:6px;
  padding-top:10px !important;
  border-top:1px solid #ccd5de;
  font-size:15px;
}

.skroutz-info-note{
  margin:10px 0 0;
  font-size:12px;
  opacity:.65;
}

@media (max-width:800px){

  .skroutz-info-grid{
    grid-template-columns:1fr;
  }

  .skroutz-info-row{
    align-items:flex-start;
  }
}


/* ===== SKROUTZ REJECT UI ===== */

.skroutz-reject-box{
  margin-top:16px;
}

.skroutz-reject-items{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}

.skroutz-reject-row{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) minmax(220px,1fr) minmax(130px,.45fr);
  gap:14px;
  align-items:end;
  padding:14px;
  border:1px solid #e4e8ed;
  border-radius:12px;
}

.skroutz-reject-product{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.skroutz-reject-product span{
  font-size:12px;
  opacity:.7;
}

.skroutz-reject-row label{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.skroutz-reject-row label > span{
  font-size:12px;
  opacity:.75;
}

.skroutz-reject-row select,
.skroutz-reject-row input{
  width:100%;
  min-height:40px;
}

.skroutz-reject-qty-wrap[hidden]{
  display:none;
}

.skroutz-reject-btn{
  min-height:42px;
  padding:0 18px;
  border-radius:10px;
  border:1px solid currentColor;
  cursor:pointer;
  font-weight:700;
}

.skroutz-reject-btn:disabled{
  cursor:wait;
  opacity:.6;
}

@media (max-width:900px){

  .skroutz-reject-row{
    grid-template-columns:1fr;
    align-items:stretch;
  }
}


/* ===== SKROUTZ SHIPPING UI ===== */

.skroutz-shipping-card{
  margin:18px 0;
}

.skroutz-voucher-action{
  margin-top:14px;
  display:flex;
  justify-content:flex-end;
}

.skroutz-voucher-action a{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
}

/* =========================================================
   Orders Date Sorting
   ========================================================= */

.orders-sort{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  font:inherit;
  font-weight:700;
  color:inherit;
  cursor:pointer;
  white-space:nowrap;
}

.orders-sort:hover{
  text-decoration:underline;
}

.orders-sort:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
  border-radius:3px;
}


/* B2B Platform order source */
.order-source-b2b{
    font-weight:700;
    letter-spacing:.02em;
}

/* Align delete button inside order item row */
.order-item-remove,
.order-line-remove,
.remove-order-item,
.remove-line-btn {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 0;
}

/* Fix alignment of remove button in order item rows */
.order-items-table td:last-child{
    vertical-align: middle;
}

.oi-remove{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
}

.order-item-row td:last-child{
    vertical-align: middle;
}

/* B2B order information */
.order-b2b-info{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    margin:4px 0 28px;
    padding:18px;
    border:1px solid var(--border-color,#d9e1ec);
    border-radius:14px;
}

.order-b2b-info-item{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-width:0;
}

.order-b2b-info-item span{
    font-size:13px;
    opacity:.7;
}

.order-b2b-info-item strong{
    font-size:15px;
    word-break:break-word;
}

@media (max-width:800px){
    .order-b2b-info{
        grid-template-columns:1fr;
    }
}

.orders-quick-filters{
    display:flex;
    gap:10px;
    margin:14px 0;
    flex-wrap:wrap;
}

.order-b2b-number{
    display:block;
    margin-top:4px;
    font-weight:600;
}

@media(max-width:700px){
    .orders-quick-filters{
        width:100%;
    }

    .orders-quick-filters button{
        flex:1;
    }
}


.b2b-order-status-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    margin-right:auto;
}

.b2b-order-status-actions button{
    white-space:nowrap;
}

@media(max-width:700px){
    .b2b-order-status-actions{
        width:100%;
    }

    .b2b-order-status-actions button{
        width:100%;
    }
}


/* ERGON_READY_STATUS_CSS_V1 */
.order-status-ready{
  background:#e0f2fe;
  color:#0369a1;
}
