/* =========================================================
   GC TABLE TOOLS
   Toolbar, označování, clipboard, oblíbené, špendlík,
   terč, historie a sticky hlavičky.
   ========================================================= */

.table-tools {
    display: flex;
    gap: 2px;
    justify-content: flex-end;
    align-items: center;
    margin: 12px 0 0 0;
}

.table-tools button,
.table-tools .btn,
.table-tools .btn.btn-xs.btn-default {
    padding: 0 1px !important;
    margin: 0 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.table-tools .copy-buffer-btn,
.table-tools .repeat-last-row-btn,
.table-tools .sticky-table-header-btn {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.table-tools .copy-buffer-btn.is-disabled,
.table-tools .repeat-last-row-btn.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}

.table-tools .sticky-table-header-btn {
    color: #337ab7;
}

.table-tools .sticky-table-header-icon {
    top: 1px;
    font-size: 16px;
    text-shadow:
        .6px 0 0 currentColor,
        -.6px 0 0 currentColor,
        0 .6px 0 currentColor,
        0 -.6px 0 currentColor;
}

.table-tools .sticky-table-header-btn.is-disabled {
    opacity: .35;
    color: #777;
}

.table-tools .select-toggle-img {
    width: 18px;
    height: 18px;
    display: block;
}

/* Označené řádky */
tr.row-selected {
    background-color: #d1d1d1 !important;
}

/* Nápověda v označitelných hlavičkách */
th.selectable-col-header,
th.selectable-col-header b {
    color: #3276b1;
}

/* Sticky tabulka */
.gc-table-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    display: block;
    clear: both;
    max-height: calc(100vh - 260px);
    min-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.gc-table-scroll-wrapper > table {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-bottom: 0;
}

.gc-table-sticky-disabled {
    max-height: none !important;
    overflow-y: visible !important;
}

.gc-table-scroll-wrapper table tr.gc-sticky-header-row th {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #f5f5f5;
    box-shadow: 0 1px 0 #ddd;
}

.gc-table-scroll-wrapper table tr.gc-sticky-sort-row th {
    position: sticky;
    z-index: 29;
    background: #fff;
    box-shadow: 0 1px 0 #ddd;
}

.gc-table-scroll-wrapper table th a,
.gc-table-scroll-wrapper table th span,
.gc-table-scroll-wrapper table th b {
    position: relative;
    z-index: 31;
}

.gc-table-scroll-wrapper table tr.dataRow:hover,
.gc-table-scroll-wrapper table tr.dataRowClick:hover {
    background-color: #f5f5f5;
}

/* Oblíbené */
.favorite-header-col,
.favorite-cell {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    text-align: center;
    vertical-align: middle !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.favorite-header-star {
    color: #999;
    font-size: 16px;
    cursor: pointer;
}

.favorite-header-star:hover {
    color: #d58512;
}

.favorite-header-star.favorite-header-active {
    color: #f0ad4e;
}

.favorite-star {
    color: #999;
    font-size: 14px;
    cursor: pointer;
}

.favorite-star:hover {
    color: #d58512;
}

.favorite-star.favorite-active {
    color: #f0ad4e;
}

/* Poslední obnovený řádek */
.last-clicked-row-highlight {
    background-color: #fff3cd !important;
    transition: background-color .5s ease;
}

/* Historie prohlížení */
.browsing-history-tab-content {
    margin-top: 15px;
}

.browsing-history-day-section,
.browsing-history-page-section {
    margin-bottom: 22px;
}

.browsing-history-day-title,
.browsing-history-page-title {
    margin: 18px 0 8px 0;
    padding: 6px 34px 6px 10px;
    background: #f5f5f5;
    font-weight: bold;
    position: relative;
}

.browsing-history-day-title {
    border-left: 4px solid #999;
}

.browsing-history-page-title {
    border-left: 4px solid #337ab7;
}

.browsing-history-day-section:first-child .browsing-history-day-title,
.browsing-history-page-section:first-child .browsing-history-page-title {
    margin-top: 0;
}

.browsing-history-day-table {
    table-layout: fixed;
    margin-bottom: 0;
}

.browsing-history-day-table th.history-time-col,
.browsing-history-day-table td.history-time-col {
    width: 75px;
    white-space: nowrap;
}

.browsing-history-day-table th.history-page-col,
.browsing-history-day-table td.history-page-col {
    width: 190px;
}

.browsing-history-day-table td.history-page-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browsing-history-day-table th.history-date-time-col,
.browsing-history-day-table td.history-date-time-col {
    width: 190px;
    white-space: nowrap;
}

.browsing-history-clickable-row {
    cursor: pointer;
}

.browsing-history-clickable-row:hover td {
    background-color: #eef5ff !important;
}

.browsing-history-day-clear,
.browsing-history-page-clear {
    position: absolute;
    right: 8px;
    top: 5px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
}

.browsing-history-day-clear:hover,
.browsing-history-page-clear:hover {
    color: #a94442;
}
