html {
    background-color: #000;
    overflow-y: scroll;
}

td {
    vertical-align: top;
}

img {
    border: none;
}

input {
    border: 1px solid #CED4DA;
    padding: 2px;
}

table {
    border-spacing: 0;
}

th {
    text-align: left;
    font-weight: 400;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    color: var(--neutral-color);
}

#scrollUp {
	z-index: 999 !important;
}

#activity_log_controls {
    padding-top: 20px;
    text-align: right;
}

#activity_log_controls span,
#activity_log_controls a {
    cursor: pointer;
}

#top_downloads  {
    margin: 0 auto;
    margin-top: 10px;
    font-size: 12px;
    border-spacing: 0;
    color: #888;
    margin-bottom: 10px;
}

#top_downloads th {
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
    text-align: left;
    cursor: pointer;
}

#top_downloads td {
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

#subscription_info_log td:nth-child(1) {
    width: 60px;
}

#subscription_info_log th:nth-child(3),
#subscription_info_log td:nth-child(3) {
    width: 140px;
    text-align: center;
}

#subscription_info_list td:nth-child(1) {
    width: 240px;
}

#subscription_info_list td:nth-child(3) {
    width: 140px;
}

#subscription_info_list th:nth-child(4),
#subscription_info_list td:nth-child(4)
{
    width: 60px;
    text-align: center;
}

#change_log td:nth-child(1) {
    width: 40px;
}

#change_log td:nth-child(2) {
    width: 60px;
}

#change_log td:nth-child(3) {
    padding-right: 10px;
}

#change_log td:nth-child(4) {
    width: 140px;
}

#change_log td:nth-child(5) {
    width: 20px;
    text-align: center;
}

#log {
    margin-top: 10px;
    font-size: 12px;
    border-spacing: 0;
    color: #888;
    margin-bottom: 10px;
}

#log a {
    color: #0078ad;
    text-decoration: underline;
}

#log th {
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
    text-align: left;
    cursor: pointer;
}

#log th a {
    color: #0078ad;
}

#log td {
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

#activity_log  {
    padding-bottom: 10px;
}

#subscription_info_log,
#dir_top5 {
    margin-top: 30px;
}

#control_panel,
#change_log,
#subscription_info_log,
#subscription_info_list,
#email_settings,
#dir_top5 {
    font-size: 12px;
}

#control_panel th,
#change_log th,
#subscription_info_log th,
#subscription_info_list th,
#email_settings th,
#dir_top5 th {
    font-size: 12px;
}

#control_panel ul,
#change_log ul,
#subscription_info_log ul,
#subscription_info_list ul,
#email_settings ul {
    margin: 10px auto;
    padding: 0px;
    list-style: none;
}

#control_panel input,
#control_panel select,
#email_settings input,
#email_settings textarea,
#email_settings select {
    max-width: 488px;
}

#change_log textarea {
    height: 100px;
}

#toolbar label,
#control_panel label,
#email_settings label,
#change_log label,
#new_folder label,
#rename_folder label,
#mfa_dialog label,
.file_properties label,
.item-properties label,
.filter-controls label {
    font-size: 14px;
    font-weight: normal;
    line-height: 150%;
    letter-spacing: 0.0025em;
    color: var(--prim-blue-color);
    display: block;
}

#control_panel span.desc {
    font-weight: 300;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0.005em;
    color: var(--neutral-color);
    padding: 8px 0;
    display: block;
}

#toolbar {
    margin: 30px 17px 40px 17px;
    padding: 14px;
    line-height: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

#toolbar button {
    margin-right: 6px;
}


/* support: IE7 */
*+html #tb_toolbar  {
    display: inline;
}

#upload_file,
#delete_files,
#new_folder,
#rename_folder,
#delete_folder,
#move_files,
#mfa_dialog {
    max-width: 688px !important;
}

#upload_optional {
    margin-top: 20px
}

#move_files ul {
    padding: 0;
}

#delete_files ul {
    padding: 0;
    margin: 10px 0 0 0;
    list-style-type: none;
}

#delete_files li {
    padding: 2px 0;
}

#ajax_msg_hidden {
    display: none;
}

#ajax_msg {
    display: none;
    background: #ffffcc;
    text-align: center;
    font-size: 14px;
    padding: 4px;
    border: 1px solid #b2e055;
    -webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, .1);
    box-shadow: 0px 1px 4px rgba(0, 0, 0, .1);
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 450px;
    z-index: 10;
}

.filter {
    color: #B14F6A;
    cursor: pointer;
}

.underscore {
    text-decoration: underline;
}

.top-dir-left {
    margin-top: 10px;
    float: left;
    width: 30%;
}

.top-dir-right {
    float: left;
    width: 70%;
    padding-top: 20px;
}

.tool {
    z-index: 200003 !important;
    position: absolute;
    display: none;
    background: #ffffff;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.32));
    border-radius: 8px;
}

.tool-contents {
    padding: 0;
}

.tool-footer {
    margin-top: 40px;
    text-align: right;
}

.modal input[type="file"] {
    display: none;
}

.modal .custom-file-upload {
    width: 100%;
    background: #EAF2F9;
    border-radius: 5px;
    display: block;
    cursor: pointer;
    text-align: center;
    padding: 28px 0;
    color: var(--neutral-color) !important;
}

.modal .custom-file-upload img#upload_image {
    width: 54px;
}

.modal .custom-file-upload p {
    margin: 0;
    font-weight: bold;
    font-size: 20px;
}

.modal {
    padding: 24px 88px 48px 88px !important;
    color: var(--neutral-color) !important;
}

#upload_file_label {
    padding-bottom: 10px;
}

.half-column {
    width: calc(50% - 20px);
    float: left;
    margin: 0 10px;
}

.one-third-column {
    width: calc(33%);
    float: left;
    margin: 0 0 0 0;
}

.two-thirds-column {
    width: calc(66%);
    float: left;
    margin: 0;
}

.two-thirds-column-spaced {
    width: calc(66% - 20px);
    float: left;
    margin: 0;
    margin-left: 20px;
}

.tool-footer button {
    margin-left: 18px;
}

.tool-footer .cancel {
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.0125em;
}

.folder_list li {
    border-bottom: 1px solid #CED4DA;
    color: var(--neutral-color);
    font-size: 16px;
    padding-left: 50px;
    background-image: url("/images/folder-outline.svg");
    background-size: 24px 24px;
    background-position: 10px 12px;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.folder_list li:nth-child(1) {
    border-top: 1px solid #CED4DA;
}

.folder_list li:hover {
    background-color: #E9ECEF;
}

.folder_list label {
    width: calc(100% - 30px);
    display: inline-block;
    padding: 11px 0;
}

.folder_list input[type="radio"] {
    width: 20px;
    height: 20px;
}

.item-properties textarea {
    height: 135px;
    padding: 11px 16px;
}

.item-properties button {
    margin: 4px 0;
    padding: 0 11px;
}

button.toggle-file-properties {
    display: none;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 100px;
    background-color: var(--prim-color);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 130%;
    left: 50%;
    margin-left: -50px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--prim-color) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* New file list */
.item {
    margin: 0 17px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    overflow: hidden;
}

.items-header {
    display: flex;
    align-items: center;
    justify-content: right;
    height: 40px;
    font-size: 14px;
    font-weight: 300;
    margin: 0 17px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.items-header span {
    display: flex;
    align-items: center;
    user-select: none;
    font-weight: 400;
    color: var(--neutral-color);
}

.items-header span:hover {
    color: var(--charcoal-color);
}

.item-compressed-last {
    border-bottom: 1px solid #E9ECEF;
}

.item-compressed,
.item-compressed-medium {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 300;
    border-top: 1px solid #E9ECEF;
    color: var(--neutral-color);
}

.item-compressed {
    height: 48px;
    user-select: none;
}

.item-compressed-medium {
    padding: 6px 0;
    min-height: 52px;
}

.header-select,
.compressed-select {
    display: flex;
    align-items: center;
    padding: 0 6px;
    width: 50px;
    justify-content: center;
    color: var(--prim-color);
}

.compressed-select input[type="checkbox"] {
    border: 1px solid #CED4DA;
    width: 18px;
    height: 18px;
    display: none;
}

.compressed-folder-arrow {
    display: none;
}

.header-name,
.compressed-name {
    display: flex;
    align-items: center;
    padding: 0 6px;
    width: 250px;
}

#files .compressed-container {
    cursor: pointer;
}

.compressed-container {
    display: flex;
    align-items: center;
    width: 100%;
}


.compressed-info-container {
    display: flex;
    align-items: center;
}

.header-filename,
.compressed-filename {
    display: flex;
    align-items: center;
    flex-grow: 2;
    flex-shrink: 1;
    flex-basis: 300px;
    min-width: 0;
    width: 100%;
    height: 40px;
}

.header-filename {
    padding-left: 13px;
}

.header-size,
.compressed-size {
    width: 140px;
    padding-right: 50px;
}

.header-modified,
.compressed-modified {
    display: inline-block;
    width: 140px;
    padding-right: 15px;
}

.header-module,
.compressed-module {
    display: flex;
    align-items: center;
    padding: 0 6px;
    width: 80px;
}

.header-desc,
.compressed-desc {
    flex-grow: 2;
    flex-shrink: 1;
    flex-basis: 300px;
    min-width: 0;
    width: 100%;
    padding-right: 20px;
    overflow: hidden;
}

.header-path,
.compressed-path {
    display: flex;
    align-items: center;
    width: 220px;
}

.header-downloads,
.compressed-downloads {
    display: flex;
    align-items: center;
    padding: 0 6px;
    width: 100px;
    justify-content: center;
}

.item-properties {
    height: 0px;
    transition: height 0.7s;
    padding: 0 15px 0 50px;
}

.item:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
}

.item:active  {
    color: #2880C0;
    background: #D4E6F2;
    border-left: 1px solid #D4E6F2;
    border-right: 1px solid #D4E6F2;
}

div.item-expanded {
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: -1px;
}

div.selected {
    background-color: #D4E6F2;
    color: #2880C0;
}

div.item-expanded div.item-properties {
    height: 457px; /* Set value for animation */
    padding: 15px 15px 15px 50px;
    border-top: 1px solid #CED4DA;
}

.sort-arrow {
    visibility: hidden;
}

.sort_reverse {
    transform: rotate(180deg);
}

.filter-controls {
    margin: 28px 0 0 0;
    display: flex;
}

.filter-section {
    margin-right: 30px;
}

.filter-search input[type="text"] {
    margin-top: 0;
    padding-left: 44px;
    background-image: url("https://www.impetus.no/wp-content/uploads/2021/11/search.svg");
    background-size: 18px 18px;
    background-position: 16px 14px;
    background-repeat: no-repeat;
}

#toolbar label,
.filter-controls label {
    margin-bottom: 12px;
}

.filter-controls button {
    margin:0 6px 6px 0;
}

button.filter {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 6px 14px;
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    box-sizing: border-box;
    border-radius: 6px;
    flex: none;
    order: 0;
    flex-grow: 0;
    color: var(--neutral-color);
}

button.filter.enabled {
    border: 1px solid var(--prim-blue-color);
    background: var(--prim-blue-color);
    color: #ffffff;
}

.quick-links {
    overflow: hidden;
    padding-bottom: 4px;
}

.quick-links ul {
    overflow: hidden;
    list-style: none;
    padding-left: 0;
}

.quick-links li {
    float: left;
    padding-right: 16px;
}

.quick-links a {
    text-decoration: underline;
    font-weight: 300;
    cursor: pointer;
    color: #9F2C61;
}

/* Right panel */
.panel-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 330px;
    height: 100vh;
    transform: translateX(200%);
    transition: 0.4s ease;
    z-index: 1000;
}

.panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: 40px;
    overflow-y: auto;
}

.panel-show {
    transform: translateX(0%);
}

.panel-menu-space {
    height: 80px;
    transition: height 0.4s;
}

.panel-menu-space-collapsed {
    height: 0px;
}

#file-info .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 160px);
}

#file-info > div {
	padding: 16px;
}

.panel-top {
    display: flex;
    justify-content: right;
	padding: 16px;
	border-bottom: 1px solid #E9ECEF;
}

.panel-top .icon {
	padding-right: 16px;
    color: var(--prim-color);
}

.panel-top .filename {
	display: flex;
	align-items: center;
	width: 100%;
	font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
}

.panel-top .filename span:hover {
    animation: name-bounce 10s infinite;
}

@keyframes name-bounce {
    0% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

.panel-close {
    width: 50px;
    height: 36px;
    display: block;
	cursor: pointer;
    text-align: center;
}

.file-buttons {
	text-align: left;
	padding-top: 30px !important;
	padding-bottom: 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-buttons > div {
	margin: 0 4px;
}

.panel h5 {
    padding: 8px 0;
	color: var(--prim-blue-color);
}

.info {
	padding: 16px;
}

.info-line {
    display: flex;
    font-size: 14px;
	padding: 6px 0;
}

.info label {
    display: flex;
	width: 180px;
    padding-right: 20px;
    color: var(--prim-color);
}

.info span {
    display: flex;
	justify-content: flex-end;
    width: 100%;
	color: var(--charcoal-color);
}

.properties-container {
	display: flex;
	align-items: center;
	padding-bottom: 16px;
}

.properties-container > div {
	display: flex;
}

.properties-preview {
	width: 100%;
	color: var(--prim-color);
	font-size: 14px;
}

.properties-edit {
	padding-left: 6px;
	cursor: pointer;
    color: var(--prim-color);
}


/* Loading animation */

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--neutral-color);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
    transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

.file-icon-expiry {
    color: var(--prim-red-color);
}

@media screen and (max-width: 468px) {
    .page-width h4 {
        font-size: 24px;
    }

    .top-dir-left {
        float: none !important;
        width: 100% !important;
    }

    .top-dir-right {
        float: none !important;
        width: 100% !important;
    }

    .half-column {
        float: none;
        width: calc(100% - 20px);
    }

    .one-third-column {
        width: 100%;
        float: none;
    }

    .two-thirds-column-spaced,
    .two-thirds-column {
        width: 100%;
        float: none;
        margin: 0;
    }

    .modal {
        padding: 24px 16px 48px 16px !important;
        color: var(--neutral-color) !important;
    }

    .items-header {
        margin: 0;
        display: none;
    }

    .item {
        margin: 0;
        border-radius: 0;
    }

    .item-compressed {
        height: auto;
    }

    .compressed-container {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        overflow: hidden;
    }

    .compressed-info-container {
        font-size: 10px;
        padding-top: 6px;
    }

    .compressed-filename {
        overflow: hidden;
        height: auto;
    }

    .compressed-size,
    .compressed-module,
    .compressed-downloads {
        width: 100%;
        text-align: left;
        justify-content: left;
        padding: 0;
    }

    .compressed-size-na {
        visibility: hidden;
    }

    .dl-prefix::before {
        justify-content: left;
        content: "Downloads:\00a0";
    }

    .compressed-modified {
        width: auto;
        white-space: nowrap;
        padding-right: 0;
    }

    .compressed-folder-arrow {
        display: flex;
        align-items: center;
        padding: 0 6px;
        width: 60px;
        justify-content: center;
    }

    .dash::after {
        content: "\00a0\00a0\2014\00a0\00a0";
    }

    div.item-expanded div.item-properties {
        padding: 15px;
    }

    .filter-controls {
        display: block;
    }

    .filter-section {
        margin-right: 0;
        margin-bottom: 14px;
    }

    div.item-expanded div.item-properties {
        height: auto;
    }

    .flex-row-reverse {
        flex-direction: row-reverse;
    }

    .page-content.content-filelist {
        overflow: initial;
    }

    #files {
        width: 100vw;
        position: relative;
        margin-left: -50vw;
        left: 50%;
        padding: 0;
    }

    #toolbar {
        display: flex;
        justify-content: center;
        margin: 10px 0 30px 0;
    }

    .toolbar-btn {
        padding: 0 12px;
        margin: 2px;
    }

    .btn-text-collapsible {
        display: none;
    }

    .mdi {
        padding: 0 !important;
    }

    .item:hover {
        box-shadow: none;
    }

    button.toggle-file-properties {
        display: inline-flex;
    }

	.panel-wrap {
		top: 0;
		width: 100%;
		transform: translateY(200%);
		transition: 0.5s ease;
		z-index: 1000001;
	}

	.panel-show {
		transform: translateY(0%);
	}

	.panel-menu-space {
		height: 0px;
	}

	.panel {
		box-shadow: 0px -10px 50px rgba(0, 0, 0, 0.2);
	}
}
