/* ════════════════════════════════════════════════════════════════
   ZALA EDIT — Chunk 6 styles
   Ironworks theme: black (#0f0f0f), amber (#e8a020)
   Fonts: Bebas Neue (display) · Barlow Condensed (UI labels)
          DM Sans (body) · JetBrains Mono (numerics where helpful)
   ════════════════════════════════════════════════════════════════ */

/* ── EDIT MODAL ─────────────────────────────────────────────────── */
.ze-overlay{
  position:fixed; inset:0; z-index:9000;
  background:rgba(15,15,15,.72);
  display:flex; align-items:center; justify-content:center;
  padding:18px;
  animation:zeFadeIn .15s ease;
}
@keyframes zeFadeIn{from{opacity:0}to{opacity:1}}

.ze-modal{
  width:100%; max-width:580px; max-height:92vh;
  background:#fff; color:#0f0f0f;
  border-radius:14px;
  border:1px solid #1a1a1a;
  box-shadow:0 24px 60px rgba(0,0,0,.55), 0 0 0 4px rgba(232,160,32,.18);
  display:flex; flex-direction:column;
  overflow:hidden;
  animation:zeSlideIn .18s cubic-bezier(.2,.8,.2,1);
}
@keyframes zeSlideIn{from{transform:translateY(8px);opacity:.6}to{transform:none;opacity:1}}

.ze-hd{
  display:flex; align-items:flex-start; justify-content:space-between;
  padding:18px 22px 14px;
  background:#0f0f0f; color:#fff;
  border-bottom:2px solid #e8a020;
}
.ze-hd-l{
  font-family:'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size:22px; letter-spacing:.05em; color:#e8a020;
  line-height:1;
}
.ze-hd-s{
  margin-top:6px;
  font-family:'DM Sans', sans-serif;
  font-size:12.5px; color:#bdbdbd; letter-spacing:.02em;
}
.ze-close{
  background:none; border:none; color:#bbb; cursor:pointer;
  font-size:20px; line-height:1; padding:2px 6px;
  border-radius:6px;
  transition:background .12s, color .12s;
}
.ze-close:hover{background:rgba(255,255,255,.08); color:#fff}

.ze-body{
  padding:18px 22px 8px;
  overflow-y:auto;
  flex:1 1 auto;
}

.ze-row{
  display:block;
  margin-bottom:14px;
}
.ze-lbl{
  display:block;
  font-family:'Barlow Condensed', sans-serif;
  font-size:11px; font-weight:700;
  letter-spacing:.09em; color:#555;
  text-transform:uppercase;
  margin-bottom:5px;
}
.ze-input{
  width:100%;
  padding:9px 11px;
  border:1.5px solid #d4d4d4;
  border-radius:8px;
  background:#fff; color:#111;
  font-family:'DM Sans', sans-serif;
  font-size:13.5px;
  transition:border-color .12s, box-shadow .12s;
  box-sizing:border-box;
}
.ze-input:focus{
  outline:none;
  border-color:#e8a020;
  box-shadow:0 0 0 3px rgba(232,160,32,.18);
}
.ze-input[type="number"]{
  font-family:'JetBrains Mono', monospace;
  font-size:13px;
}
.ze-input[type="date"]{
  font-family:'JetBrains Mono', monospace;
  font-size:13px;
}
.ze-textarea{
  min-height:74px;
  resize:vertical;
  line-height:1.45;
}
select.ze-input{
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,#888 50%),linear-gradient(135deg,#888 50%,transparent 50%);
  background-position:calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
  padding-right:32px;
  cursor:pointer;
  font-family:'Barlow Condensed', sans-serif;
  font-size:13px; font-weight:600; letter-spacing:.04em;
}

.ze-help{
  margin-top:4px;
  font-family:'DM Sans', sans-serif;
  font-size:11px; color:#777; line-height:1.4;
}

.ze-foot{
  display:flex; justify-content:flex-end; gap:10px;
  padding:14px 22px 18px;
  border-top:1px solid #ececec;
  background:#fafafa;
}
.ze-btn{
  font-family:'Barlow Condensed', sans-serif;
  font-size:13px; font-weight:700; letter-spacing:.08em;
  padding:10px 18px;
  border-radius:8px;
  cursor:pointer;
  border:1.5px solid transparent;
  transition:transform .08s, box-shadow .12s, background .12s;
}
.ze-btn:active{transform:translateY(1px)}
.ze-btn-cancel{
  background:#fff;
  color:#555;
  border-color:#d4d4d4;
}
.ze-btn-cancel:hover{background:#f3f3f3; color:#222}
.ze-btn-save{
  background:#e8a020;
  color:#0f0f0f;
  border-color:#e8a020;
  box-shadow:0 2px 0 #b07614;
}
.ze-btn-save:hover{background:#f0ae33}

/* Small viewports — make the modal nearly full-screen on phone */
@media (max-width:520px){
  .ze-overlay{ padding:0; }
  .ze-modal{
    max-width:100%; height:100vh; max-height:100vh;
    border-radius:0;
  }
  .ze-hd-l{font-size:20px}
}

/* ── RECENTLY SHIPPED SECTION (customer.html) ───────────────────── */
.zrs-wrap{
  margin:10px 0 4px;
  padding:0;
  border-top:1px dashed #d4d4d4;
}

.zrs-toggle{
  display:flex; align-items:center; justify-content:space-between;
  width:100%;
  padding:9px 12px;
  background:transparent;
  border:none;
  cursor:pointer;
  font-family:'Barlow Condensed', sans-serif;
  color:#555;
  text-align:left;
  transition:background .12s, color .12s;
}
.zrs-toggle:hover{background:#fafafa; color:#0f0f0f}
.zrs-toggle-l{
  font-size:11.5px; font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.zrs-toggle-r{font-size:13px; color:#888}
.zrs-caret{
  display:inline-block;
  font-size:11px;
  transition:transform .12s;
}

.zrs-list{
  padding:2px 0 8px;
  display:flex; flex-direction:column; gap:5px;
}

.zrs-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:8px 12px;
  background:#f7f7f7;
  border:1px solid #ececec;
  border-radius:7px;
  cursor:pointer;
  transition:background .12s, border-color .12s, transform .08s;
}
.zrs-row:hover{
  background:#fff;
  border-color:#e8a020;
  transform:translateX(2px);
}
.zrs-row:active{transform:translateX(2px) translateY(1px)}

.zrs-row-main{ flex:1 1 auto; min-width:0; }
.zrs-part{
  font-family:'DM Sans', sans-serif;
  font-size:12.5px; font-weight:600; color:#0f0f0f;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.zrs-meta{
  margin-top:2px;
  font-family:'DM Sans', sans-serif;
  font-size:11px; color:#777;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.zrs-chip{
  flex-shrink:0;
  font-family:'Barlow Condensed', sans-serif;
  font-size:10px; font-weight:700;
  letter-spacing:.07em;
  padding:3px 8px;
  border-radius:4px;
  text-transform:uppercase;
  border:1px solid transparent;
}
.zrs-shipping{
  background:#dcfce7; color:#15803d; border-color:#bbf7d0;
}
.zrs-closed{
  background:#e5e5e5; color:#555; border-color:#d4d4d4;
}

/* ── EDIT QUICK-ACTION BUTTON (panel) ──────────────────────────────
   The Edit button reuses the existing .dd-act styling defined in
   zala-panel.css. No extra styles needed here — the button is
   emitted by the zala-threads.js patch in the QUICK ACTIONS grid.
   This class is a tiny tint for the edit icon if we ever want it.
*/
.dd-act-edit .dd-act-i{
  color:#e8a020;
}
