
.bddc-beer-calculator {
  width: 100%;
  max-width: 1108px;
  margin: 0 auto 26px auto;
  padding: 0;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
}

.bddc-beer-calculator,
.bddc-beer-calculator * {
  box-sizing: border-box;
}

.bddc-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  column-gap: 28px;
  align-items: start;
  margin: 0 0 30px 0;
}

.bddc-hero-text h2 {
  margin: 0 0 12px 0;
  color: #111827;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.2px;
}

.bddc-hero-text p {
  margin: 0;
  max-width: 820px;
  color: #334155;
  font-size: 22px;
  line-height: 1.85;
  font-weight: 400;
}

.bddc-top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 14px;
}

.bddc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 67px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  appearance: none;
}

.bddc-btn:hover,
.bddc-btn:focus {
  transform: translateY(-1px);
  outline: none;
}

.bddc-clear {
  min-width: 116px;
  background: #f3f6fb;
  color: #0f172a !important;
  border-color: #e8eef7;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
}

.bddc-clear:hover,
.bddc-clear:focus {
  background: #eaf0f8;
  color: #0f172a !important;
}

.bddc-print {
  min-width: 186px;
  background: #1151d3;
  color: #ffffff !important;
  border-color: #1151d3;
  box-shadow: 0 3px 6px rgba(17, 81, 211, 0.35);
}

.bddc-print:hover,
.bddc-print:focus {
  background: #0b45bd;
  color: #ffffff !important;
}

.bddc-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  column-gap: 18px;
  align-items: end;
  margin: 0 0 24px 0;
}

.bddc-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  column-gap: 18px;
  align-items: end;
}

.bddc-input-grid label {
  display: block;
  margin: 0;
}

.bddc-input-grid span {
  display: block;
  margin: 0 0 13px 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.bddc-input-grid input,
.bddc-table input[type="number"] {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 11px;
  background: #ffffff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

.bddc-input-grid input {
  height: 82px;
  padding: 0 17px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.8px;
}

.bddc-input-grid input::placeholder {
  color: #555b66;
  opacity: 1;
  text-transform: uppercase;
}

.bddc-input-grid input:focus,
.bddc-table input[type="number"]:focus {
  border-color: #1151d3;
  box-shadow: 0 0 0 3px rgba(17, 81, 211, 0.11);
}

.bddc-summary-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 13px;
  align-items: stretch;
}

.bddc-summary-box {
  min-height: 194px;
  padding: 15px 8px;
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.bddc-summary-box strong {
  display: block;
  margin: 0 0 2px 0;
  color: #111827;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.bddc-summary-box span {
  display: block;
  color: #334155;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.bddc-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  margin: 0 0 22px 0;
}

.bddc-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: #ffffff;
  color: #111827;
  table-layout: auto;
}

.bddc-table th,
.bddc-table td {
  border: 1px solid #d5dce8;
  padding: 8px 9px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.35;
}

.bddc-table th {
  background: #1151d3;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.bddc-table tbody tr:nth-child(even) {
  background: #f7faff;
}

.bddc-table tbody tr.bddc-selected-row {
  background: #eef6ff;
}

.bddc-brand-name-cell {
  min-width: 290px;
  font-weight: 600;
}

.bddc-center-cell {
  text-align: center !important;
}

.bddc-number-cell,
.bddc-duty-cell,
.bddc-total-cell {
  text-align: right !important;
  white-space: nowrap;
}

.bddc-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #1151d3;
}

.bddc-table input[type="number"] {
  min-width: 76px;
  max-width: 92px;
  min-height: 34px;
  padding: 5px 7px;
  text-align: right;
  font-size: 13px;
}

.bddc-final-chart {
  margin-top: 18px;
}

.bddc-final-chart h3 {
  margin: 0 0 9px 0;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.bddc-final-meta {
  margin: 0 0 11px 0;
  font-size: 14px;
  color: #111827;
}

.bddc-final-table {
  min-width: 1000px;
}

.bddc-final-table tfoot th {
  background: #f1f5f9;
  color: #111827;
  font-weight: 800;
}

.bddc-empty {
  text-align: center !important;
  color: #64748b;
  padding: 14px 8px !important;
}

.bddc-hidden-by-search {
  display: none !important;
}

@media (max-width: 980px) {
  .bddc-hero-row,
  .bddc-control-row {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .bddc-top-actions {
    flex-direction: row;
    padding-top: 0;
  }
  .bddc-summary-boxes {
    max-width: 260px;
  }
}

@media (max-width: 780px) {
  .bddc-beer-calculator {
    max-width: 100%;
  }
  .bddc-hero-text h2 {
    font-size: 30px;
  }
  .bddc-hero-text p {
    font-size: 17px;
    line-height: 1.65;
  }
  .bddc-btn {
    min-height: 52px;
    font-size: 16px;
  }
  .bddc-input-grid {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .bddc-input-grid input {
    height: 60px;
    font-size: 15px;
  }
  .bddc-input-grid span {
    font-size: 18px;
  }
  .bddc-summary-boxes {
    max-width: none;
  }
  .bddc-summary-box {
    min-height: 115px;
  }
  .bddc-table th,
  .bddc-table td {
    font-size: 12px;
    padding: 6px;
  }
}


/* Print-screen view shown after clicking Print Final Chart */
html.bddc-print-screen-open,
body.bddc-print-screen-open {
  background: #ffffff !important;
  overflow: auto !important;
}

body.bddc-print-screen-open > :not(.bddc-print-screen) {
  display: none !important;
}

.bddc-print-screen,
.bddc-print-screen * {
  box-sizing: border-box;
}

.bddc-print-screen {
  display: block !important;
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 21px 24px 28px 24px !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.bddc-print-action-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
}

.bddc-print-screen-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 59px !important;
  padding: 0 23px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #1151d3 !important;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  appearance: none !important;
}

.bddc-print-screen-btn:hover,
.bddc-print-screen-btn:focus {
  background: #0b45bd !important;
  color: #ffffff !important;
  text-decoration: none !important;
  outline: none !important;
}

.bddc-print-again {
  min-width: 163px !important;
}

.bddc-print-back {
  min-width: 99px !important;
}

.bddc-print-home {
  min-width: 107px !important;
}

.bddc-print-chart-shell {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bddc-print-chart-shell .bddc-final-chart {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 26px 28px 27px 28px !important;
  border: 3px solid #1151d3 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #111827 !important;
  overflow-x: auto !important;
}

.bddc-print-chart-shell .bddc-final-chart h3 {
  margin: 0 0 12px 0 !important;
  color: #1151d3 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.4px !important;
  text-align: left !important;
}

.bddc-print-chart-shell .bddc-final-meta {
  margin: 0 0 28px 0 !important;
  color: #243447 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 1.2px !important;
  text-align: left !important;
}

.bddc-print-chart-shell .bddc-final-meta strong {
  color: #1151d3 !important;
  font-weight: 800 !important;
}

.bddc-print-chart-shell .bddc-meta-separator {
  color: #243447 !important;
}

.bddc-print-chart-shell .bddc-table-wrap {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  background: #ffffff !important;
  border: 0 !important;
}

.bddc-print-chart-shell .bddc-final-table {
  width: 100% !important;
  min-width: 1250px !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
  margin: 0 !important;
  background: #ffffff !important;
}

.bddc-print-chart-shell .bddc-final-table th,
.bddc-print-chart-shell .bddc-final-table td {
  border: 1px solid #c7d4f4 !important;
  padding: 12px 13px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 21px !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
  text-align: left !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

.bddc-print-chart-shell .bddc-final-table th {
  background: #1151d3 !important;
  color: #ffffff !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

.bddc-print-chart-shell .bddc-final-table td.bddc-empty {
  color: #000000 !important;
  font-size: 21px !important;
  text-align: left !important;
  padding: 12px 13px !important;
}

.bddc-print-chart-shell .bddc-final-table tfoot th {
  background: #eef4ff !important;
  color: #1151d3 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  text-align: right !important;
}

.bddc-print-chart-shell .bddc-final-table tfoot th:last-child,
.bddc-print-chart-shell .bddc-final-table .bddc-grand-total-bottom {
  text-align: right !important;
}

.bddc-print-chart-shell .bddc-number-cell,
.bddc-print-chart-shell .bddc-duty-cell,
.bddc-print-chart-shell .bddc-total-cell {
  text-align: right !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .bddc-print-screen {
    padding: 16px 12px 20px 12px !important;
  }
  .bddc-print-action-bar {
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 22px !important;
  }
  .bddc-print-screen-btn {
    min-height: 50px !important;
    font-size: 18px !important;
  }
  .bddc-print-chart-shell .bddc-final-chart {
    padding: 18px 14px !important;
  }
  .bddc-print-chart-shell .bddc-final-chart h3 {
    font-size: 24px !important;
  }
  .bddc-print-chart-shell .bddc-final-meta {
    font-size: 18px !important;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 8mm;
  }

  html,
  body {
    background: #ffffff !important;
  }

  html.bddc-actual-print-mode,
  body.bddc-actual-print-mode {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body.bddc-actual-print-mode > :not(.bddc-print-screen) {
    display: none !important;
  }

  body.bddc-actual-print-mode .bddc-print-screen {
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-action-bar {
    display: none !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-chart {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8mm 7mm !important;
    border: 2px solid #1151d3 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: visible !important;
    box-shadow: none !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-chart h3 {
    margin: 0 0 4mm 0 !important;
    color: #1151d3 !important;
    font-size: 17pt !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-align: left !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-meta {
    margin: 0 0 6mm 0 !important;
    color: #243447 !important;
    font-size: 13pt !important;
    line-height: 1.2 !important;
    text-align: left !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-meta strong {
    color: #1151d3 !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-table-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    page-break-before: avoid !important;
    break-before: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    margin: 0 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table thead {
    display: table-header-group !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table tfoot {
    display: table-row-group !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th,
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td {
    border: 1px solid #a8bde8 !important;
    padding: 3.2pt 4pt !important;
    font-size: 8.2pt !important;
    line-height: 1.15 !important;
    vertical-align: middle !important;
    color: #0f172a !important;
    background: #ffffff !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    box-shadow: none !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th {
    background: #1151d3 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table tfoot th {
    background: #eef4ff !important;
    color: #1151d3 !important;
    font-weight: 800 !important;
    text-align: right !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(1),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(1) {
    width: 44px !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(2),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(2) {
    width: 23% !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(3),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(3) {
    width: 9% !important;
  }

  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(4),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(4),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(5),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(5),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(6),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(6),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(7),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(7),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(8),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(8),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table th:nth-child(9),
  body.bddc-actual-print-mode .bddc-print-chart-shell .bddc-final-table td:nth-child(9) {
    width: auto !important;
  }
}

.bddc-print-screen .bddc-print-chart-shell,
.bddc-print-screen .bddc-print-chart-shell * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

@media print {
  body.bddc-print-screen-open .bddc-print-action-bar {
    display: none !important;
  }
}
