body {
    width: 550px;
    margin: 0;    
    /* overflow-x: hidden; */
    font-size: 13px;
    margin-top: 30px;
}
@media (prefers-color-scheme: dark) {
    body {
        --body-bg-color: #121212;
        background-color: var(--body-bg-color);
        color: #eee;
    }

    a {
        color: #809fff;
    }
}

header {
    font-size: 14px;
    padding: 6px;
    border-bottom: 1px solid #d3d3d3;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    font-weight: bold;
    display: none;
    z-index: 2;
    background-color: #f4f4f4;
    opacity: 1;
}
@media (prefers-color-scheme: dark) {
    header {
        background-color: var(--body-bg-color);
    }
}

#window_actions {
    float: right;
}

#window_actions a {
    margin: 0 6px;
    text-decoration: none;
}

/**************/

/* chrome native colors
https://cs.chromium.org/chromium/src/ui/native_theme/native_theme.cc?type=cs
NativeTheme::NativeTheme()
    : thumb_inactive_color_(0xeaeaea),
      thumb_active_color_(0xf4f4f4),
      track_color_(0xd3d3d3) {
} */

body.with-header
{
    width: 95%;   
    margin: 74px 20px;
}
.with-header header {
    display: block;
}
.with-header #tabs {
    width: 100%;
}
.with-header .search-wrapper {
    top: 34px;
}

.search-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}
.search-input {
    padding: 8px 5px 5px 5px; 
    margin: 0 0 5px 0;
    width: 100%;
    outline: none;
    border: none;
    border-bottom: 1px solid #d3d3d3;
    /* box-shadow: 0 4px 4px white; */
}
@media (prefers-color-scheme: dark) {
    .search-input  {
        background-color: #181818;
        color: #eee;
        border-bottom: 1px solid #3d3d3d;
        /* box-shadow: 0 4px 4px black; */
    }
}

#tabs.fontsize-12 {
    font-size: 12px;
}
#tabs.fontsize-13 {
    font-size: 13px;
}

/*************/

#tabs .not-found {
    padding: 5px;
}

#tabs .link-list {
    display: table;
    width: 100%;
    table-layout: fixed;
    /* border-spacing: 4px; */
}

#tabs .link-item {
    display: table-row;
    cursor: pointer;  
    height: 25px;
}
#tabs.fontsize-13 .link-item {
    height: 30px;
}
#tabs .link-item:hover {
    background-color: #f4f4f4;
}
@media (prefers-color-scheme: dark) {
    #tabs .link-item:hover {
      background-color: #3d3d3d;
    }
}
#tabs .link-item > div {
    display: table-cell;
    vertical-align: middle;
    padding-left: 5px; 
    /* padding: 5px 0px 5px 5px; */
    /* border-bottom: 1px solid rgba(0,0,0,0.07);   */
}
#tabs .link-item .link-icon {
    width: 20px;
}
#tabs .link-item .link-icon img {
    width: 16px;
    height: 16px;
    margin-top: 2px;  
}
/* #tabs.fontsize-13 .link-item .link-icon img{ 
    margin-top: 1px; 
} */
#tabs .link-item .link-title {
    /* font-weight: normal; */
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap;
}
#tabs .link-item .link-time {
    width: 60px;
    text-align: right;
    padding-right: 5px; 
}
/* #tabs .link-item-session-win {
    font-weight: bold;
} */
@media (prefers-color-scheme: dark) {
    #tabs .link-item-session-win .link-icon img {
        filter: invert(0.8);
        /* opacity: 0.8; */
    }
}

#tabs .dev-item {
    cursor: pointer;
    /* height: 25px; */
    padding: 4px;
}
#tabs .dev-item .dev-icon {
    float: left;
    width: 12px;
}
#tabs .dev-item .dev-icon img{ 
    width: 10px;
    height: 10px;
    /* vertical-align: top;
    margin-top: 3px; */
}
@media (prefers-color-scheme: dark) {
    #tabs .dev-item .dev-icon img {
        filter: invert(0.8);
        /* opacity: 0.8; */
    }
}
/* #tabs.fontsize-13 .dev-item .dev-icon img{ 
    margin-top: 4px; 
} */
#tabs .dev-item .dev-title {
    width: 100%;
    font-weight: bold;
    /* font-size: 1.1em; */
}

/* Highlight the active row when focused */
#tabs .link-item:focus {
    background-color: #e0e0e0;
}
@media (prefers-color-scheme: dark) {
    #tabs .link-item:focus {
        background-color: #4d4d4d;
    }
}

/* Ensure focused row is visible within the window */
#tabs .link-item:focus {
    outline: none;
    scroll-margin: 50px;
}
