/* TaxTami Customs Tariff Tool. Sits on css/calculators.css (cards, buttons, hero).
   Generated page: customs-tariff-tool.html. Source of this file: work/tariff-tool/site/tariff-tool.css */

.tt-tariff { max-width: 1180px; margin: 0 auto; color: #2a3530; }
.tt-tariff-meta { color: #e6f1ec; font-size: 13px; max-width: 760px; margin: 14px auto 0; line-height: 1.5; opacity: .9; }

.tt-tariff-notice { background: #fff8e6; border-left: 4px solid #c8a13a; padding: 12px 16px; margin: 0 0 20px; border-radius: 6px; font-size: 14px; line-height: 1.55; }
.tt-tariff-notice a { color: #1a5038; font-weight: 600; text-decoration: underline; }

.tt-tariff-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.tt-tariff-tabs button { border: 1px solid #d9e2dd; background: #ffffff; color: #1a5038; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tt-tariff-tabs button:hover { background: #f0f7f3; }
.tt-tariff-tabs button[aria-selected="true"] { background: #2c724f; color: #ffffff; border-color: #2c724f; }
.tt-tariff-tabs button:focus-visible, .tt-tariff .chap button:focus-visible, .tt-tariff tr.row:focus-visible { outline: 3px solid rgba(44,114,79,.35); outline-offset: 2px; }

.tt-tariff .tt-pane { display: none; }
.tt-tariff .tt-pane.on { display: block; }

.tt-tariff label { display: block; color: #1a5038; font-weight: 600; font-size: 13.5px; margin: 10px 0 6px; line-height: 1.35; }
.tt-tariff input, .tt-tariff select { width: 100%; padding: 11px 14px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 15px; color: #2a3530; background: #ffffff; font-family: inherit; box-sizing: border-box; height: auto; }
.tt-tariff input:focus, .tt-tariff select:focus { outline: none; border-color: #2c724f; box-shadow: 0 0 0 3px rgba(44,114,79,.12); }
.tt-tariff .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 16px; align-items: end; }

.tt-tariff .tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt-tariff table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.tt-tariff th, .tt-tariff td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e6ebe8; vertical-align: top; line-height: 1.5; }
.tt-tariff th { color: #6b7670; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: #f8faf9; }
.tt-tariff td.r, .tt-tariff th.r { text-align: right; white-space: nowrap; }
.tt-tariff tr.row { cursor: pointer; }
.tt-tariff tr.row:hover { background: #f0f7f3; }
.tt-tariff tr.gone td { color: #8a8f8c; }
.tt-tariff tr.gone td.code { text-decoration: line-through; }
.tt-tariff .code { font-weight: 700; color: #1a5038; white-space: nowrap; }
.tt-tariff .steps td:first-child { width: 64%; }
.tt-tariff .total td { font-weight: 800; border-top: 2px solid #2c724f; color: #1a5038; font-size: 15px; }

.tt-tariff .tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.tt-tariff .tag.ok { background: #e3f1ea; color: #2c724f; }
.tt-tariff .tag.warn { background: #fff8e6; color: #8a6a10; }
.tt-tariff .tag.flag { background: #fdecec; color: #a33333; }

.tt-tariff .mute { color: #6b7670; font-size: 13px; line-height: 1.55; }
.tt-tariff ul { margin: 8px 0 0 18px; padding: 0; }
.tt-tariff ul li { margin-bottom: 6px; list-style: disc; }
.tt-tariff h3 { font-size: 16px; margin: 18px 0 8px; color: #1a5038; font-weight: 700; }
.tt-tariff .calc-card h2 { margin-bottom: 12px; }
.tt-tariff .calc-btn.secondary { padding: 8px 16px; font-size: 13.5px; }
.tt-tariff .tt-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.tt-tariff .tt-actions .calc-btn { padding: 13px 28px; font-size: 15px; }

.tt-tariff .chap { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.tt-tariff .chap button { border: 1px solid #e6ebe8; background: #ffffff; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 12.5px; color: #6b7670; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.tt-tariff .chap button:hover { border-color: #2c724f; background: #f0f7f3; }
.tt-tariff .chap button b { display: block; color: #1a5038; font-size: 19px; }

/* the site's phone styles turn table rows into flex blocks; a tariff schedule has to stay a table */
.tt-tariff table thead { display: table-header-group !important; }
.tt-tariff table tbody { display: table-row-group !important; }
.tt-tariff table tr { display: table-row !important; }
.tt-tariff table th, .tt-tariff table td { display: table-cell !important; width: auto; min-width: 0; }

@media (max-width: 640px) {
  /* results on a phone: code, description, general rate. Unit and M.F.N. stay in the line detail and on wider screens */
  .tt-tariff .tt-pane[data-pane="search"] tr > th:nth-child(3), .tt-tariff .tt-pane[data-pane="search"] tr > td:nth-child(3),
  .tt-tariff .tt-pane[data-pane="search"] tr > th:nth-child(5), .tt-tariff .tt-pane[data-pane="search"] tr > td:nth-child(5) { display: none !important; }
  .tt-tariff .tt-pane[data-pane="law"] table { min-width: 560px; }
  .tt-tariff .tag { margin-left: 0; margin-right: 4px; }
  .tt-tariff .calc-card { padding: 20px 16px 18px; }
  .tt-tariff th, .tt-tariff td { padding: 8px 8px; font-size: 13px; }
  .tt-tariff-tabs button { padding: 9px 14px; font-size: 13px; }
  .tt-tariff .steps td:first-child { width: auto; }
}
