.prihlaseni {
    text-align: center;
    align-items: center;
    display: flex ;
    flex-wrap: wrap;
  
    justify-content: center;
    height:   100vh  ;
    
    background-image: linear-gradient(to right, #838383, #4b3627);
    font-family: Arial, sans-serif;
 
     
}
.prihlaseni div {
 
    padding: 10px;
 
    border-radius: 5px;
 
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.menu {
    background: #222;
    overflow: hidden;
}

.menu a {
    float: left;
    display: block;
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    transition: background 0.2s;
}

.menu a:hover {
    background: #575757;
}

.menu .icon {
    display: none;
}

@media screen and (max-width:600px) {
    .menu a:not(:first-child) {display:none;}
    .menu a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width:600px) {
    .menu.responsive {position: relative;}
    .menu.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .menu.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

 

.nadpis {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #c52222;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.auto-form {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    max-width: 350px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.auto-form label {
    display: block;
    margin-bottom: 0.7rem;
    color: #222;
    font-weight: 500;
}

.auto-form input[type="text"] {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    background: #fff;
}

.auto-textarea {
    width: 100%;
    height: 80px;
    resize: none;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    background: #fff;
}

.auto-btn {
    background: #303468;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.auto-btn:hover {
    background: #aca8a8;
}

.auta-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
    width: 100%;
    min-width: 0;
}

.auta-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.auta-table th, .auta-table td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.7rem;
    text-align: left;
}

.auta-table th {
    background: #ffffff;
    color: #361d1d;
    font-weight: 600;
}

.auta-table tr:nth-child(even) {
    background: #f3f3f3;
}

.auta-edit {
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}
.auta-edit:hover {
    color: #0d47a1;
}

/* Flexbox pro dvě pole vedle sebe v servis.php */
.servis-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.servis-row label {
    flex: 1 1 150px;
    min-width: 120px;
    margin-bottom: 0.3rem;
}
@media screen and (max-width: 600px) {
    .servis-row {
        flex-direction: row;
        gap: 0.5rem;
    }
    .servis-row label {
        min-width: 0;
        margin-bottom: 0.18rem;
        flex: 1 1 45%;
    }
}
@media screen and (max-width: 400px) {
    .servis-row {
        flex-direction: column;
        gap: 0;
    }
    .servis-row label {
        flex: 1 1 100%;
    }
}
@media screen and (max-width: 800px) {
    .auto-form, .auta-table-wrap {
        max-width: 100%;
        padding: 0.2rem;
    }
    .auto-form label {
        font-size: 0.98rem;
    }
    .auto-form input[type="text"], .auto-textarea {
        font-size: 0.98rem;
    }
    .nadpis {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 600px) {
    .auto-form, .auta-table-wrap {
        max-width: 100%;
        padding: 0.5rem 0.2rem;
    }
    .auto-form {
        box-shadow: none;
        padding: 0.5rem 0.2rem;
        border-radius: 0;
        background: #fff;
        max-width: 100%;
    }
    .auto-form label {
        font-size: 0.97rem;
        margin-bottom: 0.2rem;
        padding: 0;
    }
    .auto-form input[type="text"],
    .auto-form input[type="date"],
    .auto-form input[type="number"],
    .auto-textarea,
    select {
        font-size: 0.97rem;
        padding: 0.18rem 0.25rem;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.18rem;
        border-radius: 3px;
    }
    .servis-row {
        flex-direction: column;
        gap: 0;
    }
    .servis-row label {
        min-width: 0;
        margin-bottom: 0.18rem;
    }
    .servis-poznamka {
        margin-top: 0.3rem;
        margin-bottom: 0.2rem;
    }
    .auto-btn {
        width: 100%;
        min-width: 90px;
        padding: 0.6rem 0;
        font-size: 1.07rem;
        margin-top: 0.5rem;
        border-radius: 3px;
    }
    .nadpis {
        font-size: 1.05rem;
        margin-top: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

/* Poznámka vždy samostatně i na větších displejích */
.servis-poznamka {
    display: block;
    margin-top: 0.7rem;
    margin-bottom: 0.3rem;
}

@media screen and (max-width: 500px) {
    .auto-form, .auta-table-wrap {
        padding: 0;
    }
    .auto-form input[type="text"], .auto-textarea {
        font-size: 0.92rem;
        padding: 0.25rem 0.3rem;
    }
    .auta-table th, .auta-table td {
        font-size: 0.9rem;
    }
    .nadpis {
        font-size: 0.95rem;
    }
    .auta-table {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .auto-form {
        padding: 0.3rem 0.1rem;
    }
    .auto-form label {
        font-size: 0.93rem;
    }
    .auto-form input[type="text"],
    .auto-form input[type="date"],
    .auto-form input[type="number"],
    .auto-textarea,
    select {
        font-size: 0.93rem;
        padding: 0.15rem 0.2rem;
        margin-bottom: 0.2rem;
    }
    .auto-btn {
        font-size: 0.97rem;
        padding: 0.4rem 0.5rem;
        min-width: 70px;
    }
    .nadpis {
        font-size: 0.95rem;
        margin-top: 0.5rem;
        margin-bottom: 0.3rem;
    }
    .auta-table, .auta-table thead, .auta-table tbody, .auta-table th, .auta-table td, .auta-table tr {
        display: block;
    }
    .auta-table thead {
        display: none;
    }
    .auta-table tr {
        margin-bottom: 1.1rem;
        border-bottom: 2px solid #eee;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    }
    .auta-table td {
        border: none;
        position: relative;
        padding-left: 45%;
        min-height: 32px;
        font-size: 1rem;
        text-align: left;
        background: #fff;
    }
    .auta-table td:before {
        position: absolute;
        top: 0;
        left: 0.7rem;
        width: 42%;
        white-space: nowrap;
        font-weight: bold;
        color: #222;
        font-size: 0.98rem;
        content: attr(data-label);
    }
    .auta-edit {
        display: block;
        margin-top: 0.5rem;
        font-size: 1.05rem;
    }
}