/* Owner 09.11.2026 — the on-screen keyboard for touch screens (approved mock-up). Big keys, at the bottom of the work
   area; the page and the dialogs end above it, so the field being typed in stays in view. */
.touch-kb-entry button.is-on{border-color:var(--accent)!important;background:rgba(194,86,12,.22)!important;color:#fff!important}
.touch-kb{position:fixed;right:0;bottom:0;left:0;z-index:300;padding:8px 10px 10px;background:#2A2D3A;box-shadow:0 -10px 30px rgba(0,0,0,.25);user-select:none;-webkit-user-select:none;touch-action:manipulation}
.touch-kb[hidden]{display:none}
.touch-kb-bar{display:flex;align-items:center;gap:6px;margin:0 2px 8px;color:#AEB2C2;font-size:var(--fs-secondary)}
.touch-kb-tab{padding:5px 12px;border:0;border-radius:999px;background:#353949;color:#C9CBD6;font:700 var(--fs-secondary) var(--font);cursor:pointer}
.touch-kb-tab.is-on{background:var(--accent);color:#fff}
.touch-kb-where{flex:1;text-align:right;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.touch-kb-row{display:flex;gap:6px;margin-bottom:6px}
.touch-kb-row:last-child{margin-bottom:0}
.touch-kb button[data-tk],.touch-kb button[data-tk-back],.touch-kb button[data-tk-enter],.touch-kb button[data-tk-shift],.touch-kb button[data-tk-hide],.touch-kb button[data-tk-next],.touch-kb button[data-tk-abc]{flex:1 1 0;min-width:0;height:48px;border:0;border-radius:9px;background:#454A5C;color:#fff;font:700 var(--fs-body) var(--font);cursor:pointer;box-shadow:0 2px 0 rgba(0,0,0,.25)}
.touch-kb button:active{transform:translateY(1px);background:#5A6075}
.touch-kb .tk-dark{background:#353949!important;font-size:var(--fs-secondary)!important}
.touch-kb .tk-dark.is-on{background:var(--accent)!important}
.touch-kb .tk-wide{flex-grow:1.5!important}.touch-kb .tk-wider{flex-grow:2!important}
.touch-kb .tk-space{flex:5.5 1 0;height:48px;border:0;border-radius:9px;background:#454A5C;cursor:pointer}
.touch-kb .tk-enter{background:var(--accent)!important}
.touch-kb-num{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:14px;align-items:center}
.touch-kb-hint{margin:0;color:#C9CBD6;font-size:var(--fs-secondary);line-height:1.6}.touch-kb-hint b{color:#fff}
.touch-kb-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.touch-kb-pad button{height:52px!important;font-size:var(--fs-section)!important}
/* The page and the dialogs end above the keyboard. */
body.touch-kb-open .main{padding-bottom:var(--touch-kb-height,300px)}
body.touch-kb-open .avkasa-modal-overlay{bottom:var(--touch-kb-height,300px)}
body.touch-kb-open .avkasa-modal-overlay .modal{max-height:calc(100% - 16px)}
@media(max-width:700px){.touch-kb-num{grid-template-columns:1fr}.touch-kb-hint{display:none}.touch-kb button[data-tk]{height:42px}}

/* Owner 09.11.2026 — „⛶ Цял екран“ above „⌨ Клавиатура“. */
.full-screen-entry button.is-on{border-color:var(--accent)!important;background:rgba(194,86,12,.22)!important;color:#fff!important}

/* Owner 09.11.2026 — sizes set in „Настрой екрана“; on „Изписване“ only under the left part. */
.touch-kb-size-s button[data-tk],.touch-kb-size-s button[data-tk-back],.touch-kb-size-s button[data-tk-enter],.touch-kb-size-s button[data-tk-shift],.touch-kb-size-s button[data-tk-hide],.touch-kb-size-s .tk-space{height:38px!important;font-size:var(--fs-secondary)!important}
.touch-kb-size-l button[data-tk],.touch-kb-size-l button[data-tk-back],.touch-kb-size-l button[data-tk-enter],.touch-kb-size-l button[data-tk-shift],.touch-kb-size-l button[data-tk-hide],.touch-kb-size-l .tk-space{height:60px!important;font-size:var(--fs-section)!important}
.touch-kb-size-l .touch-kb-pad button{height:64px!important}
body.touch-kb-left .touch-kb{border-radius:0 14px 0 0}

.touch-kb-settings{margin-top:14px;padding-top:12px;border-top:1px solid var(--border-soft)}
.touch-kb-settings h3{margin:0 0 6px;font-size:var(--fs-body)}
.touch-kb-setting>span:first-child small{display:block;color:var(--text-muted);font-size:var(--fs-secondary);font-weight:400}
.touch-kb-seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--border);border-radius:9px;overflow:hidden}
.touch-kb-seg label{position:relative;cursor:pointer}
.touch-kb-seg input{position:absolute;opacity:0;pointer-events:none}
.touch-kb-seg span{display:block;padding:6px 10px;font-size:var(--fs-secondary);font-weight:650;border-right:1px solid var(--border)}
.touch-kb-seg label:last-child span{border-right:0}
.touch-kb-seg input:checked+span{background:var(--accent-soft);color:var(--accent-text)}
.touch-kb-seg input:focus-visible+span{outline:2px solid var(--accent);outline-offset:-2px}
/* The issue document column keeps its whole height; only the left part leaves room for the keyboard. */
body.touch-kb-left .main{padding-bottom:0}
body.touch-kb-left .issue-catalog{padding-bottom:var(--touch-kb-height,300px)}
/* Each keyboard setting: the label with its help on top, the choices in equal parts below. */
.touch-kb-settings .touch-kb-setting{display:grid!important;grid-template-columns:1fr!important;gap:6px;align-items:start}
.touch-kb-settings .touch-kb-setting>span:first-child{display:block!important;font-weight:650}
.touch-kb-settings .touch-kb-setting>span:first-child small{display:block;margin-top:1px}
.touch-kb-settings .touch-kb-seg{display:flex!important;width:100%}
.touch-kb-settings .touch-kb-seg label{flex:1 1 0;text-align:center}
.touch-kb-settings .touch-kb-seg label{display:flex!important;margin:0!important}
.touch-kb-settings .touch-kb-seg label>span{display:flex!important;align-items:center;justify-content:center;flex:1 1 auto;width:100%;min-height:36px;text-align:center}
/* The hidden radio of a choice took 17 px inside its segment: a white strip stood beside the chosen one. */
.touch-kb-settings .touch-kb-seg input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important}
