/*
* This file defines the default style of UltraDefrag reports.
* Save your custom definitions into udreport-custom.css file
* to ensure that they will be not overwritten on upgrade.
*/

/* variables */
:root {
    --brand-color: #2f418e;
    --gap: 15px;
}

/* body */
body {
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* header */
header, header * {
    color: white;
    background-color: var(--brand-color);
    text-decoration: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--gap);
    margin: 10px var(--gap);
}

.site-title {
    flex-grow: 1;
    font-family: sans-serif;
    font-size: 19px;
    font-weight: 500;
}

.search {
    display: flex;
    --border-radius: 24px;
    margin: 0;
}

.search input {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.2;
    color: #3a3a3a !important;
    background-color: white;
    padding-left: 14px;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    border-right: none;
    outline: none;
}

.search button {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 7px 11px;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border-left: none;
    cursor: pointer;
}

.search svg {
    width: 14px;
    height: 14px;
    background-color: white;
}

.search svg path {
    fill: var(--brand-color);
}

.search.mobile button {
    padding: 10px 11px;
}

.top-menu {
    display: grid;
    align-items: center;
}

.top-menu-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-menu svg {
    width: 26px;
    height: 26px;
    padding-bottom: 1px;
}

/* heading */
.heading {
    display: flex;
    align-items: end;
    gap: var(--gap);
    margin: 0 var(--gap);
}

h3 {
    flex-grow: 1;
    margin: 0;
}

/* fragmented files list */
.fragmented-files-list {
    display: none;
    font-size: 10pt;
    border-collapse: collapse;
    width: calc(100% - 2 * var(--gap));
    margin: auto;
}

.fragmented-files-list thead td {
    font-weight: 600;
    background-color: var(--highlight-color);
    padding: 5px 5px 8px 5px !important;
    cursor: pointer;
}

.fragmented-files-list thead td > div {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.fragmented-files-list thead td svg {
    fill: #bbb;
    width: 7px;
    padding-top: 2px;
}

.fragmented-files-list td {
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 1px 5px;
}

.fragmented-files-list tbody td:nth-child(2) {
    text-align: right;
}

.fragmented-files-list tbody td:nth-child(3) {
    text-align: left;
    word-break: break-word;
}

/* pagers */
.pager {
    display: flex;
    justify-content: right;
    gap: 1px;
}

.pager div {
    font-size: 10pt;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    cursor: pointer;
}

.pager .current-page {
    background-color: var(--highlight-color);
}

.bottom-pager {
    margin: 0 var(--gap) 70px var(--gap);
}

/* scroll to top button */
.scroll-to-top {
    display: none;
    justify-content: center;
    align-items: center;
    color: #1010c3;
    background-color: #f5f5f5;
    position: fixed;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    margin: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    /* box-shadow: 0 2px 5px 0 rgb(0 0 0 / 8%); */
    z-index: 98;
    cursor: pointer;
}

.scroll-to-top svg {
    width: 22px;
}

/* noscript banner */
.noscript-banner {
    color: white;
    background-color: #f50000;
    margin-bottom: calc(-1 * var(--gap));
}

.noscript-message {
    padding: 10px;
}

.noscript-message a {
    color: inherit;
}
