css
/* Globální reset a nastavení písma */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

  
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        h1 {
            color: #333;
            margin-bottom: 20px;
        }
        .container {
            width: 100%;
            max-width: 500px;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }
        .row {
            display: flex;
            gap: 10px;
            justify-content: space-between;
            margin-bottom: 15px;
            width: 100%;
        }
        .row button {
            flex: 1;
        }
        button {
            padding: 15px 12px;
            font-size: 16px;
            font-weight: bold;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            color: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        button:active {
            transform: scale(0.98);
        }
        
        /* Všechna tlačítka jsou sjednocená do zelené */
        .btn-green { background-color: #28a745; }
        .btn-green:hover { background-color: #218838; }
        
        /* Pouze ukončit jízdu zůstává oranžové */
        .btn-orange { background-color: #fd7e14; }
        .btn-orange:hover { background-color: #e0650d; }

        .hidden {
            display: none !important;
        }
        #status-display {
            font-size: 12px;
            color: #666;
            text-align: center;
            margin-bottom: 15px;
            background: #e9ecef;
            padding: 8px;
            border-radius: 5px;
            width: 100%;
            box-sizing: border-box;
        }
    </style>


/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
body {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Hlavní kontejner aplikace */
.app-container {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Hlavička */
.app-header {
    background: #1e293b;
    color: #ffffff;
    padding: 30px 24px;
    text-align: center;
}

.app-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}

.app-subtitle {
    color: #94a3b8;
    font-size: 14px;
}

/* Mřížka pro karty (Dashboard) */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

/* Responzivita: Na tabletech a PC budou vedle sebe */
@media (min-width: 600px) {
    .dashboard-grid {
        flex-direction: row;
    }
}

/* Styl jednotlivých karet */
.card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h2 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Univerzální vzhled tlačítek */
.btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

/* 🟢 Výchozí zelená pro všechna tlačítka */
.btn-success {
    background-color: #16a34a;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #15803d;
}

/* 🟠 Oranžová třída, kterou JavaScript zapne/vypne */
.btn-orange {
    background-color: #ea580c !important; /* !important zajistí přebití zelené barvy */
    color: #ffffff;
}

.btn-orange:hover {
    background-color: #c2410c !important;
}

button, 
input[type="button"], 
input[type="submit"], 
.button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    background-color: #16a34a;
}
button:hover, 
input[type="button"]:hover, 
input[type="submit"]:hover, 
.button:hover {
    background-color: #15803d;
}


/* Patička */
.app-footer {
    background: #f1f5f9;
    padding: 12px 24px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.app-footer p {
    font-size: 12px;
    color: #94a3b8;
}

/* Globální reset a nastavení pro mobilní displej */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden; /* Zamezí jakémukoliv scrollování */
}

/* Hlavní kontejner napasovaný na obrazovku mobilu */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 8px;
    gap: 6px; /* Těsné, ale přehledné mezery mezi řádky */
    justify-content: space-between;
}

/* Nastavení jednotlivých řádků */
.row {
    display: flex;
    width: 100%;
    gap: 5px;
    flex: 1; /* Každý řádek dostane stejný podíl výšky */
    min-height: 0; /* Prevence přetékání ve flexboxu */
}

/* Specifické řádky */
.empty-row {
    flex: 0.5; /* Užší prázdný řádek */
    visibility: hidden;
}

.right-align {
    justify-content: flex-end;
}

/* Malé tlačítko "dnes" (seznam dnešních akcí) v dolní řadě oken strojů */
.row .btn-dnes {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 4px 10px;
    font-size: 13px;
    background-color: #6c757d;
    border: none;
    color: #ffffff;
}

.right-align button {
    flex: 0 1 60%; /* Tlačítko na posledním řádku zabere max 60% šířky napravo */
}

/* ČERNOBÍLÁ EDITAČNÍ POLE */
.input-field {
    flex: 1;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 6px;
    padding: 2px 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    min-width: 0; /* Umožní vstupu zmenšit se ve flex řádku */
}

.input-field:focus {
    outline: none;
    background-color: #f0f0f0;
}

/* ZELENÁ TLAČÍTKA NA BÍLÉM POZADÍ */
.btn {
    flex: 1;
    background-color: #28a745; /* Zelená barva */
    color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px 4px;
    min-width: 0;
    transition: background-color 0.1s ease;
}

.btn:active {
    background-color: #1e7e34; /* Tmavší zelená při stisku na mobilu */
    border-color: #1e7e34;
}

/* Kontejner a obrázek pro 2. řádek */
.image-preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    overflow: hidden;
}

.hidden-image {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Zobrazený stav obrázku */
.visible-image {
    display: block;
}

/* Drobný text verze v patičce */
.version-footer {
    position: absolute;
    bottom: 2px;
    left: 8px;
    font-size: 9px;
    color: #aaa;
    pointer-events: none;
}
 #status-display {
            font-size: 12px;
            color: #666;
            text-align: left;
            margin-bottom: 15px;
            background: #e9ecef;
            padding: 10px;
            border-radius: 5px;
            width: 100%;
            box-sizing: border-box;
            white-space: pre-wrap;
            line-height: 1.4;
        }







