:root {
    --bg: #ffffff;
    --text: #000000;
    --header-bg: #f0f0f0;
    --row-hover: #e8e8e8;
    --border: #cccccc;
    --input-bg: #ffffff;
}

body.dark {
    --bg: #1e1e1e;
    --text: #f0f0f0;
    --header-bg: #2c2c2c;
    --row-hover: #333333;
    --border: #444444;
    --input-bg: #2a2a2a;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 10px;
}

#theme-toggle {
    padding: 6px 12px;
    border: 1px solid var(--text);
    background: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 5px;
}

#search {
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    border-radius: 4px;
}

.table-wrapper {
    /*overflow-x: auto;*/
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
}

.styled-table thead {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 2;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.styled-table tbody tr:hover {
    background-color: var(--row-hover);
}

.styled-table th {
    cursor: pointer;
    user-select: none;
}

.styled-table th::after {
    content: " ";
    opacity: 0.3;
}

#customers {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 15px;
    font-size: 0.9em;
}

#customers td, #customers th {
    border: 1px solid rgba(221, 221, 221, 0.71);
    padding: 8px;
}

#customers tr:nth-child(even){background-color: rgba(242, 242, 242, 0.63);}

#customers tr:hover {background-color: rgba(99, 124, 241, 0.4);}

#customers th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: var(--color-odkaz);
    color: white;
    font-size: 0.85em;
}

table.customTable {
    background-color: rgba(255, 255, 255, 0.58);
    border-collapse: collapse;
    border-width: 0;
    width: 100%;
}
table.customTable tr:hover {
    background-color: rgb(187, 199, 241);
}

table.customTable td {
    border-top: 1px;
    border-style: solid;
    padding: 6px;
    border-top-color: rgba(93, 91, 91, 0.47);
}

table.customTable td a{
    color: #e80d0d;
    font-weight: bold;
    margin: 1px 10px 1px 10px;
}

table.customTable td a:hover{
    color: #0685b4;
}

