﻿html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin: 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 8px rgba(27, 39, 51, 0.06);
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 1px 2px rgba(99, 114, 130, 0.06), 0 3px 6px rgba(27, 39, 51, 0.08);
}

    nav ul {
        padding-bottom: 8px;
        padding-top: 8px;
        margin: 0;
    }

    nav li {
        display: inline;
        padding: 16px;
    }

table.files-grid,
table.discovery-grid {
    width: 100%;
}

/* Row hover: paint each cell fully (full row height / padding). Large inset spread fills the td box;
   !important wins over any framework `td`/`tr` backgrounds. */
table.files-grid tbody tr.file-row > td,
table.discovery-grid tbody tr.file-row > td {
    transition: box-shadow 0.12s ease, background-color 0.12s ease;
}

table.files-grid tbody tr.file-row:hover > td,
table.discovery-grid tbody tr.file-row:hover > td {
    background-color: #dbeafe !important;
    box-shadow: inset 0 0 0 9999px #dbeafe !important;
}

th.file-name-col,
td.file-name-col {
    min-width: 22rem;
    max-width: 50vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

th.file-modified-col,
td.file-modified-col {
    white-space: nowrap;
    min-width: 19ch;
}

th.file-actions,
td.file-actions {
    text-align: center;
    vertical-align: middle;
}

form.file-actions-form {
    display: inline-block;
    margin: 0;
}

.disabledIcon {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    cursor: default;
    pointer-events: none;
    text-decoration: none;
}