﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    /* Set the fixed height of the footer here */
    height: 60px;
    line-height: 60px; /* Vertically center the text there */
}

.link,
.forced-link {
    cursor: pointer;
}

.forced-link {
    color: #007bff !important;
    user-select: none;
}

.forced-link:hover {
    text-decoration: underline !important;
}

.smart-modal .modal-dialog {
    max-width: none;
    display: flex;
    justify-content: center;
}

.smart-modal .modal-content {
    display: inline-flex;
    width: auto;
    margin: 0 auto;
}

.smart-modal .modal-body {
    display: inline-block;
    max-height: calc(100vh - 225px);
    overflow-y: scroll;
}

.smart-modal.no-scroll .modal-body {
    overflow-y: inherit;
}

.smart-modal .table td {
    padding: 0.45rem;
}


.actions-section {
    margin: 5px;
    padding: 5px 10px;
    background: #efefef;
}

.disable-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.red {
    color: #FF0000;
}

.green {
    color: #008000;
}

/* File Preview Styles
-------------------------------------------------- */
.file-preview-img {
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px;
    background: white;
}

.image-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

/* Responsive Table Columns
-------------------------------------------------- */
.file-table-description {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-table-name {
    max-width: 250px;
    word-break: break-word;
}

/* File Table Specific Styles
-------------------------------------------------- */
#filesTable th[data-priority] {
    white-space: nowrap;
}

#filesTable .btn-sm {
    margin: 2px;
}

/* Mobile Responsive
-------------------------------------------------- */
@media (max-width: 768px) {
    .file-table-description {
        max-width: 150px;
    }

    .file-table-name {
        max-width: 120px;
        font-size: 0.875rem;
    }

    .file-preview-img {
        max-width: 50px;
        max-height: 35px;
    }

    #filesTable .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    #filesTable .btn-sm i {
        margin-right: 0;
    }

    #filesTable .btn-sm .fa {
        font-size: 0.875rem;
    }
}

/* Tablet Responsive
-------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
    .file-table-description {
        max-width: 200px;
    }

    .file-table-name {
        max-width: 180px;
    }
}