/* Celý obsah stránky omezíme na max. 1024px a vystředíme */
.page-wrapper {
 ;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hlavní horní banner */
.main-header {
    background-color: #007bff;
    color: white;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.header-content h1 {
    margin: 0;
    font-size: 1.6em;
    text-align: center;
}

/* Menu uvnitř headeru */
.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #0056b3;
}

/* Bílý obsahový rámeček */
.content-box {
    background: white;
    width: 100%;
    max-width: 1185px;
    margin: 20px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Zarovnání login boxu uvnitř content-boxu */
.login-wrapper {
    display: flex;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.login-box label {
    font-weight: bold;
    margin-bottom: 5px;
}

.login-box input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-box button {
    padding: 12px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.login-box button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    text-align: center;
}

/* Styl pro tabulky zařízení a typů */
.styled-table {
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    width: 100%;
    max-width: 1200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.styled-table thead tr {
    background-color: #e0e0e0; /* světle šedá hlavička */
    color: #333;
    text-align: center;
    font-weight: bold;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.styled-table tbody tr {
    background-color: #f9f9f9;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f1f1f1;
}

.styled-table tbody tr:hover {
    background-color: #e1ecf7;
    transition: background-color 0.3s ease;
}

.action-icons {
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 5px;
    color: #007bff;
}

.action-icons:hover {
    color: #0056b3;
}


@media (max-width: 768px) {
    .main-header,
    .content-box {
        max-width: 95%;
        border-radius: 10px;
        margin: 10px;
        padding: 15px;
    }

    .login-box {
        max-width: 100%;
        padding: 20px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-menu li a {
        padding: 8px 12px;
        font-size: 0.95em;
    }
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.form-wrapper h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.form-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-wrapper input,
.form-wrapper select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-wrapper .form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-wrapper button {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.form-wrapper .btn-add {
    background-color: #28a745;
    color: white;
}

.form-wrapper .btn-back {
    background-color: #dc3545;
    color: white;
}

.form-wrapper .btn-add:hover {
    background-color: #218838;
}

.form-wrapper .btn-back:hover {
    background-color: #c82333;
}

.device-password {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.device-password input {
    border: none;
    background: none;
    font-family: monospace;
    font-size: 1em;
    width: auto;
    text-align: center;
    padding: 0;
    outline: none;
    pointer-events: none;
    color: #333;
}


.device-password .eye {
    position: absolute;
    right: -20px;
    top: 2px;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: bold;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: white;
    padding: 10px 14px;
    display: block;
}

.menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #007bff;
    padding: 0;
    min-width: 160px;
    z-index: 1000;
}

.menu .submenu li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.menu .submenu li:last-child {
    border-bottom: none;
}

.menu .submenu a {
    color: white;
}

.menu .dropdown:hover .submenu {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header h1 {
    text-align: center;
    margin: 0;
}

.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f1f1;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.checkbox-inline input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
.checkbox-wrapper input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}
.checkbox-wrapper label {
    font-size: 16px;
}

.pozdrav {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
}

.region {
  font-size: 20px;
  color: #555;
  margin-bottom: 30px;
  text-align: center;
}

.tabulka-status {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
  max-width: 800px;
}

.box {
  flex: 1 1 30%;
  padding: 20px;
  border-radius: 10px;
  font-weight: bold;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.box:hover {
  transform: scale(1.05);
}

.offline {
  background-color: #ffcccc;
  color: #990000;
}

.online {
  background-color: #ccffcc;
  color: #006600;
}

.detail {
  background-color: #cce5ff;
  color: #004085;
}

.detail a {
  text-decoration: none;
  color: inherit;
}

.dashboard-wrapper {
    padding: 20px;
}

.dashboard-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.area-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px; /* místo 20px */
    margin-bottom: 20px; /* místo 30px */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.area-card h2 {
    margin: 1px 0 1px 0; /* menší horní a dolní mezera */
    font-size: 20px; /* trochu menší písmo */
    font-weight: 600;
    color: #333;
}


.stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 0 0 150px; /* pevná šířka 150px */
    background: #eee;
    border-radius: 8px;
    padding: 8px 10px; /* ještě menší vnitřní okraje */
    text-align: center;
    transition: transform 0.3s;
    height: 70px; /* ještě nižší box */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-box:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.stat-label {
    margin-top: 4px;
    font-size: 12px;
    color: #555;
}

.stat-box.total {
    background: #d6d6d6;
}

.stat-box.online {
    background: #c8f7c5;
}

.stat-box.offline {
    background: #f7c5c5;
}

.stat-box.inactive {
    background: #ffe4b2;
}

/* Offline zařízení tabulka */
.offline-devices-table {
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.offline-devices-table h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.offline-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.offline-table th {
    background-color: #ffdddd;
    color: #990000;
    font-weight: bold;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.offline-table td {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.offline-table tr.offline-row {
    background-color: #ffe6e6;
}

.offline-table tr.offline-row:hover {
    background-color: #ffd6d6;
}

.offline-table a {
    color: inherit;
    text-decoration: none;
}

.offline-table a:hover {
    text-decoration: underline;
    color: inherit;
}


/* Responsive fix pro menší displeje */
@media (max-width: 768px) {
    .offline-table th,
    .offline-table td {
        padding: 8px;
        font-size: 12px;
    }
}

.refresh-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.greeting {
    font-size: 24px;
    font-weight: bold;
}

.refresh-time {
    font-size: 24px;
    color: #555;
}

table.area-settings {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 20px;
}

table.area-settings th, table.area-settings td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    font-size: 14px;
}

table.area-settings th {
    background-color: #f0f0f0;
    text-align: center;
}

table.area-settings td {
    vertical-align: middle;
}

table.area-settings input[type="checkbox"] {
    transform: scale(1.2);
}

/* Mobilní zobrazení tabulky oblastí */
@media (max-width: 600px) {
    table.area-settings {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table.area-settings th,
    table.area-settings td {
        font-size: 13px;
        padding: 4px 6px;
    }

    table.area-settings input[type="checkbox"] {
        transform: scale(1.1);
    }
}

.form-standard {
    max-width: 600px;
    margin-top: 20px;
}

.form-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.form-row label {
    width: 220px;
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="password"],
.form-row select {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-row.buttons {
    justify-content: flex-start;
    gap: 10px;
}

button.btn-save {
    background-color: #4CAF50; /* zelená */
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
}

button.btn-save:hover {
    background-color: #45a049;
}

ul.tree-root,
ul.tree-root ul {
    position: relative;
    padding-left: 20px;
    margin-left: 6px;
    border-left: 1px solid #bbb;
    max-height: none;
    overflow: visible;
    opacity: 1;
    transition: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.tree-node {
    display: inline-block;
    max-width: 800px;
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.expanded > ul {
    display: block !important;
}

.expand-icon {
    display: inline-block;
    width: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.tree-actions {
    margin-bottom: 15px;
}

.tree-node a.edit-icon {
    float: right;
    text-decoration: none;
    margin-left: 10px;
}

.tree-node a.edit-icon svg {
    width: 16px;
    height: 16px;
    fill: black;
    vertical-align: middle;
}

/* Barvy podle stavu */
.bg-inactive {
    background-color: #e0e0e0;
}

.bg-online {
    background-color: #c8f7c5; /* světle zelená */
}

.bg-offline {
    background-color: #f7c5c5; /* světle červená */
}

.bg-client-online {
    background: linear-gradient(90deg, #fff4aa 50%, #c8f7c5 50%);
}

.bg-client-offline {
    background: linear-gradient(90deg, #fff4aa 50%, #f7c5c5 50%);
}

.tree-search {
    margin-bottom: 15px;
    position: relative;
}

.tree-search input {
    width: 100%;
    max-width: 500px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.autocomplete-box {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    max-width: 500px;
    z-index: 1000;
    display: none;
}

.autocomplete-box div {
    padding: 6px 10px;
    cursor: pointer;
}

.autocomplete-box div:hover {
    background-color: #eee;
}

.tree-node.highlight {
    outline: 2px solid orange;
    border-radius: 4px;
}

/* === Strom: struktura a čáry === */
.tree-root ul {
    position: relative;
    padding-left: 20px;
    margin-left: 6px;
    border-left: 1px solid #bbb;
    max-height: none;
    overflow: visible;
    opacity: 1;
    transition: none;
}

.tree-root li {
    position: relative;
}

/* Větev po rozbalení */
.tree-root li.expanded > ul {
    max-height: 1000px; /* Dostačující pro většinu případů */
    opacity: 1;
}

/* Vodorovná spojnice mezi uzly */
.tree-root li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: -20px;
    width: 20px;
    height: 1px;
    background: #bbb;
}

.status-change-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 14px;
    border: 1px solid #ccc;
}

.status-change-table th {
    background-color: #4a4a4a;
    color: white;
    padding: 8px;
    text-align: left;
    font-weight: bold;
}

.status-change-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

/* Online stav – zelený odstín jako .stat-box.online */
.status-online {
    background-color: #c8f7c5;
}

/* Offline stav – červený odstín jako .stat-box.offline */
.status-offline {
    background-color: #f5d9d9;
}

.status-change-table a {
    color: inherit;
    text-decoration: none;
}

.status-change-table a:hover {
    text-decoration: underline;
    color: inherit;
}

.device-status-wrapper {
    max-width: 1180px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.device-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.form-box {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-box label {
    display: block;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-box input[type="radio"] {
    margin-right: 10px;
}

.form-box label:hover {
    background: #f0f0f0;
}

.form-box input[type="submit"] {
    width: 100%;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-box input[type="submit"]:hover {
    background-color: #0056b3;
}

.autocomplete-box {
    position: relative;
    max-width: 400px;
    margin: 40px auto;
}
#deviceSearch {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
.suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 10;
    width: 100%;
}
.suggestions div {
    padding: 10px;
    cursor: pointer;
}
.suggestions div:hover {
    background-color: #f0f0f0;
}

.device-search-wrapper {
  max-width: 500px;
  margin: 40px auto;
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-family: sans-serif;
}

.device-search-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: #333;
}

.device-autocomplete {
  position: relative;
}

#deviceSearchInput {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 6px;
  box-sizing: border-box;
}

#deviceSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 100;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 6px 6px;
}

#deviceSuggestions div {
  padding: 10px;
  cursor: pointer;
}

#deviceSuggestions div:hover {
  background: #f0f0f0;
}

.ui-autocomplete {
    z-index: 9999;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    display: block !important;
}

.btn.btn-sm.btn-success {
    background-color: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
.btn.btn-sm.btn-success:hover {
    background-color: #218838;
}

.btn-snmp {
    background-color: #e0e0e0;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}
.btn-snmp:hover {
    background-color: #d0d0d0;
}

.btn-add {
    background-color: #e0e0e0;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}
.btn-add:hover {
    background-color: #ccc;
}

.icon-link {
    font-size: 1.2em;
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s;
}
.icon-link:hover {
    color: #0056b3;
}

.btn-add {
    background-color: #e0e0e0;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s;
}
.btn-add:hover {
    background-color: #ccc;
}

.btn-back {
    background-color: #ddd;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
.btn-back:hover {
    background-color: #bbb;
}

.icon-link {
    font-size: 1.3em;
    margin: 0 5px;
    text-decoration: none;
    color: #007bff;
}
.icon-link:hover {
    color: #0056b3;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  line-height: 1.2;
}

.checkbox-row input[type="checkbox"] {
  margin: 0;
}

/* checkbox row */
.form-inline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  margin-bottom: 20px; /* větší mezera nad tlačítky */
}

/* přebití globálních label stylů jen pro tento řádek */
.form-inline .inline-label{
  display:inline !important;
  width:auto !important;
  text-align:left !important;
  margin:0;
}

/* ať checkbox neskočí mimo osu kvůli resetům */
.form-inline input[type="checkbox"]{
  margin:0;
}

.btn-toggle{ border:1px solid #cbd5e1; background:#e2e8f0; border-radius:6px; padding:2px 6px; cursor:pointer; font-weight:600; margin-right:6px; }
.btn-toggle:hover{ background:#cbd5e1; }
.muted{ color:#777; }

.bg-danger{ background:#dc3545; color:#fff; padding:2px 6px; border-radius:6px; }
.bg-success{ background:#198754; color:#fff; padding:2px 6px; border-radius:6px; }
.bg-secondary{ background:#6c757d; color:#fff; padding:2px 6px; border-radius:6px; }
.muted{ color:#777; }


/* SNMP rychlosti portů */
.speed-1g {
    background-color: #d4edda;      /* světle zelená */
    font-weight: bold;
}

.speed-100m {
    background-color: #fff3cd;      /* světle žlutá */
    font-weight: bold;
}

.speed-10m {
    background-color: #f8d7da;      /* světle červená */
    font-weight: bold;
}

.speed-nolink {
    background-color: #e2e3e5;      /* šedá */
    color: #6c757d;
}

.speed-other {
    background-color: #e0f0ff;      /* světle modrá pro “divné” rychlosti */
}

/* ===========================
   LOGIN LOG – FILTRY
=========================== */

.loginlog-filter-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

.loginlog-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.loginlog-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f1f1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.loginlog-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.loginlog-search-row input[type="text"] {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 260px;
}

.loginlog-search-row button {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #e0e0e0;
    cursor: pointer;
    font-weight: bold;
}

.loginlog-search-row button:hover {
    background-color: #ccc;
}

/* ===========================
   LOGIN LOG – TABULKA
=========================== */

.loginlog-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.loginlog-table thead tr {
    background-color: #e0e0e0;
}

.loginlog-table th,
.loginlog-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    white-space: nowrap;
}

.loginlog-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.loginlog-table tbody tr:hover {
    background-color: #e1ecf7;
}

/* Stav akce */
.loginlog-login {
    color: #198754;
    font-weight: bold;
}

.loginlog-logout {
    color: #dc3545;
    font-weight: bold;
}

/* ===========================
   LOGIN LOG – ŘAZENÍ
=========================== */

.sort-link {
    text-decoration: none;
    color: inherit;
}

.sort-link:hover {
    text-decoration: underline;
}

.sort-arrow {
    font-size: 12px;
    margin-left: 4px;
}

/* ===========================
   LOGIN LOG – PAGINACE
=========================== */

.loginlog-pagination {
    margin-top: 20px;
}

.loginlog-pagination a {
    padding: 6px 10px;
    margin-right: 4px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
}

.loginlog-pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* =========================
   LOGIN LOG – PAGINATION
========================= */
.loginlog-pagination {
    margin-top: 18px;
    text-align: center;
    user-select: none;
}

.loginlog-pagination a {
    display: inline-block;
    min-width: 34px;
    padding: 6px 10px;
    margin: 0 3px;
    border: 1px solid #cfd6e0;
    border-radius: 4px;
    background: #ffffff;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.loginlog-pagination a:hover {
    background: #f0f4ff;
    border-color: #6c8cff;
    color: #1a3cff;
}

.loginlog-pagination a.active {
    background: #6c8cff;
    border-color: #4b6cff;
    color: #ffffff;
    font-weight: bold;
    cursor: default;
}

