﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   KaiserTerminal â€“ globĂˇlnĂ­ styly
   Fullscreen / kiosk terminĂˇlovĂ˝ reĹľim
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0d1b2e;
    color: #e2e8f0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

/* â”€â”€ HornĂ­ liĹˇta â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 16px;
    background: #ffffff;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    z-index: 100;
    flex-shrink: 0;
    border-bottom: 1px solid #e2e8f0;
}

.kt-topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kt-topbar-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.kt-topbar-clock {
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    min-width: 85px;
    text-align: right;
    color: #475569;
    font-weight: 500;
}

.kt-topbar-nav {
    display: flex;
    gap: 8px;
}

.kt-topbar-nav a,
.kt-topbar-nav button {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.kt-topbar-nav a:hover,
.kt-topbar-nav button:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* â”€â”€ HlavnĂ­ oblast obsahu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kt-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 52px);
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(59,130,246,.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(99,102,241,.10) 0%, transparent 50%),
        linear-gradient(160deg, #0d1b2e 0%, #0f1f38 45%, #0b1a2c 100%);
}

/* â”€â”€ Karta â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kt-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.kt-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

/* â”€â”€ Dashboard â€“ projekt Ĺ™Ăˇdek â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kt-projekt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #334155;
}

.kt-projekt-row:last-child {
    border-bottom: none;
}

.kt-projekt-name {
    flex: 1;
    font-weight: 500;
}

.kt-projekt-etapa {
    color: #64748b;
    font-size: .85rem;
    min-width: 140px;
}

.kt-projekt-hodiny {
    font-size: .85rem;
    min-width: 100px;
    text-align: right;
    color: #94a3b8;
}

/* â”€â”€ DochĂˇzkovĂ˝ terminĂˇl â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kt-terminal-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
}

.kt-big-clock {
    font-size: 4rem;
    font-variant-numeric: tabular-nums;
    font-weight: 300;
    color: #e2e8f0;
    letter-spacing: .05em;
}

.kt-scan-box {
    background: #1e293b;
    border-radius: 16px;
    padding: 32px 40px;
    min-width: 480px;
    max-width: 680px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.kt-scan-label {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.kt-scan-input {
    width: 100%;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 1.3rem;
    padding: 12px 16px;
    text-align: center;
    outline: none;
    caret-color: #3b82f6;
    transition: border-color .2s;
}

.kt-scan-input:focus {
    border-color: #3b82f6;
}

.kt-status-success {
    color: #22c55e;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 12px;
}

.kt-status-error {
    color: #ef4444;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 12px;
}

.kt-step-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.kt-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.kt-step-dot.active {
    background: #3b82f6;
}

.kt-step-dot.done {
    background: #22c55e;
}

/* â”€â”€ DevNav â€“ vĂ˝vojovĂˇ navigace â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kt-devnav {
    max-width: 600px;
    margin: 40px auto;
}

.kt-devnav h2 {
    color: #fbbf24;
    margin-bottom: 24px;
}

.kt-devnav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kt-devnav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b;
    border-radius: 10px;
    padding: 16px 20px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    transition: background .15s, transform .1s;
}

.kt-devnav-list a:hover {
    background: #2d3f5c;
    transform: translateX(4px);
}

.kt-devnav-badge {
    font-size: .75rem;
    background: #3b82f6;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    margin-left: auto;
}

/* ── DeviceBlocked stránka ───────────────────────────────────── */
.kt-device-blocked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
    text-align: center;
    gap: 16px;
}
.kt-device-blocked-icon { font-size: 4rem; }
.kt-device-blocked-title { font-size: 1.6rem; font-weight: 700; color: #e2e8f0; }
.kt-device-blocked-text  { font-size: 1rem; color: #94a3b8; max-width: 420px; line-height: 1.6; }
.kt-device-blocked-id    { font-size: .8rem; color: #64748b; margin-top: 8px; }
.kt-device-blocked-id code { color: #7dd3fc; }

/* -- Akční tlačítka terminálu (dotyková obrazovka) ---------------------- */
.kt-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 96px;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: .02em;
    transition: opacity .12s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}

.kt-action-btn:active:not(:disabled) {
    transform: scale(.96);
    opacity: .88;
}

.kt-action-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.kt-action-start { background: #16a34a; color: #fff; }
.kt-action-start:hover:not(:disabled) { background: #15803d; }

.kt-action-end   { background: #dc2626; color: #fff; }
.kt-action-end:hover:not(:disabled)   { background: #b91c1c; }

/* -- Dashboard layout --------------------------------------------------- */
.kt-dashboard-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kt-dashboard-plans {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px;
}

.kt-dashboard-legend {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 20px;
    background: #1e293b;
    border-top: 1px solid #334155;
    font-size: .82rem;
    color: #94a3b8;
}

/* -- Countdown overlay (fixed do topbaru, renderuje InteractiveServer page) -- */
.kt-countdown-overlay {
    position: fixed;
    top: 9px;
    right: 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #1e40af;
    background: #dbeafe;
    border-radius: 8px;
    padding: 5px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: background .3s, color .3s;
    pointer-events: none;
}

.kt-countdown-urgent {
    color: #991b1b;
    background: #fee2e2;
    animation: kt-pulse .9s ease-in-out infinite;
}

@keyframes kt-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .55; }
}

/* -- Zaměstnanec potvrzený (step 2, čeká se na díl) --------------------- */
.kt-employee-confirmed {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 12px;
    padding: 14px 18px;
}

.kt-employee-icon {
    font-size: 2rem;
    color: #22c55e;
    line-height: 1;
}

.kt-employee-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #22c55e;
}

.kt-employee-os {
    font-size: .85rem;
    color: #64748b;
    margin-top: 2px;
}

/* -- Akční karta (step 2, díl i zaměstnanec pípnuti) -------------------- */
.kt-action-card {
    background: #1e293b;
    border-radius: 20px;
    padding: 28px 32px;
    min-width: 520px;
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

.kt-action-card-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.kt-action-card-employee,
.kt-action-card-task {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 12px;
    padding: 14px 18px;
}

.kt-action-card-employee {
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.3);
}

.kt-action-card-task {
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.3);
}

.kt-action-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.kt-icon-green { background: rgba(34,197,94,.2); color: #22c55e; }
.kt-icon-blue  { background: rgba(59,130,246,.2); color: #60a5fa; }

.kt-action-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
}

.kt-action-card-sub {
    font-size: .9rem;
    color: #64748b;
    margin-top: 2px;
}

.kt-action-card-taskname {
    font-size: 1.3rem;
    font-weight: 600;
    color: #93c5fd;
}

.kt-action-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
}

.kt-action-card .kt-action-btn {
    height: 110px;
    font-size: 1.65rem;
    border-radius: 16px;
    gap: 18px;
}

/* -- Volba akce – mřížka 2×2 ------------------------------------------- */
.kt-volba-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
}

.kt-akce-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    max-width: 680px;
}

.kt-akce-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 138px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: opacity .12s, transform .1s, filter .1s;
    -webkit-tap-highlight-color: transparent;
    padding: 0 16px;
    color: #fff;
}

.kt-akce-btn:active {
    transform: scale(.95);
    filter: brightness(.88);
}

.kt-akce-btn i {
    font-size: 2.4rem;
    line-height: 1;
}

.kt-akce-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.kt-akce-sub {
    font-size: .78rem;
    opacity: .8;
    font-weight: 400;
}

.kt-akce-start    { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 6px 20px rgba(22,163,74,.4); }
.kt-akce-continue { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.kt-akce-pause    { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 6px 20px rgba(217,119,6,.4); }
.kt-akce-end      { background: linear-gradient(135deg, #dc2626, #b91c1c); box-shadow: 0 6px 20px rgba(220,38,38,.4); }

/* -- Potvrzovací dialog (konec etapy) ----------------------------------- */
.kt-confirm-dialog {
    background: #1e293b;
    border-radius: 20px;
    padding: 32px 36px;
    min-width: 480px;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
    border: 1px solid rgba(220,38,38,.3);
}

.kt-confirm-icon {
    font-size: 2.8rem;
    color: #fbbf24;
    margin-bottom: 4px;
}

.kt-confirm-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
}

.kt-confirm-text {
    font-size: .95rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 8px;
}

.kt-confirm-buttons {
    display: flex;
    gap: 14px;
    width: 100%;
    margin-top: 8px;
}

.kt-confirm-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 80px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity .12s, transform .1s;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
}

.kt-confirm-btn:active:not(:disabled) { transform: scale(.96); }
.kt-confirm-btn:disabled { opacity: .45; cursor: not-allowed; }

.kt-confirm-yes { background: linear-gradient(135deg, #dc2626, #b91c1c); box-shadow: 0 4px 16px rgba(220,38,38,.4); }
.kt-confirm-no  { background: #334155; color: #cbd5e1; }
.kt-confirm-no:hover:not(:disabled) { background: #475569; }

/* -- Tlačítko Začít znovu ----------------------------------------------- */
.kt-reset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 8px 22px;
    background: transparent;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
}

.kt-reset-btn i {
    font-size: 1.4rem;
}

.kt-reset-btn:hover {
    color: #94a3b8;
    border-color: #64748b;
}

/* -- Lisovna DCK --------------------------------------------------------- */
.kt-lisovna-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px clamp(20px, 4vw, 56px) 40px;
    background:
        linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.94)),
        #0f172a;
    color: #f8fafc;
}

.kt-lisovna-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
}

.kt-lisovna-logo {
    width: min(280px, 42vw);
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.kt-lisovna-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
}

.kt-lisovna-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.kt-lisovna-clock {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

.kt-lisovna-content {
    width: min(980px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
}

.kt-lisovna-lis-caption {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kt-lisovna-lis {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 1.05;
}

.kt-lisovna-lis span {
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

.kt-lisovna-operation {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) minmax(180px, 1fr) minmax(260px, 1.6fr);
    gap: 14px;
}

.kt-lisovna-operation-item {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    background: rgba(15,23,42,.72);
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 8px;
}

.kt-lisovna-operation-item span {
    color: #94a3b8;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.kt-lisovna-operation-item strong {
    color: #f8fafc;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.kt-lisovna-operation-name strong {
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
}

.kt-lisovna-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.kt-lisovna-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s, filter .12s, opacity .12s;
}

.kt-lisovna-btn:active:not(:disabled),
.kt-lisovna-counter-reset:active:not(:disabled) {
    transform: scale(.98);
    filter: brightness(.92);
}

.kt-lisovna-btn:disabled,
.kt-lisovna-counter-reset:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.kt-lisovna-btn-primary {
    min-height: 172px;
    padding: 26px;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 16px 38px rgba(22,163,74,.28);
}

.kt-lisovna-btn-secondary {
    min-height: 88px;
    padding: 18px 24px;
    font-size: clamp(1.15rem, 3vw, 2rem);
    background: #334155;
    color: #dbeafe;
}

.kt-lisovna-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 4px;
    padding: 20px 24px;
    border: 1px solid rgba(148,163,184,.26);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
}

.kt-lisovna-counter div {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

.kt-lisovna-counter span {
    color: #94a3b8;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
}

.kt-lisovna-counter strong {
    color: #fbbf24;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kt-lisovna-counter-reset {
    min-width: 190px;
    min-height: 64px;
    padding: 12px 18px;
    border: 1px solid #475569;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s, filter .12s, opacity .12s, border-color .12s;
}

.kt-lisovna-status {
    width: min(720px, 100%);
    min-height: 180px;
    margin: 10vh auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(148,163,184,.26);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
    color: #cbd5e1;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.kt-lisovna-status-error {
    color: #fecaca;
    border-color: rgba(248,113,113,.44);
    background: rgba(127,29,29,.35);
}

@media (max-width: 760px) {
    .kt-lisovna-page {
        gap: 20px;
        padding: 18px 14px 28px;
    }

    .kt-lisovna-header {
        align-items: flex-start;
        min-height: 74px;
        gap: 14px;
    }

    .kt-lisovna-logo {
        width: min(190px, 48vw);
        max-height: 72px;
    }

    .kt-lisovna-title {
        font-size: 1.25rem;
    }

    .kt-lisovna-clock {
        font-size: 2rem;
    }

    .kt-lisovna-operation {
        grid-template-columns: 1fr;
    }

    .kt-lisovna-operation-item {
        min-height: 82px;
    }

    .kt-lisovna-btn-primary {
        min-height: 150px;
    }

    .kt-lisovna-counter {
        align-items: stretch;
        flex-direction: column;
    }

    .kt-lisovna-counter div {
        justify-content: space-between;
    }

    .kt-lisovna-counter-reset {
        width: 100%;
    }
}

/* -- Lisovna DCK: dashboard styling -------------------------------------- */
.kt-lisovna-page {
    --lisovna-side-w: 340px;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: radial-gradient(1200px 800px at 20% 0%,
        #102338 0%, #0c1a2a 40%, #07111c 100%) fixed;
    color: #d6e2ee;
}

.kt-lisovna-info-bar {
    flex-shrink: 0;
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 10px 20px 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.015);
}

.kt-lisovna-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.kt-lisovna-logo {
    width: auto;
    max-width: 320px;
    height: 74px;
    max-height: 74px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.kt-lisovna-top-status {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
    min-width: 0;
}

.kt-lisovna-clock {
    font-family: var(--font-mono);
    min-width: 84px;
    color: #d6e2ee;
    font-size: 1.08rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.kt-lisovna-board {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kt-lisovna-title-row {
    flex-shrink: 0;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}

.kt-lisovna-lis {
    margin: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0;
    color: #c8d8e8;
    font-size: clamp(2rem, 3.9vw, 4.1rem);
    font-weight: 800;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.kt-lisovna-counter {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 4px 14px;
    border: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
}

.kt-lisovna-counter span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.kt-lisovna-counter strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--color-today);
    font-family: var(--font-mono);
    font-size: 3.05rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kt-lisovna-counter-reset {
    min-width: 0;
    min-height: 28px;
    width: fit-content;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
    color: #6b8097;
    font-size: .7rem;
    font-weight: 700;
}

.kt-lisovna-workspace {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--lisovna-side-w);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.kt-lisovna-operation {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
}

.kt-lisovna-row {
    flex: 1;
    min-height: 86px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.kt-lisovna-row:last-child {
    border-bottom: 0;
}

.kt-lisovna-row-label {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #4e627a;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(7,17,28,0.5);
}

.kt-lisovna-row-value {
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 12px 22px;
    color: #d6e2ee;
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.kt-lisovna-mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.kt-lisovna-side {
    min-width: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.kt-lisovna-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.018);
}

.kt-lisovna-panel:last-child {
    border-bottom: 0;
}

.kt-lisovna-panel-title {
    color: #64748b;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.kt-lisovna-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.kt-lisovna-input {
    min-width: 0;
    height: 52px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(7,17,28,0.66);
    color: #d6e2ee;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    outline: none;
}

.kt-lisovna-input:focus {
    border-color: rgba(255,209,74,0.65);
}

.kt-lisovna-small-btn {
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.045);
    color: #c8d8e8;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .12s, transform .1s, opacity .12s;
}

.kt-lisovna-small-btn:active:not(:disabled) {
    transform: scale(.98);
}

.kt-lisovna-small-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.kt-lisovna-person {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kt-lisovna-person span {
    color: var(--color-today);
    font-size: .9rem;
    font-weight: 800;
}

.kt-lisovna-person strong {
    color: #d6e2ee;
    font-size: 1.35rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.kt-lisovna-batch {
    min-height: 46px;
    display: flex;
    align-items: center;
    color: #d6e2ee;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.kt-lisovna-batch.is-empty {
    color: #4e627a;
}

.kt-lisovna-inline-error {
    color: #fca5a5;
    font-size: .78rem;
    font-weight: 700;
}

.kt-lisovna-actions {
    flex-shrink: 0;
    height: 156px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr);
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.02);
    background: rgba(255,255,255,0.015);
}

.kt-lisovna-btn {
    width: 100%;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    color: #fff;
    font-weight: 900;
    line-height: 1.05;
    cursor: pointer;
    transition: filter .12s, opacity .12s;
}

.kt-lisovna-btn i {
    font-size: .78em;
}

.kt-lisovna-btn-primary {
    min-height: 0;
    padding: 0 24px;
    font-size: clamp(2rem, 4.7vw, 4rem);
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: none;
}

.kt-lisovna-btn-secondary {
    min-height: 0;
    padding: 0 22px;
    font-size: clamp(1rem, 2.1vw, 1.55rem);
    background: rgba(255,255,255,0.045);
    color: #c8d8e8;
}

.kt-lisovna-btn:disabled {
    opacity: .34;
    filter: grayscale(.35);
    cursor: not-allowed;
}

.kt-lisovna-status {
    width: auto;
    min-height: 0;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    font-weight: 700;
}

.kt-lisovna-status-error {
    color: #fca5a5;
    background: rgba(127,29,29,.16);
}

@media (max-width: 920px) {
    .kt-lisovna-page {
        --lisovna-side-w: 100%;
        overflow-y: auto;
    }

    .kt-lisovna-info-bar {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 10px;
    }

    .kt-lisovna-brand {
        gap: 14px;
    }

    .kt-lisovna-logo {
        max-width: min(210px, 42vw);
        height: 58px;
        max-height: 58px;
    }

    .kt-lisovna-lis {
        font-size: clamp(1.45rem, 5.2vw, 2.6rem);
    }

    .kt-lisovna-top-status {
        justify-content: space-between;
        gap: 14px;
    }

    .kt-lisovna-board {
        overflow: visible;
    }

    .kt-lisovna-title-row,
    .kt-lisovna-workspace,
    .kt-lisovna-actions {
        grid-template-columns: 1fr;
    }

    .kt-lisovna-title-row {
        min-height: 0;
    }

    .kt-lisovna-counter {
        border-left: 0;
        border-top: 0;
    }

    .kt-lisovna-counter strong {
        font-size: 2.45rem;
    }

    .kt-lisovna-workspace {
        min-height: auto;
    }

    .kt-lisovna-row {
        grid-template-columns: 140px minmax(0, 1fr);
        min-height: 78px;
    }

    .kt-lisovna-side {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .kt-lisovna-actions {
        height: auto;
    }

    .kt-lisovna-btn {
        min-height: 112px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}
