/* Úřední deska Hřensko — stylesheet v1.0.0 */

.udh-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    margin: 1.5rem 0;
    line-height: 1.5;
}

/* Header */
.udh-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1rem;
}
.udh-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.udh-title svg { color: #666; flex-shrink: 0; }
.udh-subtitle { font-size: 13px; color: #777; margin-top: 3px; }

/* Stats */
.udh-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 1rem;
}
.udh-stat {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px 14px;
}
.udh-stat-l {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.udh-stat-v {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Controls */
.udh-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
    align-items: center;
}
.udh-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}
.udh-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}
.udh-search {
    width: 100%;
    padding: 7px 10px 7px 34px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.udh-search:focus { border-color: #5a6fa0; box-shadow: 0 0 0 2px rgba(90,111,160,.15); }
.udh-select {
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}
.udh-select:focus { border-color: #5a6fa0; }

/* Table */
.udh-table-wrap {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}
.udh-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.udh-table thead { background: #f7f7f7; }
.udh-table th {
    padding: 9px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
}
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: #1a1a1a; }

.udh-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.udh-table tbody tr:last-child td { border-bottom: none; }
.udh-table tbody tr:hover td { background: #fafafa; }

/* Column widths */
.udh-col-nazev { width: 36%; }
.udh-col-znacka { width: 9%; }
.udh-col-typ { width: 17%; }
.udh-col-puvod { width: 20%; }
.udh-col-od { width: 11%; }
.udh-col-soub { width: 7%; text-align: center; }

/* Badges */
.udh-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.udh-badge-o    { background: #ddeeff; color: #1a4a7a; }
.udh-badge-vv   { background: #fde8e0; color: #8b2a10; }
.udh-badge-u    { background: #d6f5e8; color: #0a5a35; }
.udh-badge-ro   { background: #fef3da; color: #7a4500; }
.udh-badge-v    { background: #eeeafd; color: #3a2a90; }
.udh-badge-other{ background: #f0f0f0; color: #666; }

/* Empty state */
.udh-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
    font-size: 14px;
}

/* Pagination */
.udh-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    gap: 8px;
}
.udh-pages { display: flex; gap: 4px; flex-wrap: wrap; }
.udh-pgbtn {
    padding: 4px 9px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    transition: background 0.1s, color 0.1s;
}
.udh-pgbtn:hover { background: #f0f0f0; color: #1a1a1a; }
.udh-pgbtn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; font-weight: 600; }
.udh-pgbtn[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }

/* Responsive */
@media (max-width: 640px) {
    .udh-col-puvod,
    .udh-col-znacka { display: none; }
    .udh-col-nazev  { width: 52%; }
    .udh-col-typ    { width: 28%; }
    .udh-col-od     { width: 13%; }
    .udh-col-soub   { width: 7%; }
    .udh-controls   { flex-direction: column; }
    .udh-search-wrap, .udh-select { width: 100%; box-sizing: border-box; }
}
