/* Test mijn bedrijf: styles for the browser tools of round 2 (loaded after site.css on tool pages).
   All classes start with t- so they don't collide with site.css. */

/* Wide tables and code scroll inside their own box instead of stretching the page grid. */
.tool-page > .tool-box, .client-tool, .client-tool .result, .client-tool .result-card { min-width: 0; }

/* ---------- Form building blocks ---------- */
.t-fieldset { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.t-fieldset > legend { margin-bottom: 10px; padding: 0; font-size: 14.5px; font-weight: 600; }
.t-fieldset > legend span { font-weight: 400; color: var(--muted); }
.t-sub { margin: 22px 0 10px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.client-tool > .t-sub:first-child { margin-top: 0; }
.t-mono, .field input.t-mono { font-family: var(--mono); font-size: 15px; }
.t-row-3 { grid-template-columns: repeat(3, 1fr); }
.t-checks-tight { align-self: end; margin-bottom: 14px; }
.t-url-row { display: grid; grid-template-columns: 150px 1fr; gap: 0 14px; }
.t-pass { display: flex; gap: 8px; align-items: center; }
.t-pass input { flex: 1; min-width: 0; }
.t-pass .btn { flex: none; min-height: 48px; }
.t-msg { min-height: 1.4em; margin: 0; font-size: 14.5px; font-weight: 600; }
.t-msg[data-status="ok"] { color: var(--ok); }
.t-msg[data-status="bad"] { color: var(--bad); }
.client-tool .btn[disabled] { cursor: not-allowed; }

/* Option cards (SPF senders) */
.t-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.t-options > legend { margin-bottom: 10px; padding: 0; font-size: 14.5px; font-weight: 600; }
.t-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.t-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--olive); background: rgb(64 82 57 / .05); }
.t-option input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--olive); }
.t-option span { display: grid; gap: 2px; min-width: 0; }
.t-option strong { font-size: 15px; }
.t-option code { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.t-radios { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.t-radios > legend { margin-bottom: 8px; padding: 0; font-size: 14.5px; font-weight: 600; }
.t-radios label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.t-radios input { margin-top: 5px; flex: none; accent-color: var(--olive); }

/* Repeating rows (VLSM subnets, curl headers) */
.t-rows { display: grid; gap: 4px; }
.t-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 10px; align-items: end; }
.t-row .field { margin-bottom: 8px; }
.t-row .btn { margin-bottom: 8px; min-height: 48px; }
.t-row + .t-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Results ---------- */
.t-scroll { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.t-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t-table caption { padding: 4px 0 8px; text-align: left; font-weight: 700; }
.t-table th, .t-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.t-table thead th { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.t-table tbody th { font-weight: 600; }
.t-table code { font-size: 13.5px; overflow-wrap: anywhere; }
.t-table small { color: var(--muted); }
.t-table--kv th { width: 34%; white-space: nowrap; }
.t-table .t-row-bad > * { background: #fbeae6; }
.t-table .pill { min-height: 24px; padding: 0 9px; font-size: 12px; }
.t-mini { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.t-mini li { overflow-wrap: anywhere; }
.t-hr { margin: 16px 0; border: 0; border-top: 1px solid var(--line); }
.result-card .kv + .kv { margin-top: 10px; }
.t-explain { margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: var(--paper); }
.t-explain h3 { margin-bottom: 10px; font-size: 22px; }
.t-explain ol { margin: 0; padding-left: 22px; }
.t-explain li { margin: 4px 0; color: var(--muted); }
.t-details { margin: 12px 0 4px; }
.t-details > summary { cursor: pointer; font-weight: 600; color: var(--olive); }
.t-details__body { padding: 6px 0 4px; }
.t-details__body h4 { margin: 12px 0 4px; font-size: 14px; }
.t-sources { margin: 0; padding-left: 20px; font-size: 14px; }
.t-sources li { margin: 3px 0; overflow-wrap: anywhere; }
.t-sources a { color: var(--olive); }

/* QR code */
.t-qr { width: min(300px, 100%); margin: 0 0 14px; }
.t-qr svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }

/* Regex */
.t-hl { margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.t-mark { padding: 1px 0; border-radius: 3px; background: #f6d58a; color: inherit; box-shadow: 0 0 0 1px #d9a93a; }
.t-mark--alt { background: #bfe0f5; box-shadow: 0 0 0 1px #6ea9d4; }
.t-mark--empty { display: inline-block; width: 0; height: 1.2em; margin: 0 -1px; padding: 0; vertical-align: text-bottom; border-left: 2px solid var(--terracotta); box-shadow: none; background: none; }
.t-group { display: inline-flex; gap: 6px; margin: 0 8px 4px 0; padding: 2px 8px; border-radius: 8px; background: var(--paper); font-size: 13px; }

/* Diff */
.t-diff { margin: 14px 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: auto; max-height: 640px; font-family: var(--mono); font-size: 13.5px; }
.t-dl { display: grid; grid-template-columns: 3.6em 3.6em 1.6em 1fr; min-width: max-content; }
.t-dn { padding: 1px 8px; text-align: right; color: var(--muted); background: var(--paper); user-select: none; }
.t-ds { padding: 1px 4px; text-align: center; user-select: none; }
.t-dl code { padding: 1px 12px 1px 2px; white-space: pre; font-size: inherit; }
.t-dl--add { background: #e3f4e7; }
.t-dl--add .t-ds, .t-dl--add code { color: #1f6a37; }
.t-dl--del { background: #fbe6e1; }
.t-dl--del .t-ds, .t-dl--del code { color: #9a3322; }
.t-dl--hunk { background: var(--blue-light); color: var(--info); }
.t-dl--hunk code { color: var(--info); }

/* Tabs (curl) */
.t-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 16px; background: var(--paper); }
.t-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: 600 14.5px var(--sans); cursor: pointer; }
.t-tabs button:hover { background: rgb(64 82 57 / .08); }
.t-tabs button[aria-selected="true"] { background: var(--olive); color: #fff; }
.t-panel .fix pre { max-height: 460px; overflow: auto; }
/* Commands and column-aligned text: scroll sideways instead of breaking words. */
.t-panel .fix pre, [data-tool="vlsm"] .fix pre, [data-tool="diff"] .fix pre, [data-tool="rack"] .fix pre { white-space: pre; word-break: normal; overflow-x: auto; }

/* Webhook */
.t-hooks { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.t-hooks > li { padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.t-hooks summary { cursor: pointer; overflow-wrap: anywhere; }
.t-hooks summary code { font-size: 14px; }
.t-method { display: inline-block; min-width: 4.2em; padding: 1px 8px; border-radius: 8px; background: var(--olive); color: #fff; font: 700 12.5px var(--mono); text-align: center; }
.t-meta { font-size: 13.5px; color: var(--muted); }

/* Ad text lengths */
.t-ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 14px; }
.t-count { position: relative; }
.t-counter { justify-self: end; margin-top: -2px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.t-counter--bad { font-weight: 700; color: var(--bad); }
.field .t-over { border-color: var(--bad); background: #fdf3f0; }
.t-ad { max-width: 640px; margin: 0 0 10px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.t-ad__label { display: block; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.t-ad__title { display: block; margin: 4px 0 6px; font-size: 18px; line-height: 1.35; color: var(--olive); }
.t-ad p { margin: 0; font-size: 15px; color: var(--ink); }

/* Rack planner */
.t-rack-add { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr 1.3fr; gap: 0 12px; }
.t-rack-wrap { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 22px; align-items: start; }
.t-rack { --uh: 22px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: repeat(var(--rows, 42), var(--uh)); padding: 8px 10px 8px 4px; border-radius: 10px; background: #2c3530; box-shadow: inset 0 0 0 3px #1d2420; }
.t-rack--tall { --uh: 17px; }
.t-rack__u { grid-column: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font: 600 10.5px var(--mono); color: #b9c2b4; border-bottom: 1px solid rgb(255 255 255 / .06); }
.t-rack::before { content: ""; grid-column: 2; grid-row: 1 / -1; border-radius: 4px; background: repeating-linear-gradient(to bottom, #3a453f 0 calc(var(--uh) - 1px), #26302b calc(var(--uh) - 1px) var(--uh)); }
.t-rack__dev { grid-column: 2; z-index: 1; display: flex; align-items: center; min-width: 0; margin: 1px 0; padding: 0 8px; border-radius: 3px; background: #6f7d68; color: #fff; font-size: 12px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
.t-rack__dev--server { background: #4c6a8c; }
.t-rack__dev--switch { background: #2f7a6e; }
.t-rack__dev--patch { background: #7d6a4f; }
.t-rack__dev--firewall { background: #a3533c; }
.t-rack__dev--storage { background: #6a5a8c; }
.t-rack__dev--ups { background: #8a7a1e; }
.t-rack__dev--pdu { background: #95682a; }
.t-rack__dev--cable { background: #59625c; }
.t-rack__dev--blank { background: #49524c; color: #c9d0c4; }
.t-rack-side { min-width: 0; }
.t-actions { white-space: nowrap; }
.t-actions .btn { min-height: 34px; padding: 0 10px; font-size: 13px; }
.t-actions .btn + .btn { margin-left: 4px; }

/* Downtime costs */
.t-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 6px; }
.t-figure { padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.t-figure small { display: block; font-size: 13.5px; color: var(--muted); }
.t-figure strong { display: block; margin-top: 2px; font: 400 34px/1.1 var(--serif); color: var(--olive); overflow-wrap: anywhere; }
.t-sum td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-sum td:nth-child(2) { color: var(--muted); }
.t-sum .t-sum__total > * { font-weight: 700; border-top: 2px solid var(--ink); }

/* Reporting deadlines */
.t-steps { display: grid; gap: 10px; margin: 14px 0 16px; padding: 0; list-style: none; }
.t-steps > li { padding: 14px 16px; border-radius: 16px; background: var(--paper); border-left: 4px solid #4fbf68; }
.t-steps > li[data-status="warn"] { border-left-color: #f0ac35; }
.t-steps > li[data-status="bad"] { border-left-color: #e0503a; }
.t-steps h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; font: 700 17px/1.3 var(--sans); }
.t-steps p { margin: 6px 0 0; font-size: 15px; }
.t-due { font-weight: 700; }
.t-left { color: var(--muted); font-variant-numeric: tabular-nums; }
.t-law { font-size: 13px; color: var(--muted); }

/* E-mail signature */
.t-sig-preview { margin: 0 0 12px; padding: 22px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); overflow-x: auto; }
.t-sig-preview table { width: auto; margin: 0; }
.t-sig-preview td { border: 0; }
.t-sig-logo { display: grid; place-items: center; min-height: 48px; border-radius: 6px; background: repeating-linear-gradient(45deg, #eef0ea 0 8px, #f7f8f4 8px 16px); color: var(--muted); font: 600 12px var(--sans); text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .client-tool .seg { display: flex; flex-wrap: wrap; max-width: 100%; border-radius: 18px; }
    .client-tool .seg label { padding: 8px 12px; }
    .t-row-3, .t-url-row { grid-template-columns: 1fr; }
    .t-row { grid-template-columns: 1fr 1fr; }
    .t-row .btn { grid-column: 1 / -1; justify-self: start; min-height: 40px; }
    .t-rack-add { grid-template-columns: 1fr 1fr; }
    .t-rack-add .field:first-child { grid-column: 1 / -1; }
    .t-rack-wrap { grid-template-columns: 1fr; }
    .t-rack { max-width: 360px; }
    .t-rack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .t-rack-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
    .t-rack-table th, .t-rack-table td { padding: 0; border: 0; }
    .t-rack-table .t-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; white-space: normal; }
    .t-actions .btn + .btn { margin-left: 0; }
    .t-dl { grid-template-columns: 2.8em 2.8em 1.4em 1fr; }
    .t-table--kv th { width: auto; white-space: normal; }
}

/* Mail-tester */
.mt-steps { margin: 0 0 18px; padding-left: 1.3em; color: var(--muted); }
.mt-steps li + li { margin-top: 4px; }
.mt-box { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mt-label { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.mt-address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.mt-address code { font-family: var(--mono); font-size: clamp(16px, 2.2vw, 21px); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.mt-subject { margin: 0 0 8px; }
.mt-subject strong { font-family: var(--mono); letter-spacing: .04em; }
.mt-overview { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mt-overview li { display: grid; grid-template-columns: 9.5em 10.5em 1fr; align-items: center; gap: 10px; }
.mt-overview .pill { justify-content: center; }
@media (max-width: 600px) {
    .mt-overview { gap: 14px; }
    .mt-overview li { grid-template-columns: 8.5em 1fr; row-gap: 4px; }
    .mt-overview li span:last-child { grid-column: 1 / -1; }
}
