/* EasyPrintDz V31E6 — public invoice/customer/delivery polish only */

html.epdz-public-invoice-v31e6 body,
html.epdz-public-customer-v31e6 body,
html.epdz-public-delivery-v31e6 body,
html.epdz-admin-delivery-v31e6 body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 34%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 52%, #ecfeff 100%) !important;
  color: #061633 !important;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
}

/* Top public header */
html.epdz-public-invoice-v31e6 body > header,
html.epdz-public-customer-v31e6 body > header,
html.epdz-public-delivery-v31e6 body > header {
  min-height: 70px !important;
  padding: 10px 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(148, 163, 184, .25) !important;
  background: rgba(255, 255, 255, .58) !important;
  backdrop-filter: blur(8px);
}

html.epdz-public-invoice-v31e6 body > header img,
html.epdz-public-customer-v31e6 body > header img,
html.epdz-public-delivery-v31e6 body > header img {
  max-height: 56px !important;
  width: auto !important;
}

html.epdz-public-invoice-v31e6 body > header *:not(img),
html.epdz-public-customer-v31e6 body > header *:not(img),
html.epdz-public-delivery-v31e6 body > header *:not(img) {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

/* Main container */
html.epdz-public-invoice-v31e6 main,
html.epdz-public-customer-v31e6 main,
html.epdz-public-delivery-v31e6 main,
html.epdz-public-invoice-v31e6 .container,
html.epdz-public-customer-v31e6 .container,
html.epdz-public-delivery-v31e6 .container {
  max-width: 1060px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html.epdz-public-invoice-v31e6 main,
html.epdz-public-customer-v31e6 main,
html.epdz-public-delivery-v31e6 main {
  padding-top: 34px !important;
  padding-bottom: 38px !important;
}

/* Public invoice cards */
html.epdz-public-invoice-v31e6 section,
html.epdz-public-invoice-v31e6 .card,
html.epdz-public-invoice-v31e6 [class*="card"],
html.epdz-public-customer-v31e6 section,
html.epdz-public-customer-v31e6 .card,
html.epdz-public-delivery-v31e6 section,
html.epdz-public-delivery-v31e6 .card {
  border-radius: 22px !important;
  border: 1px solid rgba(147, 197, 253, .55) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06) !important;
}

/* Invoice hero */
html.epdz-public-invoice-v31e6 main > *:first-child,
html.epdz-public-invoice-v31e6 .invoice-header,
html.epdz-public-invoice-v31e6 [class*="invoice"]:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 56%, #ecfeff 100%) !important;
}

/* Typography */
html.epdz-public-invoice-v31e6 h1,
html.epdz-public-customer-v31e6 h1,
html.epdz-public-delivery-v31e6 h1 {
  font-size: clamp(30px, 3vw, 44px) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}

html.epdz-public-invoice-v31e6 h2,
html.epdz-public-customer-v31e6 h2,
html.epdz-public-delivery-v31e6 h2 {
  font-size: clamp(20px, 2vw, 28px) !important;
  letter-spacing: -0.025em !important;
}

/* Customer / items / keys spacing */
html.epdz-public-invoice-v31e6 p,
html.epdz-public-invoice-v31e6 td,
html.epdz-public-invoice-v31e6 th,
html.epdz-public-customer-v31e6 p,
html.epdz-public-delivery-v31e6 p {
  font-size: 16px !important;
  line-height: 1.65 !important;
}

html.epdz-public-invoice-v31e6 table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

html.epdz-public-invoice-v31e6 th {
  background: #f1f7ff !important;
  color: #0f2a56 !important;
  font-weight: 900 !important;
}

html.epdz-public-invoice-v31e6 td,
html.epdz-public-invoice-v31e6 th {
  padding: 14px 18px !important;
  border-color: #dbeafe !important;
}

html.epdz-public-invoice-v31e6 code,
html.epdz-public-invoice-v31e6 pre,
html.epdz-public-customer-v31e6 code,
html.epdz-public-delivery-v31e6 code {
  display: block !important;
  width: 100% !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: #eef6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #0b3b87 !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
  white-space: normal !important;
  word-break: break-all !important;
}

/* Buttons */
html.epdz-public-customer-v31e6 a,
html.epdz-public-delivery-v31e6 a,
html.epdz-public-invoice-v31e6 a,
html.epdz-public-customer-v31e6 button,
html.epdz-public-delivery-v31e6 button,
html.epdz-public-invoice-v31e6 button {
  border-radius: 14px !important;
  font-weight: 900 !important;
  min-height: 46px !important;
}

/* Admin delivery */
html.epdz-admin-delivery-v31e6 main,
html.epdz-admin-delivery-v31e6 .container,
html.epdz-admin-delivery-v31e6 .max-w-7xl,
html.epdz-admin-delivery-v31e6 .max-w-6xl {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html.epdz-admin-delivery-v31e6 textarea {
  min-height: 360px !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  padding: 18px !important;
  border-radius: 18px !important;
  direction: auto;
}

html.epdz-admin-delivery-v31e6 iframe,
html.epdz-admin-delivery-v31e6 .email-preview,
html.epdz-admin-delivery-v31e6 [class*="email"] iframe {
  min-height: 640px !important;
  border-radius: 22px !important;
}

/* Hide awkward scrollbar look where possible */
html.epdz-admin-delivery-v31e6 textarea::-webkit-scrollbar,
html.epdz-admin-delivery-v31e6 iframe::-webkit-scrollbar {
  width: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  html.epdz-public-invoice-v31e6 body > header,
  html.epdz-public-customer-v31e6 body > header,
  html.epdz-public-delivery-v31e6 body > header {
    padding: 8px 12px !important;
  }

  html.epdz-public-invoice-v31e6 main,
  html.epdz-public-customer-v31e6 main,
  html.epdz-public-delivery-v31e6 main,
  html.epdz-admin-delivery-v31e6 main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

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

/* Print clean invoice */
@media print {
  body {
    background: #fff !important;
  }

  header,
  nav,
  .no-print,
  .top-actions {
    display: none !important;
  }

  main,
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}
