/* Calculators: calculator, percentages, GST, paint, fuel, towing */
.tet-tool.cx { max-width: 1100px; }
.cx .tet-panel { padding: 20px; }
.cx h3 { font-size: 17px; margin-bottom: 12px; }
.cx .tet-field { margin-bottom: 10px; }
.cx .tet-field label { font-size: 13px; }
.cx input[type="text"], .cx input[type="number"], .cx select { min-height: 44px; padding: 8px 12px; font-size: 16px; width: 100%; font: inherit; color: var(--c-ink); background: var(--c-white); border: 1px solid var(--c-line); border-radius: 10px; outline: none; }
.cx input:focus, .cx select:focus { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(31, 94, 75, .15); }
.cx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-tabs button { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-white); font: inherit; font-size: 15px; font-weight: 700; color: var(--c-ink); cursor: pointer; }
.cx-tabs button.is-on { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.cx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cx-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cx-help { font-size: 12.5px; opacity: .85; margin-top: 2px; line-height: 1.4; }
.cx-unit { position: relative; }
.cx-unit input { padding-right: 52px !important; }
.cx-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--c-text); pointer-events: none; }

/* Basic calculator */
.cx-calc-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.cx-calc { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 22px; padding: 16px; }
.cx-screen { background: #F4F1EA; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; text-align: right; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cx-expr { width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: right; font-size: 18px !important; color: var(--c-text) !important; min-height: 30px !important; padding: 0 !important; font-variant-numeric: tabular-nums; }
.cx-result { font-size: 38px; font-weight: 700; color: var(--c-ink); line-height: 1.15; word-break: break-all; font-variant-numeric: tabular-nums; min-height: 44px; }
.cx-result.is-err { font-size: 18px; color: var(--c-danger); font-weight: 600; }
.cx-result.is-preview { color: var(--c-text); opacity: .6; font-size: 26px; }
.cx-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cx-keys.sci { grid-template-columns: repeat(5, 1fr); margin-bottom: 8px; }
.cx-key { min-height: 56px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-white); font: inherit; font-size: 20px; font-weight: 600; color: var(--c-ink); cursor: pointer; transition: background .1s, transform .05s; -webkit-tap-highlight-color: transparent; }
.cx-key:hover { background: var(--c-sand); }
.cx-key:active { transform: scale(.96); }
.cx-key.op { background: var(--c-sage); color: var(--c-hover); }
.cx-key.fn { font-size: 15px; min-height: 46px; background: #FBFAF7; }
.cx-key.eq { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.cx-key.eq:hover { background: var(--c-hover); }
.cx-key.clr { color: var(--c-danger); }
.cx-key.on { background: var(--c-ink); color: #fff; }
.cx-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; }
.cx-hist { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.cx-hist li { border-bottom: 1px solid var(--c-line); }
.cx-hist button { width: 100%; text-align: right; background: none; border: 0; padding: 10px 6px; font: inherit; cursor: pointer; border-radius: 8px; }
.cx-hist button:hover { background: var(--c-sand); }
.cx-hist small { display: block; color: var(--c-text); font-size: 13px; }
.cx-hist b { font-size: 18px; color: var(--c-ink); font-variant-numeric: tabular-nums; }

/* Percentage and result cards */
.cx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cx-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; padding: 18px; }
.cx-card h3 { font-size: 16px; margin: 0 0 12px; }
.cx-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; color: var(--c-ink); }
.cx-sentence input { width: 120px !important; flex: 0 0 auto; text-align: right; }
.cx-sentence .cx-out { min-width: 90px; min-height: 44px; padding: 8px 12px; border-radius: 10px; background: var(--c-sage); color: var(--c-hover); font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.cx-work { margin: 12px 0 0; font-size: 13.5px; color: var(--c-text); background: var(--c-sand); border-radius: 10px; padding: 8px 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.cx-work:empty { display: none; }
.cx-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.cx-stat { background: var(--c-sand); border-radius: 12px; padding: 12px 14px; }
.cx-stat b { display: block; font-size: 24px; line-height: 1.15; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cx-stat span { font-size: 13px; }
.cx-stat.hero { background: var(--c-accent); color: #fff; }
.cx-stat.hero b { color: #fff; font-size: 30px; }
.cx-err { color: var(--c-danger); font-weight: 700; font-size: 14px; margin: 8px 0 0; }

/* Towing meters */
.cx-meter { margin: 0 0 14px; }
.cx-meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.cx-meter-top strong { color: var(--c-ink); }
.cx-meter-bar { height: 12px; border-radius: 999px; background: #EEE9DF; overflow: hidden; position: relative; }
.cx-meter-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c-accent); transition: width .25s; }
.cx-meter.warn .cx-meter-bar i { background: #D9A21B; }
.cx-meter.over .cx-meter-bar i { background: var(--c-danger); }
.cx-meter-note { font-size: 13px; margin-top: 4px; }
.cx-meter.over .cx-meter-note, .cx-meter.over .cx-meter-top em { color: var(--c-danger); font-weight: 700; }
.cx-meter.warn .cx-meter-note { color: #8A5A00; font-weight: 600; }
.cx-meter-top em { font-style: normal; font-variant-numeric: tabular-nums; }
.cx-verdict { padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 15px; line-height: 1.5; }
.cx-verdict.ok { background: var(--c-sage); color: var(--c-ink); }
.cx-verdict.bad { background: #FCEBEB; color: #7A1712; }
.cx-verdict.warn { background: #FDF3DC; color: #5C3D00; }
.cx-verdict strong { font-size: 17px; display: block; margin-bottom: 2px; }
.cx-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cx-side { position: sticky; top: 24px; }
.cx-room { border: 1px solid var(--c-line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #FCFBF8; position: relative; }
.cx-room-del { position: absolute; top: 8px; right: 8px; border: 0; background: none; font-size: 22px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; color: var(--c-text); }
.cx-room-del:hover { background: var(--c-sand); color: var(--c-danger); }
.cx-room h4 { margin: 0 0 10px; font-size: 15px; color: var(--c-ink); letter-spacing: 0; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

@media (max-width: 860px) {
	.cx-calc-wrap, .cx-layout { grid-template-columns: 1fr; }
	.cx-side { position: static; }
}
@media (max-width: 560px) {
	.cx-two, .cx-three { grid-template-columns: 1fr 1fr; }
	.cx-key { min-height: 60px; }
	.cx-sentence input { width: 100px !important; }
}

.cx-sentence input.is-solved { background: var(--c-sage) !important; border-color: var(--c-accent) !important; }
.cx-sentence input.is-solved::placeholder { color: var(--c-hover); font-weight: 800; opacity: 1; }

/* Business days */
.bd-pill-btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-white); font: inherit; font-size: 14px; font-weight: 700; color: var(--c-ink); cursor: pointer; }
.bd-pill-btn:hover { background: var(--c-sand); }
.bd-pill-btn.is-on { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.bd .cx-chips { gap: 8px; }
.bd input[type="date"] { min-height: 44px; padding: 8px 12px; width: 100%; font: inherit; font-size: 16px; color: var(--c-ink); background: var(--c-white); border: 1px solid var(--c-line); border-radius: 10px; outline: none; }
.bd input[type="date"]:focus { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(31, 94, 75, .15); }
.bd-settings summary { cursor: pointer; list-style: none; margin-bottom: 12px; }
.bd-settings summary::-webkit-details-marker { display: none; }
.bd-settings summary::after { content: '\25BE'; float: right; color: var(--c-text); }
.bd-settings:not([open]) summary { margin-bottom: 0; }
.bd-settings:not([open]) summary::after { content: '\25B8'; }
.bd .cx-stat.hero b { font-size: 26px; }
.bd-skipped { margin-top: 14px; }
.bd-skipped ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.bd-skipped li { padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.bd-skipped li:last-child { border-bottom: 0; }
.bd-skipped b { color: var(--c-ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.bd .cx-verdict { margin: 14px 0 0; }
.bd-table-wrap { overflow-x: auto; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; margin-top: 12px; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.bd-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text); padding: 10px 14px; border-bottom: 1px solid var(--c-line); background: #FCFBF8; }
.bd-table td { padding: 10px 14px; border-bottom: 1px solid var(--c-line); vertical-align: top; color: var(--c-ink); }
.bd-table tr:last-child td { border-bottom: 0; }
.bd-table td small { display: block; font-size: 12.5px; color: var(--c-text); }
.bd-table .bd-date { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.bd-table .bd-tag { text-align: right; white-space: nowrap; }
.bd-table tr.is-past td { opacity: .5; }
.bd-table tr.is-part td, .bd-table tr.is-reg td, .bd-table tr.is-tbc td { color: var(--c-text); }
.bd-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--c-sand); color: var(--c-text); }
.bd .cx-three.bd-add { grid-template-columns: 1fr auto 1fr; align-items: end; }
@media (max-width: 560px) {
	.bd .cx-three.bd-add { grid-template-columns: 1fr 1fr; }
	.bd .cx-three.bd-add > :first-child { grid-column: 1 / -1; }
	.bd-table { font-size: 14px; }
	.bd-table td, .bd-table th { padding: 9px 10px; }
}
.bd .bd-add .bd-pill-btn { min-height: 44px; }
.bd .cx-tabs button { padding: 8px 16px; }
@media (max-width: 860px) { .bd-layout .cx-side { order: -1; } }

/* Pay calculator */
.pc .pc-pay { grid-template-columns: 1.3fr 1fr; }
.pc .tet-check { margin: 8px 0 4px; }
.pc-more { margin-top: 14px; border-top: 1px solid var(--c-line); padding-top: 12px; }
.pc-more summary { cursor: pointer; font-weight: 700; color: var(--c-accent); font-size: 15px; margin-bottom: 10px; }
.pc-show { margin-bottom: 4px; }
.pc-show button { padding: 6px 14px; min-height: 40px; font-size: 14px; }
.pc .cx-stat.hero b { font-size: 32px; }
.pc-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 18px 0 8px; background: var(--c-line); }
.pc-split i, .pc-legend i { display: block; }
.pc-k { background: var(--c-accent); } .pc-t { background: #C9622F; } .pc-m { background: var(--c-wattle); } .pc-h { background: #7A6BB0; } .pc-s { background: #6FA58B; }
.pc-legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.pc-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.pc-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pc-table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 14px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; font-variant-numeric: tabular-nums; }
.pc-table th, .pc-table td { padding: 9px 10px; border-bottom: 1px solid var(--c-line); text-align: right; white-space: nowrap; }
.pc-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text); background: #FCFBF8; }
.pc-table tbody th { text-align: left; font-weight: 400; white-space: normal; min-width: 130px; color: var(--c-ink); }
.pc-table tr:last-child th, .pc-table tr:last-child td { border-bottom: 0; }
.pc-table tr.is-k th, .pc-table tr.is-k td { font-weight: 700; background: var(--c-sage); color: var(--c-ink); }
.pc-table tr.is-b th, .pc-table tr.is-b td { font-weight: 700; color: var(--c-ink); }
.pc-table tr.is-s th, .pc-table tr.is-s td { color: var(--c-text); font-size: 13.5px; }
.pc-notes { margin: 14px 0 0; padding-left: 18px; font-size: 14px; }
.pc-notes li { margin-bottom: 6px; }

/* Converters */
.uc-tabs button { padding: 7px 14px; min-height: 40px; font-size: 14px; }
.uc-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.4fr) auto minmax(0, 1.4fr); gap: 12px; align-items: end; }
.uc-swap { min-height: 46px; width: 46px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-white); font-size: 20px; color: var(--c-accent); cursor: pointer; margin-bottom: 14px; }
.uc-swap:hover { background: var(--c-sage); }
.uc-big { background: var(--c-accent); color: #fff; border-radius: 14px; padding: 16px 18px; margin-top: 4px; }
.uc-big span { display: block; font-size: 14px; opacity: .85; }
.uc-big b { display: block; font-size: 30px; line-height: 1.2; color: #fff; word-break: break-word; font-variant-numeric: tabular-nums; }
.uc-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.uc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; margin: 0; }
.uc-list li:last-child { border-bottom: 0; }
.uc-list li b { color: var(--c-ink); font-variant-numeric: tabular-nums; text-align: right; word-break: break-all; }
.uc-list li.is-on { background: var(--c-sage); margin: 0 -10px; padding: 9px 10px; border-radius: 8px; }
.tc-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.tc-pair input { font-size: 26px !important; font-weight: 700; min-height: 58px; }
.tc-eq { font-size: 26px; font-weight: 700; color: var(--c-text); padding-bottom: 26px; }
.tc-quick { margin: 4px 0 12px; }
.tc-quick .bd-pill-btn { font-size: 13px; min-height: 36px; padding: 4px 12px; }
.tc-k { font-size: 14px; color: var(--c-text); }
.tc-feel { margin: 8px 0 0; font-weight: 700; color: var(--c-ink); }
.tc-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 14px; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; font-variant-numeric: tabular-nums; }
.tc-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; background: #FCFBF8; border-bottom: 1px solid var(--c-line); color: var(--c-text); white-space: nowrap; }
.tc-table td { padding: 8px 12px; border-bottom: 1px solid var(--c-line); color: var(--c-ink); }
.tc-table tr:last-child td { border-bottom: 0; }
.tc-table tr.is-on td { background: var(--c-sage); font-weight: 700; }
.sz-table tbody tr { cursor: pointer; }
.sz-table tbody tr:hover td { background: #F4F1EA; }
.sz-table tbody tr.is-on:hover td { background: var(--c-sage); }
.sz .cx-big { margin-bottom: 4px; }
@media (max-width: 560px) {
	.uc-row { grid-template-columns: 1fr auto 1fr; }
	.uc-row .uc-val { grid-column: 1 / -1; }
	.tc-pair input { font-size: 22px !important; }
	.uc-big b { font-size: 26px; }
}
@media (max-width: 860px) { .cx-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pc-table { font-size: 13px; } .pc-table th, .pc-table td { padding: 8px 6px; } .pc-table tbody th { min-width: 96px; } .pc .cx-stat.hero b { font-size: 28px; } }
.tc-table td { white-space: nowrap; }
.tw-brakes { background: var(--c-sage); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 14.5px; }
.tw-brakes strong { display: block; color: var(--c-ink); margin-bottom: 2px; }
