*,
*:after,
*::before {
     padding: 0;
     margin: 0;
     box-sizing: border-box;
}

html,
body {
     font-family: 'Ubuntu', serif;
     margin: 0;
     padding: 18px;
     background-color: #4a6f;
}

.container {
     width: 100%;
     max-width: 100%;
     padding: 0;
     background: #ddd;
     border-radius: 8px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.table-responsive {
     width: 100%;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
}

h1 {
     color: #222;
     text-align: center;
     margin-top: 30px;
     margin-bottom: 30px;
}

#clients-table {
     width: max-content;
     min-width: 1200px;
     margin-top: 10px;
     border-collapse: collapse;
     background-color: #f9f9f9;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#clients-table th,
#clients-table td {
     padding: 12px 15px;
     text-align: left;
     border-bottom: 1px solid #ddd;
     border-right: 1px solid #ddd;
}

#clients-table th {
     background-color: #999;
     color: #fff;
     font-weight: 600;
}

tbody tr:hover {
     background-color: saddlebrown;
}

#clients-table td[contenteditable="true"] {
     background-color: #fffbeb;
     cursor: text;
     border: 1px solid #999;
     outline: none;
}

#clients-table td[contenteditable="true"]:focus {
     background-color: #fff;
     box-shadow: inset 0 0 0 2px #666;
     border-color: #333;
}

/* Zabrání splývání buněk a styluje řádky na přeskáčku */
#clients-data tr:nth-child(even) {
     background-color: #f2f2f2;
}

#clients-data tr:hover {
     background-color: #e9e9e9;
}

.btn {
     display: inline-block;
     margin: 10px;
     margin-top: 15px;
     padding: 10px 20px;
     background-color: #666;
     color: #fff;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-size: 16px;
     font-weight: bold;
     transition: background-color 0.3s;
}

#button {
     float: inline-end;
     padding: 10px 20px;
     margin: 10px;
     margin-top: 15px;
     font-size: 16px;
     background: #222;
     color: white;
     font-weight: bold;
     border: none;
     border-radius: 4px;
     cursor: pointer;
}

.btn:hover {
     background-color: #444;
}

.btn-delete:hover {
     background-color: #c0392b;
}

@media (max-width: 768px) {

     html,
     body {
          padding: 10px;
     }

     h1 {
          font-size: 1.5rem;
          margin: 18px 0;
     }

     #clients-table th,
     #clients-table td {
          padding: 10px 12px;
     }

     .btn,
     #button {
          margin: 10px 6px;
          padding: 10px 14px;
          font-size: 14px;
     }

     #button {
          float: none;
     }
}