/* Kailvex business tools (Oct 2026): policy, review QR, crackers price list, UPI QR, GST invoice, QR menu,
   digital visiting card, website health checker. Builds on growth-tools.css / utility-suite.css. */
.kv-tool--wide{display:grid;grid-template-columns:minmax(0,1fr);gap:26px}
.kv-tool--wide>*{min-width:0}
.kv-output{padding:34px;border:1px solid var(--line,#dce8f7);border-radius:30px;background:#fff;box-shadow:0 18px 50px rgba(4,35,88,.075)}
.kv-output>h2,.kv-rows-head h2,.kv-preview-title{font-size:1.5rem;margin:0}
.kv-preview-title{margin:28px 0 14px}
.kv-note{margin-top:16px;color:#5c6d82;font-size:.82rem;line-height:1.6}
.kv-lang-switch{font-weight:850;color:#0868dc!important;text-decoration:none}
.kv-fields-3{grid-template-columns:repeat(3,1fr)}
.kv-two{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}
.kv-two fieldset{border:1px solid var(--line,#dce8f7);border-radius:20px;padding:18px;display:grid;gap:14px;margin:0}
.kv-two legend{padding:0 8px;font-weight:850;color:#26364e}
.kv-tool textarea,.kv-tool input,.kv-tool select{font:inherit}
.kv-tool .tool-field textarea{min-height:0}

/* Tabs */
.kv-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.kv-tab{border:1px solid #cfe0f5;background:#f3f8ff;color:#123a74;border-radius:999px;padding:9px 15px;font-weight:800;font-size:.85rem;cursor:pointer}
.kv-tab[aria-selected="true"]{background:#0b5cd5;border-color:#0b5cd5;color:#fff}

/* Generated policy document */
.kv-doc{max-height:560px;overflow:auto;padding:26px;border:1px solid #e3ecf7;border-radius:18px;background:#fbfdff;color:#1d2a3d;line-height:1.7;font-size:.95rem}
.kv-doc h1{font-size:1.6rem;letter-spacing:-.02em;margin:0 0 6px}
.kv-doc h2{font-size:1.1rem;margin:20px 0 6px;letter-spacing:0}
.kv-doc p,.kv-doc li{margin:6px 0}
.kv-doc .kv-muted{color:#66768c;font-size:.85rem}

/* Row editors */
.kv-rows-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.kv-rows-head .utility-actions{margin-top:0}
.kv-table-wrap{overflow-x:auto;border:1px solid #e3ecf7;border-radius:16px}
.kv-rows{width:100%;border-collapse:collapse;min-width:640px}
.kv-rows th{background:#f3f8ff;color:#26364e;font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;text-align:left;padding:10px}
.kv-rows td{padding:6px;border-top:1px solid #edf2f9;vertical-align:top}
.kv-rows input,.kv-rows select{width:100%;padding:9px 10px;border:1px solid #d6e2f1;border-radius:10px;background:#fff;font-size:.9rem}
.kv-rows input[type=number]{min-width:80px}
.kv-rows .kv-del{border:0;background:transparent;color:#b3261e;font-size:1.3rem;line-height:1;cursor:pointer;padding:8px}
.kv-add{margin-top:12px}

/* Paper previews (price list, invoice, menu, posters) */
.kv-paper{border:1px solid #e3ecf7;border-radius:18px;background:#fff;padding:28px;overflow-x:auto;color:#111;box-shadow:inset 0 0 0 6px #f7faff}
.kv-sheet{font-family:Arial,Helvetica,sans-serif;color:#111;max-width:820px;margin:0 auto}
.kv-sheet h1{font-size:1.6rem;margin:0;letter-spacing:0}
.kv-sheet h2{font-size:1rem;margin:14px 0 6px;letter-spacing:0}
.kv-sheet table{width:100%;border-collapse:collapse;font-size:.88rem}
.kv-sheet th,.kv-sheet td{border:1px solid #c9d3e0;padding:6px 8px;text-align:left}
.kv-sheet th{background:#eef3fa}
.kv-sheet .num{text-align:right;white-space:nowrap}
.kv-sheet .kv-cat td{background:#fff4d6;font-weight:700}
.kv-sheet .kv-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:2px solid #111;padding-bottom:10px;margin-bottom:12px}
.kv-sheet .kv-banner{background:#b3261e;color:#fff;text-align:center;font-weight:700;padding:8px;border-radius:6px;margin:10px 0}
.kv-sheet .kv-meta{font-size:.85rem;line-height:1.5}
.kv-sheet .kv-totals{margin-left:auto;width:min(360px,100%);margin-top:10px}
.kv-sheet .kv-totals td:first-child{border:0}
.kv-sheet .kv-grand td{font-weight:700;font-size:1rem;background:#eef3fa}
.kv-sheet .kv-parties{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}
.kv-sheet .kv-parties>div{border:1px solid #c9d3e0;padding:10px;border-radius:6px;font-size:.86rem;line-height:1.5}
.kv-sheet .kv-sign{margin-top:28px;text-align:right;font-size:.86rem}
.kv-watermark{margin-top:18px;text-align:center;font-size:.7rem;color:#5b6778;font-family:Arial,Helvetica,sans-serif}
.kv-veg,.kv-nonveg{display:inline-block;width:12px;height:12px;border:2px solid #1e8e3e;position:relative;margin-right:6px;vertical-align:-1px}
.kv-veg:after,.kv-nonveg:after{content:"";position:absolute;inset:2px;border-radius:50%;background:#1e8e3e}
.kv-nonveg{border-color:#b3261e}.kv-nonveg:after{background:#b3261e}

/* QR blocks */
.kv-qr{display:grid;place-items:center;margin-top:18px;padding:18px;border-radius:20px;background:#fff;min-height:120px}
.kv-qr svg{width:min(240px,100%);height:auto;display:block}
.kv-qr--small svg{width:min(180px,100%)}
.kv-qr:empty{display:none}
.kv-result-dark{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:center;margin-top:24px;padding:28px;border-radius:26px;color:#fff;background:radial-gradient(circle at 85% 15%,rgba(83,197,255,.22),transparent 24%),linear-gradient(145deg,#030814,#092c68)}
.kv-result-dark h2{color:#fff;margin:0}
.kv-result-dark .kv-qr{margin-top:0}

/* Digital card preview */
.kv-card-preview{margin-top:16px}
.kv-vcard{border-radius:22px;background:#fff;color:#0d1b2e;padding:22px;box-shadow:0 14px 40px rgba(0,0,0,.18)}
.kv-vcard b{display:block;font-size:1.25rem}
.kv-vcard small{color:#5c6d82}
.kv-vcard ul{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:8px;font-size:.9rem;word-break:break-word}
.kv-vcard a{color:#0b5cd5;text-decoration:none;font-weight:700}

/* Health checker */
.kv-health-row{display:flex;gap:12px;margin-top:18px}
.kv-health-row input{flex:1;min-width:0;padding:15px 18px;border:1px solid #c9d8ec;border-radius:16px;font-size:1rem}
.kv-report{padding:30px;border:1px solid var(--line,#dce8f7);border-radius:30px;background:#fff;box-shadow:0 18px 50px rgba(4,35,88,.075)}
.kv-score{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 22px}
.kv-score span{padding:8px 14px;border-radius:999px;font-weight:850;font-size:.85rem}
.kv-pass{background:#e6f4ea;color:#137333}.kv-warn{background:#fef7e0;color:#8a5a00}.kv-fail{background:#fce8e6;color:#b3261e}.kv-info{background:#eef3fa;color:#26364e}
.kv-checks{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.kv-checks li{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;padding:14px 16px;border:1px solid #edf2f9;border-radius:16px}
.kv-checks .kv-badge{padding:4px 10px;border-radius:999px;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.kv-checks b{display:block}
.kv-checks small{color:#5c6d82;line-height:1.5;display:block;margin-top:2px;word-break:break-word}
.kv-group{margin:24px 0 10px;font-size:1.05rem}
.kv-report-cta{margin-top:24px;padding:22px;border-radius:20px;background:#071225;color:#fff;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.kv-report-cta p{margin:0;color:#c8d6ea}

/* Guide */
.kv-guide{max-width:860px}
.kv-guide h2{font-size:clamp(1.8rem,3.4vw,2.6rem);margin:.6rem 0 1rem}
.kv-guide h3{font-size:1.25rem;margin:1.6rem 0 .5rem}
.kv-guide p{font-size:1.04rem;line-height:1.8;color:#4a5a70}

/* Viewer pages (QR menu, digital card) */
.kv-viewer{min-height:100vh;background:#f3f6fb;padding:24px 16px 40px;font-family:Inter,Arial,Helvetica,sans-serif;color:#0d1b2e}
.kv-viewer__card{max-width:560px;margin:0 auto;background:#fff;border-radius:24px;padding:24px;box-shadow:0 14px 40px rgba(4,35,88,.1)}
.kv-viewer h1{font-size:1.6rem;margin:0}
.kv-viewer .kv-sub{color:#5c6d82;margin:4px 0 0}
.kv-viewer h2{font-size:1rem;text-transform:uppercase;letter-spacing:.08em;color:#0b5cd5;margin:22px 0 8px}
.kv-viewer .kv-item{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:10px 0;border-bottom:1px solid #edf2f9}
.kv-viewer .kv-item small{grid-column:1/-1;color:#5c6d82}
.kv-viewer .kv-btns{display:grid;gap:10px;margin-top:18px}
.kv-viewer .kv-btns a,.kv-viewer .kv-btns button{display:block;text-align:center;padding:14px;border-radius:14px;background:#0b5cd5;color:#fff;font-weight:800;text-decoration:none;border:0;font-size:1rem;cursor:pointer}
.kv-viewer .kv-btns a.kv-alt{background:#eef3fa;color:#0b3d91}
.kv-viewer footer{text-align:center;font-size:.75rem;color:#7a8799;margin-top:18px}
.kv-viewer footer a{color:#7a8799}

@media (max-width:820px){.kv-two,.kv-sheet .kv-parties,.kv-result-dark{grid-template-columns:1fr}.kv-fields-3{grid-template-columns:1fr}.kv-output,.kv-report{padding:20px;border-radius:22px}.kv-health-row{flex-direction:column}.kv-paper{padding:14px}}

/* Printing: only the generated sheet is printed. */
#kvPrintRoot{display:none}
@media print{
  html.kv-printing body>*:not(#kvPrintRoot){display:none!important}
  html.kv-printing #kvPrintRoot{display:block!important}
  html.kv-printing,html.kv-printing body{background:#fff!important}
  #kvPrintRoot .kv-sheet{max-width:none}
  #kvPrintRoot .kv-sheet table{page-break-inside:auto}
  #kvPrintRoot tr{page-break-inside:avoid}
  @page{margin:12mm}
}
.kv-tool .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:620px){.kv-paper .kv-sheet table{font-size:.76rem}.kv-paper .kv-sheet th,.kv-paper .kv-sheet td{padding:5px 6px}.kv-sheet h1{font-size:1.25rem}.kv-sheet .kv-head{flex-direction:column;gap:6px}.kv-sheet .kv-head>div[style]{text-align:left!important}}

/* TN exam photo & signature resizer */
.kv-step{font-size:1.4rem;margin:26px 0 0}
.kv-hint{margin-top:12px;padding:10px 14px;border-radius:12px;background:#fff7e0;color:#7a5200;font-size:.85rem}
.kv-file{display:block;margin-top:14px;padding:20px;border:2px dashed #b9cce6;border-radius:18px;text-align:center;cursor:pointer;background:#f7faff;font-weight:800;color:#0b5cd5}
.kv-file input{display:block;margin:0 auto 10px;max-width:100%;font-size:.85rem}
.kv-check label{display:flex;gap:10px;align-items:center;font-weight:700;color:#26364e;font-size:.9rem}
.kv-check input{width:18px;height:18px}
.kv-editor{position:relative;display:grid;place-items:center;margin-top:16px;padding:18px;border-radius:20px;background:repeating-conic-gradient(#e9eef5 0 25%,#fff 0 50%) 50%/16px 16px;min-height:200px}
.kv-editor canvas{display:block;max-width:100%;height:auto;box-shadow:0 8px 30px rgba(0,0,0,.25);cursor:grab;touch-action:none;image-rendering:auto;background:#fff}
.kv-editor canvas:active{cursor:grabbing}
.kv-editor p{position:absolute;margin:0;color:#5c6d82;font-weight:700;font-size:.85rem;pointer-events:none}
.kv-editor-controls{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:14px;color:#fff;font-weight:700;font-size:.85rem}
.kv-editor-controls label{display:flex;gap:10px;align-items:center;flex:1}
.kv-editor-controls input[type=range]{flex:1}
.kv-spec{margin-top:26px}
.kv-spec-table{min-width:720px}
.kv-spec-table td{font-size:.86rem;line-height:1.55;padding:12px 10px}
.kv-spec-table a{color:#0b5cd5;font-weight:700}

/* Domain, email DNS, technology checkers and app icon generator (Oct 2026) */
.kv-tlds{display:flex;flex-wrap:wrap;gap:8px 16px;margin:16px 0 0;padding:14px 16px;border:1px solid #dce8f7;border-radius:16px}
.kv-tlds legend{padding:0 6px;font-weight:800;font-size:.85rem;color:#26364e}
.kv-tlds label{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.9rem;color:#1d2a3d;cursor:pointer}
.kv-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.kv-domains b{font-size:1.02rem}
.kv-provider{display:inline-block;margin-left:8px;padding:3px 10px;border-radius:999px;background:#eef4ff;color:#0b5cd5;font-size:.8rem;font-weight:800;vertical-align:middle}
.kv-rec-label{display:block;margin-top:10px;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#5c6d82}
.kv-rec{margin:4px 0 0;padding:10px 12px;border-radius:10px;background:#f3f6fb;border:1px solid #e3ecf7;font:500 .8rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#1d2a3d;white-space:pre-wrap;word-break:break-all}
.kv-rec--fix{background:#effaf3;border-color:#c9ecd6}
.kv-copy-btn{margin-top:8px;padding:7px 12px!important;font-size:.8rem!important}
.kv-tech{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:4px 22px}
.kv-tech ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kv-tech li{padding:10px 12px;border:1px solid #edf2f9;border-radius:12px}
.kv-tech li b{display:block}
.kv-tech li em{font-style:normal;font-weight:700;color:#0b5cd5;font-size:.85rem}
.kv-tech li small{display:block;color:#5c6d82;font-size:.8rem;margin-top:2px}
.kv-includes{grid-template-columns:1fr 1fr}
.kv-icon-previews{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;margin:8px 0 14px}
.kv-icon-previews figure{margin:0;display:grid;justify-items:center;gap:6px}
.kv-icon-previews canvas{width:96px;height:96px;filter:drop-shadow(0 10px 18px rgba(4,35,88,.18))}
.kv-icon-previews figcaption{font-size:.78rem;font-weight:700;color:#cfe0f5}
@media(max-width:620px){.kv-includes{grid-template-columns:1fr}.kv-health-row{flex-direction:column}.kv-health-row .btn{width:100%}}
.kv-tool input[type=color]{-webkit-appearance:none;appearance:none;width:100%;height:48px;padding:4px;border:1px solid #c9d8ec;border-radius:14px;background:#fff;cursor:pointer}
.kv-tool input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.kv-tool input[type=color]::-webkit-color-swatch{border:0;border-radius:10px}
.kv-tool input[type=color]::-moz-color-swatch{border:0;border-radius:10px}
.kv-tool .tool-form .kv-hint{background:#fff7e0;color:#6b4700}
.kv-tool .tool-result .kv-hint{background:transparent;color:#c8d6ea;padding:0}

/* Legal & compliance block on every tool page (src/data/tools/compliance.ts) */
.kv-legal-section{border-top:1px solid #e6eaf0}
.kv-legal h2{margin:8px 0 22px;font-size:clamp(1.5rem,4vw,2.1rem);line-height:1.2}
.kv-legal__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:12px}
.kv-legal__list li{display:grid;grid-template-columns:40px 1fr;gap:14px;align-items:start;padding:16px 18px;border:1px solid #e3ecf7;border-radius:18px;background:#fff}
.kv-legal__icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#ecfdf3;color:#12a150}
.kv-legal__icon svg{width:21px;height:21px}
.kv-legal__list strong{display:block;font-size:.95rem;color:#0b1220;line-height:1.35}
.kv-legal__list p{margin:5px 0 0;font-size:.88rem;line-height:1.6;color:#475467}
.kv-legal__note{margin:18px 0 0;padding:12px 16px;border-radius:14px;background:#f6f8fc;color:#4f5e73;font-size:.82rem;line-height:1.6}
