*{box-sizing:border-box}
:root{--bg:#f5f5f3;--card:#fff;--line:#deded9;--text:#111;--muted:#6e6e68;--danger:#b42318;--radius:16px}
html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg)}
button,input,textarea,select{font:inherit}button{touch-action:manipulation}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.error{color:var(--danger);margin-top:14px}.brand,.side-brand{letter-spacing:.28em;font-weight:800}.money{white-space:nowrap}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:#fff}.login-card{width:min(520px,100%);border:1px solid var(--line);border-radius:20px;padding:42px}.login-card h1{font-size:44px;margin:22px 0 8px}
label{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-weight:700}input,textarea,select{width:100%;border:1px solid #cfcfca;background:#fff;border-radius:10px;padding:12px 14px;min-height:48px;color:#111}textarea{resize:vertical}.btn{border:1px solid #111;background:#fff;color:#111;border-radius:10px;padding:11px 16px;min-height:44px;cursor:pointer;font-weight:800}.btn.primary,.btn.dark,.owner-btn{background:#111;color:#fff;border-color:#111}.btn.ghost{background:#fff}.btn:hover{filter:brightness(.97)}.wide{width:100%;margin-top:16px}.danger-btn{background:#fff5f4;color:var(--danger);border-color:#f0b4af}.input-button{height:48px}
.app{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#111;color:#fff;padding:28px 14px;z-index:30}.side-brand{font-size:22px;margin:0 12px 28px}.nav-btn{display:block;width:100%;text-align:left;border:0;background:transparent;color:#bbb;padding:14px 12px;border-radius:10px;cursor:pointer;font-weight:700}.nav-btn.active,.nav-btn:hover{background:#272727;color:#fff}.main{margin-left:220px;width:calc(100% - 220px);padding:18px 24px 56px}.topbar{position:sticky;top:0;z-index:10;background:rgba(245,245,243,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0 16px;margin-bottom:8px}.icon-btn{border:0;background:transparent;font-size:24px;cursor:pointer;padding:8px}.topbar #menuBtn{display:none}.page{display:none}.active-page{display:block}.form-panel,.page>.panel,.page>.cards{max-width:1180px;margin-left:auto;margin-right:auto}
.cards{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:12px;margin-bottom:16px}.reward-cards{grid-template-columns:repeat(3,minmax(160px,1fr))}.card,.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}.card{padding:18px}.card-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.09em}.card-value{font-size:24px;font-weight:800;margin-top:8px;overflow-wrap:anywhere}.panel{padding:20px;margin-bottom:16px}.panel-head,.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.panel-head h2,.section-title h3,.subpanel h3{margin:0}.panel-actions,.search-row,.row-actions,.upload-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.search-row{min-width:min(500px,55vw)}.search-row input{flex:1 1 240px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:720px}th,td{text-align:left;border-bottom:1px solid #ecece8;padding:12px 10px;vertical-align:top}th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.badge{display:inline-block;border:1px solid #cfcfca;padding:4px 8px;border-radius:999px;font-size:11px;background:#fff}.clickable{cursor:pointer}.clickable:hover{background:#fafafa}.grid{display:grid;gap:14px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.item-row{display:grid;grid-template-columns:minmax(220px,2fr) 90px minmax(130px,1fr) auto;gap:10px;align-items:end;border-top:1px solid #ecece8;padding:12px 0}.item-row label{margin:0}.form-msg{margin:10px 0;min-height:18px}.form-msg.ok{color:#08752b}.form-msg.bad{color:var(--danger)}
.quick-paste-box{border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:18px;background:#fafafa}.quick-paste-box textarea{margin-bottom:8px}
.detail-dialog{width:min(1040px,96vw);max-height:94vh;border:0;border-radius:18px;padding:0;box-shadow:0 24px 90px #0004;background:#fff}.detail-dialog::backdrop{background:#0008}.dialog-head{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);padding:16px 20px;display:flex;justify-content:space-between;align-items:center;z-index:5}.dialog-head h2{margin:5px 0 0}.small-brand{font-size:11px}.detail-dialog #detailBody{padding:18px 20px 28px}.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.subpanel{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.stack{display:grid;gap:10px}.list-card{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}.followup-list{display:grid;gap:10px}.followup{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;display:flex;justify-content:space-between;gap:16px}.due{font-size:12px;color:var(--muted)}.follow-note{margin-top:6px}.followup-order-list{margin-top:14px}
.owner-finance{border:2px solid #111;border-radius:14px;padding:16px;background:#fafafa}.owner-finance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.owner-badge{background:#111;color:#fff}.finance-items{display:grid;gap:10px;margin-bottom:14px}.finance-item-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:16px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.finance-summary{display:grid;gap:8px;margin:16px 0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px}.finance-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.finance-total{border-top:1px solid var(--line);padding-top:10px;margin-top:4px}.finance-profit{font-size:18px;font-weight:800}
.tracking-stage{border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:14px;background:#fcfcfb}.tracking-stage-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.tracking-number-badge{width:30px;height:30px;border-radius:50%;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 auto}.courier-cost-field{max-width:320px;margin-top:10px}.danger-zone{border-color:#efc2be;background:#fffafa;padding:16px;border-radius:14px}.trash-card{display:flex;align-items:center;justify-content:space-between;gap:12px}
.attachment-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 14px}.attachment-card{border:1px solid var(--line);border-radius:14px;padding:10px;display:grid;gap:10px;background:#fff}.attachment-preview{display:block;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#f0f0ed}.attachment-preview img{display:block;width:100%;height:100%;object-fit:cover}.attachment-pdf{display:grid;place-items:center;aspect-ratio:4/3;border-radius:10px;background:#f4f4f1;text-decoration:none}.pdf-icon{font-weight:900;font-size:28px;color:#111}.attachment-meta strong{display:block;overflow-wrap:anywhere}.upload-row input{flex:1 1 320px}.upload-controls{margin-top:10px}.mobile-sticky-actions{display:none}

@media(max-width:980px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.reward-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:1fr}.sidebar{transform:translateX(-100%);transition:.2s;width:min(82vw,300px)}.sidebar.open{transform:none}.main{margin-left:0;width:100%;padding:14px}.topbar #menuBtn{display:block}.search-row{min-width:0;width:100%}.panel-head{align-items:flex-start;flex-direction:column}.panel-actions{width:100%}.panel-actions .search-row{flex:1}.login-card{padding:28px}}

@media(max-width:720px){
  body{background:#fff}.main{padding:8px 8px 88px}.topbar{padding:8px 2px 10px}.topbar .btn{min-height:40px;padding:8px 11px}.panel,.card{border-radius:14px}.panel{padding:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.reward-cards{grid-template-columns:1fr}.card{padding:14px}.card-value{font-size:19px}.grid.two,.detail-grid{grid-template-columns:1fr}.item-row{grid-template-columns:1fr 1fr}.item-row label:first-child{grid-column:1/-1}.item-row .remove-item,.item-row .e-remove{grid-column:1/-1}.section-title{align-items:flex-start}.section-title .btn{flex:0 0 auto}.followup{flex-direction:column}.followup .row-actions .btn{flex:1}.block-mobile{width:100%;margin-top:10px}.owner-finance-head,.finance-item-row{grid-template-columns:1fr;flex-direction:column}.finance-item-row{display:grid}.attachment-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.upload-row{display:grid;grid-template-columns:1fr}.upload-row .btn{width:100%}.trash-card{align-items:flex-start;flex-direction:column}.trash-card .btn{width:100%}
  .detail-dialog{width:100vw;height:100dvh;max-height:none;margin:0;border-radius:0}.detail-dialog #detailBody{padding:12px 12px 92px}.dialog-head{padding:12px 14px}.mobile-sticky-actions{position:sticky;bottom:0;z-index:6;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;border-top:1px solid var(--line);padding:10px 0 calc(10px + env(safe-area-inset-bottom));margin-top:20px}.courier-cost-field{max-width:none}
  .table-wrap{overflow:visible}table{display:block;min-width:0;width:100%}thead{display:none}tbody{display:grid;gap:10px}tr{display:block;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#fff}td{position:relative;display:block;border:0;padding:5px 0 5px 42%;min-height:28px;overflow-wrap:anywhere}td::before{position:absolute;left:0;top:5px;width:38%;font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.05em}
  #recentOrders td:nth-child(1)::before{content:'Order'}#recentOrders td:nth-child(2)::before{content:'Customer'}#recentOrders td:nth-child(3)::before{content:'Total'}#recentOrders td:nth-child(4)::before{content:'Paid'}#recentOrders td:nth-child(5)::before{content:'Balance'}#recentOrders td:nth-child(6)::before{content:'Status'}
  #orderRows td:nth-child(1)::before{content:'Order'}#orderRows td:nth-child(2)::before{content:'Customer'}#orderRows td:nth-child(3)::before{content:'Total'}#orderRows td:nth-child(4)::before{content:'Paid'}#orderRows td:nth-child(5)::before{content:'Balance'}#orderRows td:nth-child(6)::before{content:'Payment'}#orderRows td:nth-child(7)::before{content:'Shipping'}
  #customerRows td:nth-child(1)::before{content:'Name'}#customerRows td:nth-child(2)::before{content:'Phone'}#customerRows td:nth-child(3)::before{content:'Orders'}#customerRows td:nth-child(4)::before{content:'Sales'}#customerRows td:nth-child(5)::before{content:'Reward'}
  #rewardCustomerRows td:nth-child(1)::before{content:'Customer'}#rewardCustomerRows td:nth-child(2)::before{content:'Purchases'}#rewardCustomerRows td:nth-child(3)::before{content:'Earned'}#rewardCustomerRows td:nth-child(4)::before{content:'Balance'}#rewardCustomerRows td:nth-child(5)::before{content:'Transactions'}
  #cashoutRows td:nth-child(1)::before{content:'Customer'}#cashoutRows td:nth-child(2)::before{content:'Phone'}#cashoutRows td:nth-child(3)::before{content:'Amount'}#cashoutRows td:nth-child(4)::before{content:'Status'}#cashoutRows td:nth-child(5)::before{content:'Date'}
  .payment-table td:nth-child(1)::before{content:'Date'}.payment-table td:nth-child(2)::before{content:'Kind'}.payment-table td:nth-child(3)::before{content:'Amount'}.payment-table td:nth-child(4)::before{content:'Status'}
  .reward-tx-table td:nth-child(1)::before{content:'Date'}.reward-tx-table td:nth-child(2)::before{content:'Type'}.reward-tx-table td:nth-child(3)::before{content:'Amount'}.reward-tx-table td:nth-child(4)::before{content:'Purchase'}.reward-tx-table td:nth-child(5)::before{content:'Reference'}
  input,textarea,select{font-size:16px}.login-wrap{padding:14px}.login-card{border:0;padding:12px}.login-card h1{font-size:36px}.search-row{display:grid;grid-template-columns:1fr auto}.panel-actions{display:grid;grid-template-columns:1fr}.panel-actions #trashOrdersBtn{width:100%}
}

@media(max-width:430px){.cards{grid-template-columns:1fr 1fr}.attachment-gallery{grid-template-columns:1fr}.card-value{font-size:18px}.panel{padding:12px}.main{padding:6px 6px 88px}.quick-paste-box{padding:12px}.row-actions{display:grid;grid-template-columns:1fr}.row-actions .btn,.row-actions input{width:100%}}

/* LOFFA V1.1.4 CLEAN PORTAL */
:root{
  --portal-bg:#f4f5f6;
  --portal-card:#ffffff;
  --portal-ink:#232426;
  --portal-muted:#7a7e84;
  --portal-line:#e4e7ea;
  --portal-black:#202020;
  --portal-blue:#2388f5;
  --portal-blue-soft:#eaf6ff;
  --portal-mint:#eaf8ef;
  --portal-peach:#fff3e7;
  --portal-pink:#fff0f1;
  --portal-lav:#f2efff;
  --portal-yellow:#fff5d9;
  --portal-red:#d44c55;
  --portal-green:#157c4b;
}

html{background:var(--portal-bg)}

body{
  margin:0;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.95) 0,rgba(255,255,255,0) 34%),
    linear-gradient(180deg,#f7f8f9 0%,#f3f4f5 100%);
  color:var(--portal-ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

button,input,textarea,select{font-family:inherit}
h1,h2,h3,strong,.card-value{letter-spacing:-.02em}
.muted{color:var(--portal-muted)}
.small{font-size:11px}

/* DESKTOP TOP PORTAL NAV */
.app{display:block;min-height:100vh}

.sidebar{
  position:sticky;
  inset:auto;
  top:0;
  width:100%;
  min-height:64px;
  height:auto;
  padding:10px 170px 10px 28px;
  display:flex;
  align-items:center;
  gap:4px;
  background:var(--portal-black);
  color:#fff;
  z-index:50;
  box-shadow:0 1px 0 rgba(255,255,255,.05);
}

.side-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 20px 0 0;
  min-width:max-content;
  color:#fff;
  font-size:13px;
  letter-spacing:.03em;
  font-weight:800;
}

.portal-mark{
  width:36px;
  height:36px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#111;
  font-size:20px;
  font-weight:800;
  letter-spacing:0;
}

.nav-btn{
  width:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 11px;
  margin:0;
  border-radius:999px;
  color:#bfc1c4;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  white-space:nowrap;
}

.nav-btn.active,.nav-btn:hover{
  background:#343434;
  color:#fff;
}

.main{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding:26px 24px 52px;
}

.topbar{
  position:fixed;
  top:10px;
  right:24px;
  z-index:60;
  width:auto;
  margin:0;
  padding:0;
  background:transparent;
}

.topbar > div,.topbar #menuBtn{display:none}

.topbar #logoutBtn{
  min-height:42px;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid #444;
  background:#242424;
  color:#fff;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* SURFACES */
.panel,.card,.login-card{
  background:rgba(255,255,255,.97);
  border:1px solid var(--portal-line);
  box-shadow:0 8px 30px rgba(31,35,40,.035);
}

.panel{
  padding:18px;
  margin-bottom:14px;
  border-radius:22px;
}

.form-panel{max-width:960px}

.panel-head,.section-title{
  gap:12px;
  margin-bottom:12px;
}

.panel-head h2{
  margin:0;
  font-size:25px;
  line-height:1.05;
}

.panel-head p{
  margin:5px 0 0;
  font-size:12px;
}

.section-title h3,.subpanel h3{
  margin:0;
  font-size:15px;
}

/* SUMMARY */
.cards{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}

.card{
  position:relative;
  overflow:hidden;
  min-height:112px;
  padding:18px 20px;
  border-radius:22px;
}

.card::after{
  content:"";
  position:absolute;
  right:-24px;
  bottom:-38px;
  width:118px;
  height:118px;
  border-radius:50%;
  background:rgba(255,255,255,.48);
}

.card:nth-child(1){background:var(--portal-peach)}
.card:nth-child(2){background:var(--portal-blue-soft)}
.card:nth-child(3){background:var(--portal-mint)}
.card:nth-child(4){background:var(--portal-pink)}
.card:nth-child(5){background:var(--portal-lav)}

.card-label{
  position:relative;
  z-index:1;
  color:#75797e;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.card-value{
  position:relative;
  z-index:1;
  margin-top:10px;
  font-size:28px;
  line-height:1;
  font-weight:800;
}

/* FORM */
label,.form-panel label{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:10px 0;
  color:#2c2d2f;
  font-size:10px;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}

input,textarea,select{
  width:100%;
  min-height:46px;
  border:1px solid #d9dde1;
  border-radius:14px;
  background:#fff;
  color:#252628;
  padding:10px 13px;
  font-size:14px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
  box-shadow:0 1px 0 rgba(0,0,0,.015);
}

textarea{min-height:88px}

input:focus,textarea:focus,select:focus{
  outline:none;
  border-color:#8ec8ff;
  box-shadow:0 0 0 4px rgba(35,136,245,.10);
}

.grid,.grid.two,.grid.three{gap:12px}
.grid.two{grid-template-columns:1fr 1fr}
.grid.three{grid-template-columns:repeat(3,1fr)}

.quick-paste-box{
  margin-bottom:14px;
  padding:14px;
  border:1px solid #cfe7fb;
  border-radius:18px;
  background:linear-gradient(180deg,#f4faff 0%,#eaf6ff 100%);
}

.quick-paste-box textarea{
  min-height:74px;
  margin-bottom:8px;
}

.quick-paste-box .btn.dark{
  background:linear-gradient(180deg,#38a0ff,#1883ef);
  border-color:#1883ef;
  color:#fff;
}

.item-row{
  grid-template-columns:minmax(220px,2fr) 80px minmax(120px,1fr) auto;
  gap:10px;
  padding:9px 0;
  border-top:1px solid #eceef0;
}

.btn{
  min-height:42px;
  padding:9px 15px;
  border-radius:13px;
  border:1px solid #d7dade;
  background:#fff;
  color:#252628;
  font-size:11px;
  font-weight:850;
  letter-spacing:.035em;
}

.btn.primary,.btn.dark,.owner-btn{
  background:#111;
  border-color:#111;
  color:#fff;
}

.btn.ghost{background:#fff}
.wide{margin-top:12px}
.search-row{gap:8px}
.search-row input{min-height:42px}

.badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid #e1e3e5;
  background:#f0f1f2;
  color:#5f6267;
  font-size:10px;
  font-weight:800;
}

.badge-success{
  background:#e5f7ec;
  color:var(--portal-green);
  border-color:#ccebd8;
}

.badge-info{
  background:#e8f5ff;
  color:#176da8;
  border-color:#cde8fb;
}

.badge-warn{
  background:#fff1c9;
  color:#8b6500;
  border-color:#f3dfaa;
}

.badge-danger{
  background:#ffe8ea;
  color:#b8333c;
  border-color:#f6cdd0;
}

/* TABLE */
.table-wrap{overflow:auto}

table{
  width:100%;
  min-width:720px;
  border-collapse:separate;
  border-spacing:0;
}

th{
  padding:10px;
  color:#787c82;
  font-size:9px;
  font-weight:850;
  letter-spacing:.10em;
  text-transform:uppercase;
  border-bottom:1px solid #eceef0;
}

td{
  padding:12px 10px;
  border-bottom:1px solid #eceef0;
  font-size:13px;
  vertical-align:middle;
}

/* DETAIL */
.detail-dialog{
  width:min(1240px,96vw);
  max-height:92vh;
  padding:0;
  border:0;
  border-radius:28px;
  background:#f7f8f9;
  box-shadow:0 30px 110px rgba(0,0,0,.35);
}

.detail-dialog::backdrop{
  background:rgba(24,27,30,.72);
  backdrop-filter:blur(5px);
}

.dialog-head{
  position:sticky;
  top:0;
  z-index:10;
  min-height:74px;
  padding:16px 22px;
  border-bottom:1px solid #e6e8eb;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
}

.dialog-head h2{
  margin:5px 0 0;
  font-size:25px;
}

.small-brand{
  color:#7a7e84;
  font-size:9px;
  letter-spacing:.18em;
}

.dialog-head .icon-btn{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid #e1e4e7;
  background:#fff;
  color:#252628;
  font-size:19px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
}

.detail-dialog #detailBody{
  padding:16px 18px 92px;
}

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

.detail-grid .card{
  min-height:92px;
  padding:14px 16px;
  border-radius:18px;
}

.detail-grid .card-value{font-size:21px}

.subpanel{
  margin-top:10px;
  padding:13px;
  border:1px solid #e5e8ea;
  border-radius:18px;
  background:#fff;
}

.subpanel:has(#productUpload),.subpanel:has(#uploadProductBtn){
  background:#f3f9ff;
  border-color:#d8eafa;
}

.subpanel:has(#receiptUpload),.subpanel:has(#uploadReceiptBtn){
  background:#f6f4ff;
  border-color:#e1dcf5;
}

.subpanel:has(#fuReason),.subpanel:has(#addFollowup){
  background:#f1faf5;
  border-color:#d6ecdf;
}

.owner-finance{
  background:#fff9ed;
  border:1px solid #efdcb5;
}

.tracking-stage{
  padding:12px;
  margin-bottom:9px;
  border:1px solid #e5e8eb;
  border-radius:15px;
  background:#fbfcfd;
}

.tracking-number-badge{background:#137db9}

.finance-item-row,.finance-summary,.list-card,.followup,.attachment-card{
  border:1px solid #e5e8eb;
  border-radius:14px;
  background:#fff;
}

.finance-item-row,.finance-summary{padding:10px}
.list-card,.followup{padding:10px 12px}

.attachment-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:10px 0;
}

.attachment-card{
  overflow:hidden;
  padding:8px;
}

.attachment-preview img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:11px;
}

.attachment-pdf{
  min-height:120px;
  border-radius:11px;
  background:#f1f2f3;
}

.danger-zone{
  background:#fff4f4;
  border-color:#f2cfd2;
}

.danger-btn{
  background:#fff;
  color:#c5313c;
  border-color:#efb9bd;
}

.mobile-sticky-actions{
  position:sticky;
  bottom:-1px;
  z-index:15;
  display:flex;
  gap:8px;
  margin:14px -18px -92px;
  padding:12px 18px 14px;
  border-top:1px solid #e4e7ea;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
}

.mobile-sticky-actions .btn{flex:1}

/* LOGIN */
.login-wrap{
  background:
    radial-gradient(circle at 20% 10%,#ffffff 0,rgba(255,255,255,0) 30%),
    linear-gradient(145deg,#f8f9fa,#eef0f2);
}

.login-card{
  width:min(480px,100%);
  padding:38px;
  border-radius:24px;
}

.login-card h1{
  margin:20px 0 6px;
  font-size:38px;
}

/* MOBILE */
@media(max-width:760px){
  body{background:#f5f6f7}

  .app{display:block}

  .sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:278px;
    min-height:100vh;
    padding:22px 14px;
    display:block;
    transform:translateX(-102%);
    transition:transform .2s ease;
    overflow:auto;
    z-index:80;
  }

  .sidebar.open{transform:none}

  .side-brand{
    margin:0 8px 22px;
    font-size:13px;
  }

  .portal-mark{
    width:34px;
    height:34px;
  }

  .nav-btn{
    display:block;
    width:100%;
    padding:12px 13px;
    margin:3px 0;
    border-radius:11px;
    text-align:left;
    font-size:12px;
  }

  .main{
    width:100%;
    margin:0;
    padding:7px 7px calc(78px + env(safe-area-inset-bottom));
  }

  .topbar{
    position:sticky;
    top:6px;
    right:auto;
    z-index:45;
    width:100%;
    min-height:56px;
    margin:0 0 7px;
    padding:7px 8px;
    display:grid;
    grid-template-columns:40px 1fr auto;
    align-items:center;
    gap:7px;
    border:1px solid #e5e8ea;
    border-radius:16px;
    background:rgba(255,255,255,.94);
    box-shadow:0 7px 24px rgba(31,35,40,.055);
    backdrop-filter:blur(14px);
  }

  .topbar > div{display:block;min-width:0}

  .topbar #menuBtn{
    display:block;
    width:38px;
    height:38px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--portal-blue);
    font-size:22px;
  }

  .topbar #pageTitle{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:17px;
    line-height:1.05;
  }

  #userLabel{
    margin-top:3px;
    font-size:10px;
  }

  .topbar #logoutBtn{
    min-height:37px;
    padding:7px 10px;
    border-radius:11px;
    border-color:#d9dde1;
    background:#fff;
    color:#222;
    font-size:10px;
    letter-spacing:.02em;
  }

  .panel{
    padding:12px;
    margin-bottom:8px;
    border-radius:18px;
  }

  .panel-head{
    align-items:center;
    margin-bottom:9px;
  }

  .panel-head h2{font-size:21px}
  .panel-head p{font-size:11px}

  .cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-bottom:9px;
  }

  .card{
    min-height:76px;
    padding:11px 12px;
    border-radius:16px;
  }

  .card::after{
    width:78px;
    height:78px;
    right:-24px;
    bottom:-28px;
  }

  .card-label{font-size:8px}

  .card-value{
    margin-top:7px;
    font-size:18px;
  }

  .reward-cards{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .reward-cards .card{
    min-height:70px;
    padding:9px 9px 9px 11px;
  }

  .reward-cards .card-label{font-size:7px}
  .reward-cards .card-value{font-size:14px}

  label,.form-panel label{
    gap:4px;
    margin:7px 0;
    font-size:9px;
    letter-spacing:.10em;
  }

  input,textarea,select{
    min-height:43px;
    padding:9px 11px;
    border-radius:12px;
    font-size:16px;
  }

  textarea{min-height:74px}

  .grid.two{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }

  .grid.three{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }

  .grid.three > :last-child{grid-column:1/-1}

  .quick-paste-box{
    padding:10px;
    margin-bottom:8px;
    border-radius:15px;
  }

  .quick-paste-box .section-title{margin-bottom:5px}

  .quick-paste-box textarea{
    min-height:68px;
    margin-bottom:7px;
  }

  .btn{
    min-height:39px;
    padding:8px 11px;
    border-radius:11px;
    font-size:10px;
  }

  .wide{margin-top:8px}

  .section-title{
    margin:8px 0 5px;
  }

  .section-title h3,.subpanel h3{font-size:14px}

  .item-row{
    grid-template-columns:1fr 76px 1fr;
    gap:6px;
    padding:6px 0;
  }

  .item-row label:first-child{grid-column:1/-1}

  .item-row .remove-item,.item-row .e-remove{
    grid-column:1/-1;
    min-height:34px;
  }

  .search-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:6px;
    width:100%;
    min-width:0;
  }

  .search-row .btn{min-width:70px}

  .panel-head{
    flex-direction:column;
    align-items:stretch;
  }

  .table-wrap{overflow:visible}

  table{min-width:0}

  thead{display:none}

  tbody{
    display:grid;
    gap:7px;
  }

  tr{
    display:block;
    padding:8px 10px;
    border:1px solid #e5e8eb;
    border-radius:14px;
    background:#fff;
    box-shadow:0 4px 14px rgba(31,35,40,.025);
  }

  td{
    position:relative;
    display:block;
    min-height:22px;
    padding:3px 0 3px 35%;
    border:0;
    font-size:12.5px;
    line-height:1.25;
  }

  td::before{
    content:attr(data-label);
    position:absolute;
    left:0;
    top:3px;
    width:31%;
    color:#73777d;
    font-size:8px;
    font-weight:850;
    letter-spacing:.07em;
    text-transform:uppercase;
  }

  td strong{font-size:13px}

  .detail-dialog{
    width:100vw;
    height:100dvh;
    max-width:none;
    max-height:none;
    margin:0;
    border-radius:0;
    background:#f5f6f7;
  }

  .dialog-head{
    min-height:62px;
    padding:9px 11px;
  }

  .dialog-head h2{font-size:20px}

  .dialog-head .icon-btn{
    width:38px;
    height:38px;
    font-size:17px;
  }

  .detail-dialog #detailBody{
    padding:8px 7px 84px;
  }

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

  .detail-grid .card{
    min-height:68px;
    padding:10px 11px;
  }

  .detail-grid .card-value{font-size:16px}

  .subpanel{
    margin-top:7px;
    padding:10px;
    border-radius:15px;
  }

  .tracking-stage{
    padding:9px;
    border-radius:13px;
  }

  .finance-item-row,.finance-summary,.list-card,.followup{
    padding:8px 9px;
    border-radius:12px;
  }

  .attachment-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .attachment-card{padding:7px}

  .mobile-sticky-actions{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    margin:0;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.95);
  }

  .row-actions{gap:6px}
  .followup{gap:8px}

  .login-wrap{padding:16px}

  .login-card{
    padding:24px;
    border-radius:20px;
  }

  .login-card h1{font-size:31px}
}

@media(max-width:420px){
  .main{
    padding-left:6px;
    padding-right:6px;
  }

  .panel{padding:10px}

  .grid.two,.grid.three{gap:6px}

  .reward-cards .card-value{font-size:13px}

  .topbar{grid-template-columns:38px 1fr auto}
}

/* LOFFA V1.1.5 WORDPRESS PARITY */
body{font-size:14px;color:#242629}

.eyebrow,.wp-mini-label{
  color:#767b82;
  font-size:9px;
  font-weight:850;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.panel-head h2{
  font-size:28px;
  font-weight:850;
  letter-spacing:-.035em;
}

.card-label{font-size:9px}
.card-value{font-size:25px}

.order-board-panel{
  padding:22px;
  border-radius:24px;
  background:#fff;
}

.board-head{
  align-items:center;
  margin-bottom:14px;
}

.board-tools{
  display:grid;
  grid-template-columns:minmax(300px,520px) auto;
  gap:8px;
  align-items:center;
}

.board-tools input{
  min-height:48px;
  border-radius:15px;
  font-size:14px;
}

.order-board-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  padding:6px;
  margin-bottom:16px;
  border:1px solid #d9dde0;
  border-radius:18px;
  background:#f0f1f2;
}

.order-board-tab{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 16px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:#686b70;
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  cursor:pointer;
}

.order-board-tab.active{
  background:#111;
  color:#fff;
}

.tab-count{
  min-width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#dedfe1;
  color:#676a6f;
  font-size:11px;
  letter-spacing:0;
}

.order-board-tab.active .tab-count{
  background:#3e3e3e;
  color:#fff;
}

.wp-order-list{
  display:grid;
  gap:12px;
}

.wp-order-card{
  padding:14px;
  border:1px solid #e2e5e7;
  border-radius:22px;
  background:#fff;
  box-shadow:0 5px 18px rgba(32,35,38,.025);
}

.wp-order-card.is-completed{
  border-color:#bce7cc;
  background:linear-gradient(180deg,#edf9f2 0%,#e9f8ef 100%);
}

.wp-order-card-main{
  display:grid;
  grid-template-columns:minmax(210px,1.25fr) minmax(150px,.9fr) 104px minmax(155px,.8fr) auto;
  gap:18px;
  align-items:center;
}

.wp-customer-block{
  display:grid;
  grid-template-columns:50px 1fr;
  gap:12px;
  align-items:start;
}

.wp-avatar{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#101010;
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.wp-customer-text,.wp-item-block,.wp-money-block{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.wp-customer-text strong,.wp-item-block strong,.wp-money-block strong{
  font-size:15px;
  line-height:1.15;
}

.wp-customer-text span,.wp-item-block span,.wp-money-block span{
  color:#7c8085;
  font-size:12px;
}

.wp-customer-text b{
  margin-top:2px;
  color:#0e7a49;
  font-size:11px;
}

.wp-money-block b{
  color:#9a6400;
  font-size:12px;
}

.wp-order-thumb{
  width:92px;
  height:92px;
  overflow:hidden;
  border-radius:16px;
  background:#f0f1f2;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.wp-order-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.wp-order-thumb.no-image{
  display:grid;
  place-items:center;
  background:#eceef0;
  color:#868a90;
}

.wp-order-thumb.no-image span{
  font-size:22px;
  font-weight:850;
}

.wp-badge-block{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:flex-end;
}

.wp-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:5px 11px;
  border-radius:999px;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}

.status-green{background:#e1f6e9;color:#14784a}
.status-yellow{background:#fff1c7;color:#8d6500}
.status-red{background:#ffe5e7;color:#b73b45}
.status-neutral{background:#ececed;color:#616367}
.status-soft{background:#f4f4f4;color:#73767a}

.wp-detail-btn{
  width:100%;
  min-height:48px;
  margin-top:12px;
  padding:0 14px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:center;
  border:1px solid rgba(21,126,76,.18);
  border-radius:15px;
  background:rgba(255,255,255,.66);
  color:#116c42;
  text-align:left;
  cursor:pointer;
}

.wp-detail-btn span{
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}

.wp-detail-btn small{
  color:#7f8589;
  font-size:9px;
  font-weight:750;
  letter-spacing:.08em;
}

.wp-detail-btn b{font-size:22px}

.board-empty{
  padding:34px 18px;
  color:#7b8085;
  text-align:center;
  border:1px dashed #d9dde0;
  border-radius:18px;
  background:#fafafa;
}

/* WordPress-style product uploader */
.wp-upload-panel{
  background:#f3f9ff !important;
  border:1px solid #d6e8f8 !important;
}

.wp-upload-picker{
  padding:14px;
  border:1px solid #dce6ef;
  border-radius:20px;
  background:linear-gradient(180deg,#fff 0%,#f6faff 100%);
}

.wp-upload-select{
  margin:0 !important;
  display:grid !important;
  grid-template-columns:58px 1fr auto;
  gap:14px !important;
  align-items:center;
  cursor:pointer;
  text-transform:none !important;
  letter-spacing:0 !important;
}

.wp-upload-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(180deg,#43a7ff,#1687ef);
  color:#fff;
  font-size:28px;
  font-weight:500;
}

.wp-upload-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.wp-upload-copy strong{
  color:#1f2428;
  font-size:14px;
  font-weight:850;
}

.wp-upload-copy small{
  color:#78828a;
  font-size:10px;
  font-weight:650;
}

.wp-upload-button{
  min-width:82px;
  min-height:42px;
  display:grid;
  place-items:center;
  padding:0 16px;
  border-radius:999px;
  background:#187fe9;
  color:#fff;
  font-size:11px;
  font-weight:850;
}

.wp-hidden-file{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.wp-upload-count{
  margin-top:10px;
  color:#66717a;
  font-size:10px;
  font-weight:750;
}

.attachment-gallery{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
}

.attachment-card{
  position:relative;
  padding:7px;
  border-radius:15px;
  background:#fff;
}

.attachment-preview img{
  aspect-ratio:1/1;
  border-radius:12px;
}

.attachment-meta{margin-top:6px}

.attachment-meta strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
}

.delete-attachment{
  width:100%;
  min-height:32px;
  margin-top:6px;
  padding:5px 8px;
  font-size:9px;
}

@media(max-width:760px){
  body{font-size:13px}

  .panel-head h2{font-size:25px}
  .card-label{font-size:8px}
  .card-value{font-size:19px}

  .order-board-panel{
    padding:10px;
    border-radius:18px;
  }

  .board-head{align-items:stretch}

  .board-tools{
    grid-template-columns:1fr auto;
    gap:6px;
  }

  .board-tools input{
    min-height:43px;
    font-size:16px;
  }

  .order-board-tabs{
    padding:4px;
    margin-bottom:10px;
    border-radius:15px;
  }

  .order-board-tab{
    min-height:48px;
    padding:0 9px;
    font-size:8px;
    letter-spacing:.08em;
  }

  .tab-count{
    min-width:27px;
    height:27px;
    font-size:9px;
  }

  .wp-order-list{gap:9px}

  .wp-order-card{
    padding:10px;
    border-radius:17px;
  }

  .wp-order-card-main{
    grid-template-columns:1fr 84px;
    grid-template-areas:
      "customer thumb"
      "item thumb"
      "money badges";
    gap:9px 10px;
    align-items:start;
  }

  .wp-customer-block{
    grid-area:customer;
    grid-template-columns:44px 1fr;
    gap:9px;
  }

  .wp-avatar{
    width:44px;
    height:44px;
    border-radius:14px;
    font-size:17px;
  }

  .wp-customer-text strong,.wp-item-block strong,.wp-money-block strong{
    font-size:14px;
  }

  .wp-customer-text span,.wp-item-block span,.wp-money-block span{
    font-size:11px;
  }

  .wp-customer-text b,.wp-money-block b{
    font-size:10px;
  }

  .wp-item-block{grid-area:item}
  .wp-money-block{grid-area:money}

  .wp-order-thumb{
    grid-area:thumb;
    width:84px;
    height:84px;
    border-radius:14px;
    justify-self:end;
  }

  .wp-badge-block{
    grid-area:badges;
    justify-content:flex-end;
    align-self:end;
  }

  .wp-status{
    min-height:27px;
    padding:4px 8px;
    font-size:9px;
  }

  .wp-detail-btn{
    min-height:44px;
    margin-top:9px;
    padding:0 10px;
    gap:8px;
    border-radius:13px;
  }

  .wp-detail-btn span{font-size:9px}

  .wp-detail-btn small{
    font-size:7px;
    line-height:1.25;
  }

  .wp-detail-btn b{font-size:20px}

  .wp-upload-picker{
    padding:10px;
    border-radius:16px;
  }

  .wp-upload-select{
    grid-template-columns:48px 1fr auto;
    gap:9px !important;
  }

  .wp-upload-icon{
    width:46px;
    height:46px;
    border-radius:14px;
    font-size:24px;
  }

  .wp-upload-copy strong{font-size:12px}
  .wp-upload-copy small{font-size:8px}

  .wp-upload-button{
    min-width:64px;
    min-height:37px;
    padding:0 11px;
    font-size:10px;
  }

  .attachment-gallery{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:430px){
  .wp-order-card-main{
    grid-template-columns:1fr 76px;
  }

  .wp-order-thumb{
    width:76px;
    height:76px;
  }

  .wp-upload-select{
    grid-template-columns:44px 1fr auto;
  }

  .wp-upload-icon{
    width:42px;
    height:42px;
  }

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

/* LOFFA V1.1.6 ORDER DETAIL FLOW */

.detail-dialog:not(.edit-mode){
  width:min(820px,94vw);
  background:#f5f6f7;
}

.detail-dialog.edit-mode{
  width:min(1240px,96vw);
}

.detail-dialog:not(.edit-mode) .dialog-head{
  min-height:68px;
  padding:13px 18px;
}

.detail-dialog:not(.edit-mode) #detailBody{
  padding:14px 14px 18px;
}

.order-view-shell{
  display:grid;
  gap:10px;
}

.order-view-top{
  display:grid;
  grid-template-columns:150px 1fr auto;
  gap:18px;
  align-items:start;
  padding:16px;
  border:1px solid #e4e7e9;
  border-radius:20px;
  background:#fff;
}

.order-view-image{
  width:150px;
  height:150px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#eceef0;
  box-shadow:0 8px 28px rgba(28,32,36,.07);
}

.order-view-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  cursor:zoom-in;
}

.order-view-image.no-image span{
  color:#888d92;
  font-size:38px;
  font-weight:850;
}

.order-view-main{min-width:0}

.order-view-eyebrow,
.order-view-item > span,
.order-view-reward > span,
.order-view-money span,
.order-view-note > span,
.order-view-section-head span{
  color:#7a7f85;
  font-size:8px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.order-view-main h2{
  margin:4px 0 2px;
  font-size:24px;
  line-height:1.05;
}

.order-view-phone{
  color:#7a7e83;
  font-size:12px;
}

.order-view-item{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:16px;
}

.order-view-item strong{font-size:14px}
.order-view-item small{color:#7e8388;font-size:10px}

.order-view-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
}

.order-view-status{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:4px 10px;
  border-radius:999px;
  font-size:9px;
  font-weight:850;
}

.detail-status-green{background:#e4f6eb;color:#14774a}
.detail-status-yellow{background:#fff0c5;color:#896100}
.detail-status-red{background:#ffe7e9;color:#b33b44}
.detail-status-grey{background:#eeeff0;color:#62666a}

.order-view-reward{
  min-width:96px;
  padding:12px;
  border-radius:15px;
  background:#ebf8f0;
  text-align:right;
}

.order-view-reward strong{
  display:block;
  margin-top:5px;
  color:#14764a;
  font-size:18px;
}

.order-view-money{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.order-view-money > div{
  padding:12px 14px;
  border:1px solid #e3e6e8;
  border-radius:16px;
  background:#fff;
}

.order-view-money > div:nth-child(1){background:#fff4e8}
.order-view-money > div:nth-child(2){background:#eaf7ef}
.order-view-money > div:nth-child(3){background:#f1f2f3}
.order-view-money > div.has-balance{background:#fff0f1}

.order-view-money strong{
  display:block;
  margin-top:5px;
  font-size:18px;
}

.order-view-money .has-balance strong{color:#b53841}

.order-view-note{
  padding:11px 13px;
  border:1px solid #dbe9f4;
  border-radius:15px;
  background:#f3f9ff;
}

.order-view-note p{
  margin:5px 0 0;
  font-size:12px;
}

.order-view-section{
  padding:13px;
  border:1px solid #e2e6e8;
  border-radius:18px;
  background:#fff;
}

.order-view-section-head{margin-bottom:9px}

.order-view-section-head strong{
  display:block;
  margin-top:2px;
  font-size:14px;
}

.order-view-tracking-list{
  display:grid;
  gap:7px;
}

.order-view-track{
  display:grid;
  grid-template-columns:32px 1fr auto;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border:1px solid #e6e9eb;
  border-radius:13px;
  background:#fafbfc;
}

.order-view-track-no{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#111;
  color:#fff;
  font-size:11px;
  font-weight:850;
}

.order-view-track-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.order-view-track-copy strong{font-size:11px}
.order-view-track-copy span{color:#7c8186;font-size:9px}

.order-view-track-copy b{
  overflow:hidden;
  color:#2c2f32;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.order-view-track-status{
  min-height:25px;
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  background:#eceef0;
  color:#64686c;
  font-size:8px;
  font-weight:850;
}

.order-view-actions{
  display:grid;
  grid-template-columns:1.1fr 1.1fr .85fr .85fr;
  gap:7px;
  position:sticky;
  bottom:0;
  z-index:8;
  padding:8px;
  border:1px solid #e0e3e5;
  border-radius:17px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
}

.order-view-btn{
  min-height:43px;
  border:0;
  border-radius:12px;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

.order-view-btn.edit{background:#1688ef;color:#fff}
.order-view-btn.receipt{background:#111;color:#fff}

.order-view-btn.delete{
  border:1px solid #efc6c9;
  background:#fff0f1;
  color:#b53640;
}

.order-view-btn.close{
  border:1px solid #dde0e2;
  background:#fff;
  color:#55595d;
}

@media(max-width:760px){
  .detail-dialog:not(.edit-mode),
  .detail-dialog.edit-mode{
    width:100vw;
    height:100dvh;
    max-width:none;
    max-height:none;
  }

  .detail-dialog:not(.edit-mode) #detailBody{
    padding:8px 7px 80px;
  }

  .order-view-shell{gap:7px}

  .order-view-top{
    grid-template-columns:104px 1fr;
    gap:10px;
    padding:10px;
    border-radius:16px;
  }

  .order-view-image{
    width:104px;
    height:104px;
    border-radius:14px;
  }

  .order-view-main h2{font-size:19px}
  .order-view-phone{font-size:10px}
  .order-view-item{margin-top:9px}
  .order-view-item strong{font-size:12px}

  .order-view-reward{
    grid-column:1/-1;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px 10px;
    text-align:left;
  }

  .order-view-reward strong{
    margin:0;
    font-size:14px;
  }

  .order-view-money{gap:6px}

  .order-view-money > div{
    padding:9px 10px;
    border-radius:13px;
  }

  .order-view-money strong{font-size:14px}

  .order-view-note{
    padding:9px 10px;
    border-radius:13px;
  }

  .order-view-section{
    padding:9px;
    border-radius:14px;
  }

  .order-view-track{
    grid-template-columns:29px 1fr;
    gap:8px;
    padding:8px;
  }

  .order-view-track-no{
    width:28px;
    height:28px;
  }

  .order-view-track-status{
    grid-column:2;
    justify-self:start;
  }

  .order-view-actions{
    position:fixed;
    left:7px;
    right:7px;
    bottom:calc(7px + env(safe-area-inset-bottom));
    grid-template-columns:1.1fr 1.1fr .8fr .8fr;
    padding:6px;
    border-radius:14px;
  }

  .order-view-btn{
    min-height:40px;
    font-size:8px;
  }
}

@media(max-width:420px){
  .order-view-top{grid-template-columns:92px 1fr}

  .order-view-image{
    width:92px;
    height:92px;
  }

  .order-view-main h2{font-size:18px}

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

/* LOFFA V1.1.7 SIMPLE WORDPRESS EDIT */

.detail-dialog.edit-mode:not(.advanced-edit-mode){
  width:min(900px,95vw);
  max-height:94vh;
  background:#f5f6f7;
}

.detail-dialog.edit-mode:not(.advanced-edit-mode) .dialog-head{
  display:none;
}

.detail-dialog.edit-mode:not(.advanced-edit-mode) #detailBody{
  padding:18px;
}

.simple-edit-shell{
  display:grid;
  gap:13px;
  padding:18px;
  border:1px solid #e0e4e7;
  border-radius:22px;
  background:#fff;
}

.simple-edit-head span{
  color:#777c81;
  font-size:9px;
  font-weight:900;
  letter-spacing:.2em;
}

.simple-edit-head h2{
  margin:5px 0 0;
  font-size:28px;
  line-height:1;
  letter-spacing:-.04em;
}

.simple-edit-grid{
  display:grid;
  gap:10px;
}

.simple-edit-grid.two{
  grid-template-columns:1fr 1fr;
}

.simple-edit-shell label{
  gap:5px;
  margin:0;
  color:#2d3033;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.simple-edit-shell input,
.simple-edit-shell select,
.simple-edit-shell textarea{
  min-height:46px;
  padding:10px 13px;
  border:1px solid #d8dde1;
  border-radius:13px;
  background:#fff;
  color:#252729;
  font-size:16px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
}

.simple-edit-shell textarea{
  min-height:86px;
}

.simple-readonly{
  min-height:46px;
  display:flex;
  align-items:center;
  padding:10px 13px;
  border-radius:13px;
  background:#efeff0;
  color:#303235;
  font-size:16px;
  font-weight:850;
  letter-spacing:0;
  text-transform:none;
}

.simple-edit-section{
  padding-top:3px;
}

.simple-section-title{
  margin-bottom:7px;
  color:#2a2c2f;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}

.simple-edit-item{
  display:grid;
  grid-template-columns:minmax(230px,1fr) 85px 145px auto;
  gap:8px;
  align-items:end;
  padding:9px 0;
  border-top:1px solid #eceef0;
}

.simple-edit-item:first-child{
  border-top:0;
  padding-top:0;
}

.simple-remove-item,
.simple-secondary-btn{
  min-height:44px;
  padding:9px 13px;
  border:1px solid #d9dde0;
  border-radius:12px;
  background:#fff;
  color:#383b3e;
  font-size:10px;
  font-weight:850;
}

.simple-secondary-btn{
  margin-top:6px;
}

.simple-image-box{
  padding:14px;
  border:1px solid #d5e5f4;
  border-radius:20px;
  background:#f1f8ff;
}

.simple-upload-picker{
  display:grid !important;
  grid-template-columns:54px 1fr auto;
  gap:13px !important;
  align-items:center;
  margin:0 !important;
  padding:12px 14px;
  border:1px solid #dfe8f0;
  border-radius:17px;
  background:#fff;
  cursor:pointer;
  letter-spacing:0 !important;
  text-transform:none !important;
}

.simple-upload-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:linear-gradient(180deg,#43a9ff,#1788ef);
  color:#fff;
  font-size:28px;
}

.simple-upload-picker > span:nth-child(2){
  display:flex;
  flex-direction:column;
  gap:4px;
}

.simple-upload-picker strong{
  font-size:14px;
}

.simple-upload-picker small{
  color:#7a858e;
  font-size:9px;
}

.simple-upload-picker b{
  min-width:76px;
  min-height:39px;
  display:grid;
  place-items:center;
  padding:0 13px;
  border-radius:999px;
  background:#167fea;
  color:#fff;
  font-size:10px;
}

.simple-hidden-file{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.simple-image-meta{
  margin:10px 2px 7px;
  color:#65717a;
  font-size:10px;
  font-weight:800;
}

.simple-image-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}

.simple-product-image{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:14px;
  background:#e9ecef;
}

.simple-product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.simple-image-delete{
  position:absolute;
  top:6px;
  right:6px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  background:#374047;
  color:#fff;
  font-size:18px;
  line-height:1;
}

.simple-empty-image{
  grid-column:1/-1;
  padding:16px;
  color:#7a8085;
  font-size:11px;
}

.simple-edit-actions{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:8px;
  margin-top:2px;
}

.simple-primary-action,
.simple-save-action,
.simple-cancel-action{
  min-height:48px;
  padding:10px 16px;
  border-radius:13px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}

.simple-primary-action,
.simple-save-action{
  border:1px solid #111;
  background:#111;
  color:#fff;
}

.simple-cancel-action{
  border:1px solid #d9dde0;
  background:#fff;
  color:#333639;
}

.simple-advanced-link{
  justify-self:center;
  padding:5px 10px;
  border:0;
  background:transparent;
  color:#92979c;
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
}

@media(max-width:760px){
  .detail-dialog.edit-mode:not(.advanced-edit-mode){
    width:100vw;
    height:100dvh;
    max-width:none;
    max-height:none;
    margin:0;
    border-radius:0;
  }

  .detail-dialog.edit-mode:not(.advanced-edit-mode) #detailBody{
    padding:7px 7px calc(82px + env(safe-area-inset-bottom));
  }

  .simple-edit-shell{
    gap:10px;
    padding:11px;
    border-radius:17px;
  }

  .simple-edit-head h2{
    font-size:24px;
  }

  .simple-edit-grid.two{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }

  .simple-edit-shell label{
    font-size:8px;
  }

  .simple-edit-shell input,
  .simple-edit-shell select,
  .simple-edit-shell textarea,
  .simple-readonly{
    min-height:42px;
    padding:8px 10px;
    border-radius:11px;
    font-size:16px;
  }

  .simple-edit-shell textarea{
    min-height:72px;
  }

  .simple-edit-item{
    grid-template-columns:1fr 70px 108px;
    gap:6px;
  }

  .simple-edit-item .simple-item-name{
    grid-column:1/-1;
  }

  .simple-remove-item{
    grid-column:1/-1;
    min-height:35px;
  }

  .simple-image-box{
    padding:9px;
    border-radius:16px;
  }

  .simple-upload-picker{
    grid-template-columns:44px 1fr auto;
    gap:8px !important;
    padding:9px;
    border-radius:14px;
  }

  .simple-upload-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    font-size:23px;
  }

  .simple-upload-picker strong{
    font-size:12px;
  }

  .simple-upload-picker small{
    font-size:8px;
  }

  .simple-upload-picker b{
    min-width:60px;
    min-height:35px;
    padding:0 10px;
  }

  .simple-image-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }

  .simple-edit-actions{
    position:fixed;
    left:7px;
    right:7px;
    bottom:calc(7px + env(safe-area-inset-bottom));
    z-index:30;
    grid-template-columns:1.5fr .8fr .7fr;
    padding:6px;
    border:1px solid #e0e3e5;
    border-radius:14px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
  }

  .simple-primary-action,
  .simple-save-action,
  .simple-cancel-action{
    min-height:40px;
    padding:7px 8px;
    font-size:8px;
  }
}

@media(max-width:430px){
  .simple-edit-shell{
    padding:9px;
  }

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


/* LOFFA V1.1.8 WORKFLOW */
.v118-loffa-stage{
  display:grid;
  grid-template-columns:34px 1fr auto;
  gap:11px;
  align-items:center;
  margin:8px 0;
  padding:12px;
  border:1px solid #cbe7d6;
  border-radius:15px;
  background:#edf9f2;
}

.v118-step-dot{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#138754;
  color:#fff;
  font-size:11px;
  font-weight:900;
}

.v118-stage-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.v118-stage-copy strong{
  font-size:10px;
  letter-spacing:.08em;
}

.v118-stage-copy span{
  color:#616a65;
  font-size:10px;
}

.v118-stage-copy small{
  color:#7a827e;
  font-size:8px;
}

.v118-loffa-btn{
  min-height:42px;
  padding:8px 13px;
  border:1px solid #117746;
  border-radius:11px;
  background:#117746;
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.02em;
}

.v118-loffa-btn.done,
[data-v118].done{
  border-color:#b9ddc8 !important;
  background:#e7f6ed !important;
  color:#147348 !important;
}

[data-v118]:disabled{
  opacity:.55;
  cursor:wait;
}

@media(max-width:760px){
  .v118-loffa-stage{
    grid-template-columns:30px 1fr;
    gap:8px;
    padding:9px;
    border-radius:13px;
  }

  .v118-step-dot{
    width:28px;
    height:28px;
  }

  .v118-loffa-btn{
    grid-column:1/-1;
    width:100%;
    min-height:40px;
  }
}

/* LOFFA V1.1.9 EDITABLE TRACKING */

.order-view-section.v119-workflow{
  padding:0;
  overflow:hidden;
  border:1px solid #e1e4e7;
  border-radius:18px;
  background:#f7f8f9;
}

.v119-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #e3e6e8;
  background:#fff;
}

.v119-head > div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.v119-head span{
  color:#7a7f84;
  font-size:8px;
  font-weight:900;
  letter-spacing:.16em;
}

.v119-head strong{
  font-size:15px;
}

.v119-head small{
  color:#81868b;
  font-size:9px;
}

.v119-step{
  display:grid;
  grid-template-columns:36px 1fr;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid #e5e8ea;
  background:#fff;
}

.v119-step:last-child{
  border-bottom:0;
}

.v119-step-number{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#111;
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.v119-step-body{
  min-width:0;
}

.v119-step-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}

.v119-step-title > div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.v119-step-title strong{
  font-size:11px;
  letter-spacing:.03em;
}

.v119-step-title span{
  color:#81868b;
  font-size:9px;
}

.v119-detect-badge{
  flex:0 0 auto;
  min-height:27px;
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  font-size:8px !important;
  font-weight:850;
  white-space:nowrap;
}

.v119-detect-badge.empty{
  background:#eceef0;
  color:#6e7277;
}

.v119-detect-badge.ok{
  background:#e4f6eb;
  color:#14784a;
}

.v119-detect-badge.warn{
  background:#fff0c7;
  color:#8b6500;
}

.v119-input-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
}

.v119-input-row input{
  min-height:44px;
  padding:9px 12px;
  border:1px solid #cfd5d9;
  border-radius:12px;
  background:#fff;
  font-family:inherit;
  font-size:14px;
}

.v119-input-row input:focus{
  outline:none;
  border-color:#1987ee;
  box-shadow:0 0 0 3px rgba(25,135,238,.09);
}

.v119-send-btn,
.v119-arrived-btn{
  min-height:44px;
  padding:9px 15px;
  border:1px solid #111;
  border-radius:12px;
  background:#111;
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.03em;
  cursor:pointer;
}

.v119-send-btn.done{
  border-color:#17794d;
  background:#17794d;
}

.v119-arrived-step{
  background:#f2faf6;
}

.v119-arrived-step.done{
  background:#eaf7ef;
}

.v119-arrived-btn{
  width:100%;
  border-color:#137b4c;
  background:#137b4c;
}

.v119-arrived-btn.done{
  border-color:#cfe6d8;
  background:#e4f4ea;
  color:#177549;
}

.v119-track-link{
  min-height:15px;
  margin-top:5px;
}

.v119-track-link a{
  color:#177dbe;
  font-size:9px;
  font-weight:750;
  text-decoration:none;
}

@media(max-width:760px){
  .order-view-section.v119-workflow{
    border-radius:14px;
  }

  .v119-head{
    padding:9px 10px;
  }

  .v119-head strong{
    font-size:14px;
  }

  .v119-head small{
    font-size:7px;
  }

  .v119-step{
    grid-template-columns:30px 1fr;
    gap:7px;
    padding:9px;
  }

  .v119-step-number{
    width:29px;
    height:29px;
    font-size:10px;
  }

  .v119-step-title{
    gap:6px;
    margin-bottom:7px;
  }

  .v119-step-title strong{
    font-size:10px;
  }

  .v119-step-title span{
    font-size:8px;
  }

  .v119-detect-badge{
    min-height:24px;
    padding:3px 7px;
    font-size:7px !important;
  }

  .v119-input-row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .v119-input-row input{
    min-height:42px;
    font-size:16px;
  }

  .v119-send-btn,
  .v119-arrived-btn{
    min-height:40px;
    width:100%;
    font-size:8px;
  }

  .v119-track-link a{
    font-size:8px;
  }
}

/* LOFFA V1.2.0 BALANCE + SHIP OUT */

/* Baki button inside Order Detail */
.order-view-actions{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.order-view-btn.balance-received{
  border:1px solid #efad42;
  background:#fff5e4;
  color:#9a6200;
}

.order-view-btn.balance-received:hover{
  background:#ffedc9;
}

.order-view-btn.balance-received.done{
  border-color:#bfe2cc;
  background:#e9f7ee;
  color:#147749;
}

/* ONLY border changes orange after item arrived + balance fully paid */
.wp-order-card.ready-shipout{
  border:2px solid #f0a43a !important;
  background:#fff !important;
  box-shadow:0 0 0 1px rgba(240,164,58,.06) !important;
}

.wp-order-card.ready-shipout .wp-detail-btn{
  margin-bottom:0;
}

.wp-shipout-btn{
  width:100%;
  min-height:48px;
  margin-top:8px;
  padding:0 14px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  border:1px solid #f0a43a;
  border-radius:15px;
  background:#fff7e9;
  color:#9b6100;
  text-align:left;
  cursor:pointer;
}

.wp-shipout-btn:hover{
  background:#ffefcf;
}

.wp-shipout-btn span{
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
}

.wp-shipout-btn small{
  color:#a77b36;
  font-size:8px;
  font-weight:750;
  letter-spacing:.07em;
}

.wp-shipout-btn b{
  justify-self:end;
  font-size:21px;
}

.wp-shipout-btn:disabled{
  opacity:.55;
  cursor:wait;
}

@media(max-width:760px){
  .order-view-actions{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }

  .order-view-btn.balance-received{
    padding:5px 4px;
    font-size:7px;
    line-height:1.15;
  }

  .wp-order-card.ready-shipout{
    border-width:2px !important;
  }

  .wp-shipout-btn{
    min-height:43px;
    margin-top:7px;
    padding:0 10px;
    gap:7px;
    border-radius:13px;
  }

  .wp-shipout-btn span{
    font-size:9px;
  }

  .wp-shipout-btn small{
    font-size:7px;
  }

  .wp-shipout-btn b{
    font-size:19px;
  }
}

/* LOFFA V1.2.2 COMPLETED + MINIMAL UI */

/*
  Desktop layout:
  EDIT | PDF | BAKI
  COMPLETED ORDER full width
  DELETE | TUTUP
*/
.order-view-actions.v121-actions{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  grid-template-areas:
    "edit edit pdf pdf balance balance"
    "complete complete complete complete complete complete"
    "delete delete delete close close close" !important;
  gap:10px !important;
  align-items:stretch;
}

.order-view-actions.v121-actions > [data-v121-role="edit"]{
  grid-area:edit;
}

.order-view-actions.v121-actions > [data-v121-role="pdf"]{
  grid-area:pdf;
}

.order-view-actions.v121-actions > [data-v121-role="balance"]{
  grid-area:balance;
}

.order-view-actions.v121-actions > [data-v121-role="complete"]{
  grid-area:complete;
}

.order-view-actions.v121-actions > [data-v121-role="delete"]{
  grid-area:delete;
}

.order-view-actions.v121-actions > [data-v121-role="close"]{
  grid-area:close;
}

.order-view-actions.v121-actions > button{
  min-width:0;
  min-height:52px;
  border-radius:14px !important;
  font-weight:850;
  letter-spacing:.035em;
}

.order-view-actions.v121-actions .v121-complete-btn{
  min-height:62px;
  padding:10px 18px !important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border:1px solid #d7dde3 !important;
  background:#f2f4f5 !important;
  color:#7e858c !important;
  cursor:not-allowed;
}

.order-view-actions.v121-actions .v121-complete-btn.ready{
  border-color:#15814d !important;
  background:#13824d !important;
  color:#fff !important;
  cursor:pointer;
  box-shadow:0 7px 18px rgba(0,0,0,.07);
}

.order-view-actions.v121-actions .v121-complete-btn.ready:hover{
  filter:brightness(.96);
}

.order-view-actions.v121-actions .v121-complete-btn.done{
  border-color:#b9dfc9 !important;
  background:#e8f6ee !important;
  color:#147749 !important;
}

.v121-complete-main{
  display:block;
  font-size:12px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.075em;
}

.v121-complete-sub{
  display:block;
  font-size:9px;
  line-height:1.2;
  font-weight:750;
  letter-spacing:.035em;
  opacity:.86;
}

/* Keep destructive and secondary actions visually quiet */
.order-view-actions.v121-actions > [data-v121-role="delete"]{
  background:#fff2f2 !important;
  border-color:#f0c5c8 !important;
  color:#b83742 !important;
}

.order-view-actions.v121-actions > [data-v121-role="close"]{
  background:#fff !important;
  color:#5f6469 !important;
}

/* Phone / narrow screen */
@media(max-width:760px){
  .order-view-actions.v121-actions{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-areas:
      "edit pdf"
      "balance balance"
      "complete complete"
      "delete close" !important;
    gap:8px !important;
  }

  .order-view-actions.v121-actions > button{
    min-height:48px;
    padding:8px 10px !important;
    border-radius:13px !important;
    font-size:9px !important;
    line-height:1.15;
  }

  .order-view-actions.v121-actions > [data-v121-role="balance"]{
    min-height:46px;
    font-size:10px !important;
  }

  .order-view-actions.v121-actions .v121-complete-btn{
    min-height:58px;
  }

  .v121-complete-main{
    font-size:11px;
  }

  .v121-complete-sub{
    font-size:8px;
  }
}

@media(max-width:390px){
  .order-view-actions.v121-actions{
    gap:7px !important;
  }

  .order-view-actions.v121-actions > button{
    min-height:46px;
    padding:7px 8px !important;
    font-size:8px !important;
  }

  .order-view-actions.v121-actions .v121-complete-btn{
    min-height:56px;
  }
}


/* V1.2.2 — compact / minimalist tracking controls */
.order-view-section.v119-workflow .v119-input-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:8px !important;
  align-items:center !important;
}

.order-view-section.v119-workflow .v119-input-row input{
  min-height:46px !important;
  padding:9px 13px !important;
  border-radius:12px !important;
}

.order-view-section.v119-workflow .v119-send-btn{
  width:auto !important;
  min-width:92px !important;
  min-height:42px !important;
  padding:0 14px !important;
  border-radius:11px !important;
  white-space:nowrap !important;
  font-size:8px !important;
  letter-spacing:.055em !important;
  box-shadow:none !important;
}

.order-view-section.v119-workflow .v119-arrived-btn{
  width:auto !important;
  min-width:154px !important;
  min-height:42px !important;
  margin:8px 0 0 auto !important;
  padding:0 15px !important;
  display:block !important;
  border-radius:11px !important;
  white-space:nowrap !important;
  font-size:8px !important;
  letter-spacing:.045em !important;
  box-shadow:none !important;
}

/* quieter, cleaner button states */
.order-view-section.v119-workflow .v119-send-btn{
  border-color:#161616 !important;
  background:#161616 !important;
}

.order-view-section.v119-workflow .v119-send-btn.done,
.order-view-section.v119-workflow .v119-arrived-btn{
  border-color:#177d4e !important;
  background:#177d4e !important;
}

.order-view-section.v119-workflow .v119-arrived-btn.done{
  border-color:#cfe6d8 !important;
  background:#e9f6ee !important;
  color:#177549 !important;
}

/* Phone: keep buttons compact instead of turning into full-width bars */
@media(max-width:760px){
  .order-view-section.v119-workflow .v119-input-row{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:7px !important;
  }

  .order-view-section.v119-workflow .v119-input-row input{
    min-width:0 !important;
    min-height:44px !important;
    padding:8px 11px !important;
  }

  .order-view-section.v119-workflow .v119-send-btn{
    width:auto !important;
    min-width:82px !important;
    min-height:40px !important;
    padding:0 11px !important;
    font-size:7.5px !important;
  }

  .order-view-section.v119-workflow .v119-arrived-btn{
    width:auto !important;
    min-width:142px !important;
    min-height:40px !important;
    margin-left:auto !important;
    padding:0 12px !important;
    font-size:7.5px !important;
  }
}

@media(max-width:390px){
  .order-view-section.v119-workflow .v119-input-row{
    gap:6px !important;
  }

  .order-view-section.v119-workflow .v119-send-btn{
    min-width:74px !important;
    padding:0 9px !important;
  }

  .order-view-section.v119-workflow .v119-arrived-btn{
    min-width:132px !important;
  }
}

/* LOFFA V1.2.3 MOBILE FOOTER FIX */

/* Desktop: one clean compact action row */
.order-view-actions.v121-actions{
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  grid-template-areas:"edit pdf balance complete delete close" !important;
  gap:7px !important;
  padding:7px !important;
  border-radius:14px !important;
}

.order-view-actions.v121-actions > button{
  min-height:42px !important;
  height:42px !important;
  padding:6px 9px !important;
  border-radius:11px !important;
  font-size:8.5px !important;
  line-height:1.1 !important;
  letter-spacing:.035em !important;
}

.order-view-actions.v121-actions > [data-v121-role="balance"]{
  min-height:42px !important;
  height:42px !important;
  font-size:8.5px !important;
}

.order-view-actions.v121-actions .v121-complete-btn{
  min-height:42px !important;
  height:42px !important;
  padding:5px 8px !important;
  gap:1px !important;
  box-shadow:none !important;
}

.order-view-actions.v121-actions .v121-complete-btn.ready{
  box-shadow:none !important;
}

.v121-complete-main{
  font-size:8.5px !important;
  line-height:1.05 !important;
  letter-spacing:.045em !important;
}

.v121-complete-sub{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:6.5px !important;
  line-height:1.05 !important;
  letter-spacing:.01em !important;
}

/*
  Phone:
  IMPORTANT — old V1.1.6 made this footer position:fixed.
  That covered tracking controls. Make it normal page content.
*/
@media(max-width:760px){
  .detail-dialog:not(.edit-mode) #detailBody{
    padding-bottom:12px !important;
    scroll-padding-bottom:12px !important;
  }

  .order-view-actions.v121-actions{
    position:static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    inset:auto !important;
    z-index:auto !important;

    width:100% !important;
    margin:8px 0 0 !important;
    padding:6px !important;

    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-areas:
      "edit pdf"
      "balance complete"
      "delete close" !important;
    gap:6px !important;

    border-radius:13px !important;
    background:#fff !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    box-shadow:none !important;
  }

  .order-view-actions.v121-actions > button,
  .order-view-actions.v121-actions > [data-v121-role="balance"],
  .order-view-actions.v121-actions .v121-complete-btn{
    min-height:38px !important;
    height:38px !important;
    padding:5px 7px !important;
    border-radius:10px !important;
    font-size:8px !important;
    line-height:1.05 !important;
  }

  .v121-complete-main{
    font-size:8px !important;
  }

  /* Keep mobile footer visually light */
  .v121-complete-sub{
    display:none !important;
  }

  /* Tracking remains fully reachable/editable above footer */
  .order-view-section.v119-workflow{
    position:relative;
    z-index:1;
  }

  .order-view-section.v119-workflow input,
  .order-view-section.v119-workflow button{
    position:relative;
    z-index:2;
  }
}

@media(max-width:390px){
  .order-view-actions.v121-actions{
    gap:5px !important;
    padding:5px !important;
  }

  .order-view-actions.v121-actions > button,
  .order-view-actions.v121-actions > [data-v121-role="balance"],
  .order-view-actions.v121-actions .v121-complete-btn{
    min-height:36px !important;
    height:36px !important;
    padding:4px 6px !important;
    font-size:7.5px !important;
  }

  .v121-complete-main{
    font-size:7.5px !important;
  }
}

/* LOFFA V1.2.4 UI SYSTEM + RESPONSIVE */

/* =========================================================
   1. GLOBAL UI SYSTEM
   ========================================================= */
:root{
  --loffa-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Arial,sans-serif;
  --loffa-bg:#f5f6f7;
  --loffa-card:#ffffff;
  --loffa-line:#e0e4e7;
  --loffa-text:#111214;
  --loffa-muted:#747b82;
  --loffa-radius:15px;
  --loffa-radius-sm:11px;
  --loffa-control-h:44px;
}

html,
body{
  width:100%;
  max-width:100%;
  margin:0;
  overflow-x:hidden !important;
  overscroll-behavior-x:none;
  background:var(--loffa-bg);
  color:var(--loffa-text);
  font-family:var(--loffa-font) !important;
  font-size:14px;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body{
  position:relative;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

button,
input,
textarea,
select{
  font-family:var(--loffa-font) !important;
}

img,
svg,
video,
canvas{
  max-width:100%;
}

.app,
.main,
.page,
.panel,
.form-panel,
.detail-dialog,
#detailBody,
.order-view-shell,
.simple-edit-shell,
.order-view-section,
.subpanel{
  min-width:0;
  max-width:100%;
}

.main,
.page,
#detailBody,
.detail-dialog{
  overflow-x:hidden !important;
}

/* stop form controls / grid children from forcing horizontal page width */
.grid > *,
.grid.two > *,
.grid.three > *,
.simple-edit-grid > *,
.simple-edit-item > *,
.v119-input-row > *,
.order-view-money > *,
.detail-grid > *{
  min-width:0 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select{
  width:100%;
  max-width:100%;
  min-width:0;
}

button{
  -webkit-tap-highlight-color:transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:2px solid rgba(26,136,239,.22);
  outline-offset:1px;
}

/* =========================================================
   2. GENERAL PORTAL CONSISTENCY
   ========================================================= */
.panel,
.card,
.subpanel,
.order-view-section,
.simple-edit-shell{
  border-color:var(--loffa-line);
}

.panel{
  border-radius:var(--loffa-radius) !important;
}

.panel-head h2{
  letter-spacing:-.025em;
}

label,
.form-panel label{
  font-weight:800;
}

input,
textarea,
select{
  border-color:#d4d9dd;
  background:#fff;
  color:#17191b;
}

.btn{
  font-weight:850;
  letter-spacing:.025em;
}

/* preserve horizontal scrolling only inside real scroll containers */
.table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto !important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

/* =========================================================
   3. ORDER DETAIL — CONSISTENT SCALE
   ========================================================= */
.dialog-head{
  box-sizing:border-box;
}

.dialog-head h2{
  line-height:1.08;
  letter-spacing:-.03em;
}

.order-view-top,
.order-view-money > div,
.order-view-note,
.order-view-section.v119-workflow,
.order-view-actions.v121-actions{
  border-radius:var(--loffa-radius) !important;
}

.order-view-money > div{
  min-width:0;
}

.order-view-money strong{
  line-height:1.1;
}

.order-view-actions.v121-actions{
  gap:6px !important;
  padding:6px !important;
}

.order-view-actions.v121-actions > button,
.order-view-actions.v121-actions > [data-v121-role="balance"],
.order-view-actions.v121-actions .v121-complete-btn{
  min-height:40px !important;
  height:40px !important;
  padding:5px 8px !important;
  border-radius:10px !important;
  font-size:8.5px !important;
  line-height:1.05 !important;
}

.v121-complete-main{
  font-size:8.5px !important;
  line-height:1.05 !important;
}

.v121-complete-sub{
  font-size:7px !important;
  line-height:1.05 !important;
}

/* =========================================================
   4. TRACKING FLOW — ONE VISUAL SCALE
   ========================================================= */
.order-view-section.v119-workflow{
  overflow:hidden;
}

.v119-head{
  gap:10px !important;
  padding:11px 12px !important;
}

.v119-head span{
  font-size:9px !important;
  letter-spacing:.12em !important;
}

.v119-head strong{
  font-size:15px !important;
  line-height:1.15;
}

.v119-head small{
  font-size:9px !important;
  line-height:1.25;
}

.v119-step{
  grid-template-columns:34px minmax(0,1fr) !important;
  gap:9px !important;
  padding:11px 12px !important;
}

.v119-step-number{
  width:32px !important;
  height:32px !important;
  font-size:11px !important;
}

.v119-step-body{
  min-width:0 !important;
  max-width:100%;
}

.v119-step-title{
  gap:8px !important;
  margin-bottom:8px !important;
}

.v119-step-title > div{
  min-width:0;
}

.v119-step-title strong{
  font-size:11px !important;
  line-height:1.2;
}

.v119-step-title span{
  font-size:9px !important;
  line-height:1.25;
}

.v119-detect-badge{
  min-height:25px !important;
  padding:4px 8px !important;
  font-size:8px !important;
}

.v119-input-row{
  width:100%;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:7px !important;
  align-items:center;
}

.v119-input-row input{
  width:100% !important;
  min-width:0 !important;
  min-height:44px !important;
  height:44px;
  padding:9px 11px !important;
  border-radius:11px !important;
  font-size:15px !important;
}

.v119-send-btn,
.v119-arrived-btn{
  min-height:40px !important;
  height:40px;
  padding:0 13px !important;
  border-radius:10px !important;
  font-size:8px !important;
  letter-spacing:.05em !important;
  white-space:nowrap;
}

.v119-send-btn{
  width:auto !important;
  min-width:88px !important;
}

.v119-arrived-btn{
  width:auto !important;
  min-width:140px !important;
  margin:8px 0 0 auto !important;
}

.v119-track-link{
  overflow-wrap:anywhere;
}

/* =========================================================
   5. SIMPLE EDIT — CLEAN FORM RHYTHM
   ========================================================= */
.detail-dialog.edit-mode:not(.advanced-edit-mode) #detailBody{
  overflow-x:hidden !important;
}

.simple-edit-shell{
  width:100%;
  gap:12px !important;
  padding:14px !important;
  border-radius:17px !important;
}

.simple-edit-head span,
.simple-section-title{
  font-size:9px !important;
  font-weight:850;
  letter-spacing:.14em !important;
}

.simple-edit-head h2{
  margin-top:3px;
  font-size:25px !important;
  line-height:1.08;
  letter-spacing:-.035em;
}

.simple-edit-shell label{
  gap:5px !important;
  margin:0 !important;
  font-size:9px !important;
  font-weight:850 !important;
  letter-spacing:.09em !important;
}

.simple-edit-shell input,
.simple-edit-shell select,
.simple-edit-shell textarea,
.simple-readonly{
  width:100% !important;
  min-width:0 !important;
  min-height:44px !important;
  padding:9px 11px !important;
  border-radius:11px !important;
  font-size:15px !important;
  line-height:1.3;
}

.simple-edit-shell textarea{
  min-height:78px !important;
  resize:vertical;
}

.simple-edit-grid.two{
  gap:8px !important;
}

.simple-edit-item{
  width:100%;
  min-width:0;
  gap:7px !important;
}

.simple-remove-item,
.simple-secondary-btn{
  min-height:38px !important;
  border-radius:10px !important;
  font-size:9px !important;
  font-weight:800;
}

.simple-image-box{
  border-radius:15px !important;
}

.simple-upload-picker{
  min-width:0;
}

.simple-edit-actions{
  gap:6px !important;
}

.simple-primary-action,
.simple-save-action,
.simple-cancel-action{
  min-height:41px !important;
  padding:7px 9px !important;
  border-radius:10px !important;
  font-size:8.5px !important;
  line-height:1.15;
}

.simple-advanced-link{
  font-size:8px !important;
}

/* =========================================================
   6. ADVANCED EDIT — SAME FORM LANGUAGE
   ========================================================= */
.detail-dialog.edit-mode.advanced-edit-mode .subpanel,
.detail-dialog.edit-mode.advanced-edit-mode .tracking-stage{
  padding:11px !important;
  border-radius:14px !important;
}

.detail-dialog.edit-mode.advanced-edit-mode h3{
  font-size:16px !important;
  line-height:1.15;
}

.detail-dialog.edit-mode.advanced-edit-mode label{
  font-size:9px !important;
  letter-spacing:.09em !important;
}

.detail-dialog.edit-mode.advanced-edit-mode input,
.detail-dialog.edit-mode.advanced-edit-mode textarea,
.detail-dialog.edit-mode.advanced-edit-mode select{
  min-width:0 !important;
  min-height:44px !important;
  padding:9px 11px !important;
  border-radius:11px !important;
  font-size:15px !important;
}

.mobile-sticky-actions{
  gap:6px !important;
}

.mobile-sticky-actions .btn{
  min-height:40px !important;
  border-radius:10px !important;
  font-size:8.5px !important;
}

/* =========================================================
   7. MOBILE
   ========================================================= */
@media(max-width:760px){
  html,
  body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  body{
    touch-action:pan-y pinch-zoom;
  }

  .app,
  .main,
  .page{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .main{
    padding:7px 7px 22px !important;
  }

  .panel{
    padding:11px !important;
    margin-bottom:7px !important;
    border-radius:15px !important;
  }

  .panel-head{
    gap:6px;
    margin-bottom:8px !important;
  }

  .panel-head h2{
    font-size:19px !important;
    line-height:1.1;
  }

  .panel-head p,
  .muted{
    line-height:1.3;
  }

  label,
  .form-panel label{
    gap:4px !important;
    margin:6px 0 !important;
    font-size:9px !important;
    letter-spacing:.08em !important;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  textarea,
  select{
    min-height:44px !important;
    padding:9px 10px !important;
    border-radius:11px !important;
    font-size:16px !important; /* prevents iOS focus zoom */
  }

  .btn{
    min-height:40px !important;
    padding:8px 10px !important;
    border-radius:10px !important;
    font-size:9px !important;
  }

  /* Full-screen detail without sideways drift */
  .detail-dialog,
  .detail-dialog:not(.edit-mode),
  .detail-dialog.edit-mode{
    width:100vw !important;
    max-width:100vw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
    overflow-x:hidden !important;
  }

  .detail-dialog #detailBody{
    width:100% !important;
    max-width:100% !important;
    padding:8px 7px 12px !important;
    overflow-x:hidden !important;
  }

  .dialog-head{
    min-height:61px !important;
    padding:9px 11px !important;
  }

  .dialog-head h2{
    font-size:20px !important;
  }

  .dialog-head .icon-btn{
    width:38px !important;
    height:38px !important;
    font-size:17px !important;
  }

  /* Order summary */
  .order-view-shell{
    gap:7px !important;
  }

  .order-view-top{
    grid-template-columns:96px minmax(0,1fr) !important;
    gap:10px !important;
    padding:10px !important;
    border-radius:15px !important;
  }

  .order-view-image{
    width:96px !important;
    height:96px !important;
    border-radius:13px !important;
  }

  .order-view-main{
    min-width:0;
  }

  .order-view-main h2{
    font-size:19px !important;
    line-height:1.05;
  }

  .order-view-phone{
    font-size:11px !important;
  }

  .order-view-item strong{
    font-size:12px !important;
  }

  .order-view-reward{
    padding:8px 10px !important;
    border-radius:13px !important;
  }

  .order-view-reward strong{
    font-size:14px !important;
  }

  .order-view-money{
    gap:6px !important;
  }

  .order-view-money > div{
    min-height:68px !important;
    padding:9px 10px !important;
    border-radius:13px !important;
  }

  .order-view-money strong{
    margin-top:5px !important;
    font-size:15px !important;
  }

  /* Tracking */
  .v119-head{
    padding:9px 10px !important;
  }

  .v119-head strong{
    font-size:14px !important;
  }

  .v119-head small{
    font-size:8px !important;
  }

  .v119-step{
    grid-template-columns:30px minmax(0,1fr) !important;
    gap:7px !important;
    padding:9px !important;
  }

  .v119-step-number{
    width:29px !important;
    height:29px !important;
    font-size:10px !important;
  }

  .v119-step-title strong{
    font-size:10px !important;
  }

  .v119-step-title span{
    font-size:8.5px !important;
  }

  .v119-detect-badge{
    min-height:24px !important;
    padding:3px 7px !important;
    font-size:7.5px !important;
  }

  .v119-input-row{
    grid-template-columns:minmax(0,1fr) 86px !important;
    gap:6px !important;
  }

  .v119-input-row input{
    min-height:42px !important;
    height:42px !important;
    padding:8px 10px !important;
    font-size:16px !important;
  }

  .v119-send-btn{
    width:86px !important;
    min-width:86px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 7px !important;
    font-size:7.5px !important;
  }

  .v119-arrived-btn{
    min-width:132px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 11px !important;
    font-size:7.5px !important;
  }

  /* Bottom order actions — compact, normal document flow */
  .order-view-actions.v121-actions{
    position:static !important;
    width:100% !important;
    margin:7px 0 0 !important;
    padding:5px !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-areas:
      "edit pdf"
      "balance complete"
      "delete close" !important;
    gap:5px !important;
    border-radius:12px !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
  }

  .order-view-actions.v121-actions > button,
  .order-view-actions.v121-actions > [data-v121-role="balance"],
  .order-view-actions.v121-actions .v121-complete-btn{
    min-height:37px !important;
    height:37px !important;
    padding:4px 6px !important;
    border-radius:9px !important;
    font-size:7.7px !important;
  }

  .v121-complete-main{
    font-size:7.7px !important;
  }

  .v121-complete-sub{
    display:none !important;
  }

  /* Simple edit */
  .detail-dialog.edit-mode:not(.advanced-edit-mode) #detailBody{
    padding:7px 7px 12px !important;
  }

  .simple-edit-shell{
    gap:9px !important;
    padding:10px !important;
    border-radius:15px !important;
  }

  .simple-edit-head h2{
    font-size:22px !important;
  }

  .simple-edit-shell label{
    font-size:9px !important;
  }

  .simple-edit-shell input,
  .simple-edit-shell select,
  .simple-edit-shell textarea,
  .simple-readonly{
    min-height:43px !important;
    padding:8px 10px !important;
    border-radius:10px !important;
    font-size:16px !important;
  }

  .simple-edit-grid.two{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  /* Fix item price/qty clipping: two equal columns on phone */
  .simple-edit-item{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px !important;
  }

  .simple-edit-item .simple-item-name{
    grid-column:1/-1 !important;
  }

  .simple-remove-item{
    grid-column:1/-1 !important;
    min-height:34px !important;
  }

  .simple-image-box{
    padding:9px !important;
    border-radius:14px !important;
  }

  .simple-upload-picker{
    grid-template-columns:40px minmax(0,1fr) auto !important;
    gap:7px !important;
    padding:8px !important;
    border-radius:12px !important;
  }

  .simple-upload-icon{
    width:40px !important;
    height:40px !important;
    border-radius:11px !important;
    font-size:21px !important;
  }

  .simple-upload-picker strong{
    font-size:11px !important;
  }

  .simple-upload-picker small{
    font-size:8px !important;
  }

  /* Sticky but NOT fixed: occupies its own space, no overlap */
  .simple-edit-actions{
    position:sticky !important;
    left:auto !important;
    right:auto !important;
    bottom:calc(5px + env(safe-area-inset-bottom)) !important;
    z-index:20 !important;
    grid-template-columns:1.35fr .8fr .65fr !important;
    gap:5px !important;
    margin-top:6px !important;
    padding:5px !important;
    border:1px solid #e0e3e5 !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.97) !important;
    box-shadow:0 5px 18px rgba(0,0,0,.055);
    backdrop-filter:blur(12px);
  }

  .simple-primary-action,
  .simple-save-action,
  .simple-cancel-action{
    min-height:38px !important;
    padding:5px 6px !important;
    font-size:7.5px !important;
  }

  /* Advanced edit footer: sticky in flow instead of fixed overlay */
  .mobile-sticky-actions{
    position:sticky !important;
    left:auto !important;
    right:auto !important;
    bottom:calc(5px + env(safe-area-inset-bottom)) !important;
    z-index:20 !important;
    width:100% !important;
    margin:9px 0 0 !important;
    padding:5px !important;
    border:1px solid #e0e3e5 !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.97) !important;
    box-shadow:0 5px 18px rgba(0,0,0,.055);
    backdrop-filter:blur(12px);
  }
}

@media(max-width:430px){
  .main{
    padding-left:6px !important;
    padding-right:6px !important;
  }

  .panel{
    padding:10px !important;
  }

  .simple-edit-shell{
    padding:9px !important;
  }

  .simple-edit-grid.two{
    gap:6px !important;
  }

  .order-view-top{
    grid-template-columns:90px minmax(0,1fr) !important;
  }

  .order-view-image{
    width:90px !important;
    height:90px !important;
  }
}

@media(max-width:370px){
  /* very narrow phones: protect against any remaining squeeze */
  .simple-edit-grid.two{
    grid-template-columns:1fr !important;
  }

  .v119-input-row{
    grid-template-columns:minmax(0,1fr) 78px !important;
  }

  .v119-send-btn{
    width:78px !important;
    min-width:78px !important;
  }
}
