/* V31E6 final visual polish only — no business logic */

/* Public customer / delivery / invoice pages */
html.epdz-public-customer-page body,
html.epdz-public-delivery-page body,
html.epdz-public-invoice-page body {
  background: #eef6ff !important;
  overflow-x: hidden;
}

html.epdz-public-customer-page main,
html.epdz-public-delivery-page main,
html.epdz-public-invoice-page main,
html.epdz-public-customer-page .container,
html.epdz-public-delivery-page .container,
html.epdz-public-invoice-page .container {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html.epdz-public-customer-page a,
html.epdz-public-delivery-page a,
html.epdz-public-invoice-page a,
html.epdz-public-customer-page button,
html.epdz-public-delivery-page button,
html.epdz-public-invoice-page button {
  min-height: 42px;
}

html.epdz-public-invoice-page table,
html.epdz-public-delivery-page table {
  width: 100% !important;
  table-layout: auto !important;
}

html.epdz-public-invoice-page td,
html.epdz-public-invoice-page th,
html.epdz-public-delivery-page td,
html.epdz-public-delivery-page th {
  word-break: break-word;
}

html.epdz-public-invoice-page .key,
html.epdz-public-delivery-page .key,
html.epdz-public-customer-page .key,
html.epdz-public-invoice-page code,
html.epdz-public-delivery-page code,
html.epdz-public-customer-page code {
  word-break: break-all;
  white-space: normal;
}

/* Admin delivery page */
html.epdz-admin-delivery-page body {
  background: #eef6ff !important;
  overflow-x: hidden;
}

html.epdz-admin-delivery-page main,
html.epdz-admin-delivery-page .container,
html.epdz-admin-delivery-page .max-w-7xl,
html.epdz-admin-delivery-page .max-w-6xl,
html.epdz-admin-delivery-page .max-w-5xl {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html.epdz-admin-delivery-page textarea {
  width: 100% !important;
  min-height: 260px !important;
  line-height: 1.6 !important;
  font-size: 15px !important;
  direction: auto;
  resize: vertical;
  white-space: pre-wrap;
}

html.epdz-admin-delivery-page iframe,
html.epdz-admin-delivery-page .email-preview,
html.epdz-admin-delivery-page [class*="email"] iframe {
  width: 100% !important;
  min-height: 560px !important;
  border-radius: 18px !important;
}

html.epdz-admin-delivery-page pre,
html.epdz-admin-delivery-page code {
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

html.epdz-admin-delivery-page .v31e5-copy-message,
html.epdz-admin-delivery-page button.v31e5-copy-message,
html.epdz-admin-delivery-page a.v31e5-copy-message {
  background: #eef4ff !important;
  color: #061633 !important;
  border: 1px solid #c9dcff !important;
}

html.epdz-admin-delivery-page .v31e5-open-whatsapp,
html.epdz-admin-delivery-page button.v31e5-open-whatsapp,
html.epdz-admin-delivery-page a.v31e5-open-whatsapp {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
}

/* Mobile */
@media (max-width: 768px) {
  html.epdz-admin-delivery-page main,
  html.epdz-public-customer-page main,
  html.epdz-public-delivery-page main,
  html.epdz-public-invoice-page main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html.epdz-admin-delivery-page textarea {
    min-height: 340px !important;
    font-size: 14px !important;
  }

  html.epdz-public-customer-page a,
  html.epdz-public-delivery-page a,
  html.epdz-public-invoice-page a,
  html.epdz-public-customer-page button,
  html.epdz-public-delivery-page button,
  html.epdz-public-invoice-page button {
    width: 100%;
  }
}

/* Print invoice clean */
@media print {
  nav,
  header,
  .no-print,
  .top-actions {
    display: none !important;
  }

  body {
    background: #fff !important;
  }
}
