/* v951 — Price Lists main fee table compact width/readability tuning
   User request:
   - make main eVisa fee table a little wider horizontally
   - reduce red price number size a little
   - reduce row/table vertical height for easier scanning
*/

body.price-fee-table-compact-v951{
  --price-table-max-v951: 1040px;
}

/* Widen the main price matrix within the left content lane without crossing sidebar */
body.price-fee-table-compact-v951 .price-matrix-wrap-v929,
body.price-fee-table-compact-v951 .price-matrix-scroll-v929,
body.price-fee-table-compact-v951 .price-list-table-wrap,
body.price-fee-table-compact-v951 .price-table-wrap-v929,
body.price-fee-table-compact-v951 [class*="price-matrix"],
body.price-fee-table-compact-v951 [class*="fee-table"]{
  max-width: var(--price-table-max-v951) !important;
}

/* Target the main eVisa service fee table */
body.price-fee-table-compact-v951 table.price-matrix-v929,
body.price-fee-table-compact-v951 .price-matrix-v929 table,
body.price-fee-table-compact-v951 .price-lists-main-table-v929,
body.price-fee-table-compact-v951 table[class*="price"]{
  width: 100% !important;
  max-width: var(--price-table-max-v951) !important;
  table-layout: fixed !important;
}

/* Keep first column readable but allow the 4 price columns to breathe */
body.price-fee-table-compact-v951 table.price-matrix-v929 col:first-child,
body.price-fee-table-compact-v951 .price-matrix-v929 table col:first-child{
  width: 28% !important;
}

body.price-fee-table-compact-v951 table.price-matrix-v929 col:not(:first-child),
body.price-fee-table-compact-v951 .price-matrix-v929 table col:not(:first-child){
  width: 18% !important;
}

/* Compact vertical rhythm */
body.price-fee-table-compact-v951 table.price-matrix-v929 th,
body.price-fee-table-compact-v951 table.price-matrix-v929 td,
body.price-fee-table-compact-v951 .price-matrix-v929 table th,
body.price-fee-table-compact-v951 .price-matrix-v929 table td,
body.price-fee-table-compact-v951 table[class*="price"] th,
body.price-fee-table-compact-v951 table[class*="price"] td{
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  line-height: 1.28 !important;
}

/* Header a little more compact but still strong */
body.price-fee-table-compact-v951 table.price-matrix-v929 thead th,
body.price-fee-table-compact-v951 .price-matrix-v929 table thead th,
body.price-fee-table-compact-v951 table[class*="price"] thead th{
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
}

/* First column text size balanced */
body.price-fee-table-compact-v951 table.price-matrix-v929 tbody th,
body.price-fee-table-compact-v951 .price-matrix-v929 table tbody th,
body.price-fee-table-compact-v951 table[class*="price"] tbody th{
  font-size: 23px !important;
  line-height: 1.28 !important;
}

/* Red price values: slightly smaller than current oversized setting */
body.price-fee-table-compact-v951 table.price-matrix-v929 tbody td,
body.price-fee-table-compact-v951 .price-matrix-v929 table tbody td,
body.price-fee-table-compact-v951 table[class*="price"] tbody td{
  font-size: 26px !important;
  line-height: 1.2 !important;
}

body.price-fee-table-compact-v951 table.price-matrix-v929 tbody td strong,
body.price-fee-table-compact-v951 .price-matrix-v929 table tbody td strong,
body.price-fee-table-compact-v951 table[class*="price"] tbody td strong,
body.price-fee-table-compact-v951 table.price-matrix-v929 .price-value,
body.price-fee-table-compact-v951 .price-matrix-v929 .price-value{
  font-size: 26px !important;
  line-height: 1.2 !important;
}

/* Reduce excessive row height caused by older table theme rules */
body.price-fee-table-compact-v951 table.price-matrix-v929 tr,
body.price-fee-table-compact-v951 .price-matrix-v929 table tr,
body.price-fee-table-compact-v951 table[class*="price"] tr{
  height: auto !important;
  min-height: 0 !important;
}

/* Desktop lane: allow main content a bit more width, while keeping sidebar safe */
@media (min-width: 1060px){
  body.price-fee-table-compact-v951 .price-lists-main-v889,
  body.price-fee-table-compact-v951 .price-main-column-v889,
  body.price-fee-table-compact-v951 .price-lists-content-v889,
  body.price-fee-table-compact-v951 .price-article-main-v889,
  body.price-fee-table-compact-v951 main .price-main{
    max-width: 1060px !important;
  }
}

/* Mid screens: prevent overflow */
@media (max-width: 1180px){
  body.price-fee-table-compact-v951{
    --price-table-max-v951: 100%;
  }

  body.price-fee-table-compact-v951 table.price-matrix-v929 thead th,
  body.price-fee-table-compact-v951 .price-matrix-v929 table thead th,
  body.price-fee-table-compact-v951 table[class*="price"] thead th{
    font-size: 21px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  body.price-fee-table-compact-v951 table.price-matrix-v929 tbody th,
  body.price-fee-table-compact-v951 .price-matrix-v929 table tbody th,
  body.price-fee-table-compact-v951 table[class*="price"] tbody th{
    font-size: 20px !important;
  }

  body.price-fee-table-compact-v951 table.price-matrix-v929 tbody td,
  body.price-fee-table-compact-v951 .price-matrix-v929 table tbody td,
  body.price-fee-table-compact-v951 table[class*="price"] tbody td,
  body.price-fee-table-compact-v951 table.price-matrix-v929 tbody td strong,
  body.price-fee-table-compact-v951 .price-matrix-v929 table tbody td strong,
  body.price-fee-table-compact-v951 table[class*="price"] tbody td strong{
    font-size: 23px !important;
  }
}

/* Mobile/tablet: keep readable and compact */
@media (max-width: 760px){
  body.price-fee-table-compact-v951 table.price-matrix-v929 th,
  body.price-fee-table-compact-v951 table.price-matrix-v929 td,
  body.price-fee-table-compact-v951 .price-matrix-v929 table th,
  body.price-fee-table-compact-v951 .price-matrix-v929 table td,
  body.price-fee-table-compact-v951 table[class*="price"] th,
  body.price-fee-table-compact-v951 table[class*="price"] td{
    padding: 14px 16px !important;
  }

  body.price-fee-table-compact-v951 table.price-matrix-v929 thead th,
  body.price-fee-table-compact-v951 .price-matrix-v929 table thead th,
  body.price-fee-table-compact-v951 table[class*="price"] thead th{
    font-size: 18px !important;
  }

  body.price-fee-table-compact-v951 table.price-matrix-v929 tbody th,
  body.price-fee-table-compact-v951 .price-matrix-v929 table tbody th,
  body.price-fee-table-compact-v951 table[class*="price"] tbody th{
    font-size: 17px !important;
  }

  body.price-fee-table-compact-v951 table.price-matrix-v929 tbody td,
  body.price-fee-table-compact-v951 .price-matrix-v929 table tbody td,
  body.price-fee-table-compact-v951 table[class*="price"] tbody td,
  body.price-fee-table-compact-v951 table.price-matrix-v929 tbody td strong,
  body.price-fee-table-compact-v951 .price-matrix-v929 table tbody td strong,
  body.price-fee-table-compact-v951 table[class*="price"] tbody td strong{
    font-size: 19px !important;
  }
}
