/* v916 — Price Lists table polish
   Fixes after visual check:
   - compact the fee matrix to the left instead of full-width stretching
   - restore clear grid/border lines
   - increase table font size for readability
   - move Emergency Request Form after Weekend / Holiday in HTML
   - remove the explanatory note boxes below the table */

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-wrap-v787DN{
  width:fit-content !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:auto !important;
  overflow-x:auto !important;
  border:1px solid #cfd8e6 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN{
  width:920px !important;
  max-width:920px !important;
  min-width:920px !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
  border-spacing:0 !important;
  background:#fff !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN th,
html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN td{
  border:1px solid #d5deeb !important;
  padding:11px 10px !important;
  font-size:14px !important;
  line-height:1.32 !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  color:#061948 !important;
  background:#fff !important;
  vertical-align:middle !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN thead th{
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:850 !important;
  text-align:center !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN thead th:first-child,
html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN tbody th.fees-matrix-processing-v787EP{
  width:250px !important;
  text-align:left !important;
  border-right:1px solid #d5deeb !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN thead th:nth-child(n+2),
html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN tbody td{
  width:167px !important;
  text-align:center !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN tbody th,
html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN tbody td{
  height:48px !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-total-v787DN{
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-matrix-quote-v787DN{
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:850 !important;
  color:#e11d2e !important;
}

html body.price-table-polish-v916 #visa-service-fees .fees-inline-notes-v787DN{
  display:none !important;
}

/* The surrounding content should follow the compact matrix width. */
html body.price-table-polish-v916 #visa-service-fees .nationality-fee-note-v598U,
html body.price-table-polish-v916 #visa-service-fees .fees-consolidated-summary-v787DN{
  max-width:920px !important;
  margin-left:0 !important;
  margin-right:auto !important;
}

/* Remove accidental oversized fee-checker whitespace from older rail CSS. */
html body.price-table-polish-v916 .fees-check-section{
  min-height:0 !important;
  padding-top:24px !important;
  padding-bottom:24px !important;
}

html body.price-table-polish-v916 .fees-check-section > .container.grid.two{
  max-width:560px !important;
  margin-left:0 !important;
  margin-right:auto !important;
}

html body.price-table-polish-v916 .fees-check-section .fee-card[data-fee-checker]{
  max-width:560px !important;
  margin-left:0 !important;
  margin-right:auto !important;
}

/* Keep the table readable on smaller widths by allowing horizontal scroll, not by shrinking text too far. */
@media (max-width:760px){
  html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN{
    min-width:860px !important;
    width:860px !important;
    max-width:none !important;
  }
  html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN th,
  html body.price-table-polish-v916 #visa-service-fees .fees-matrix-v787DN td{
    font-size:13px !important;
    padding:10px 8px !important;
  }
}
