﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
    height: 100%;
}

html {
    height: 100%;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select {
    max-width: 280px;
}

div {
    box-sizing: border-box;
}

.report-image {
    max-width: 1100px;
}

.drawing-board {
    position: absolute;
    background-color: transparent;
}

audio, canvas, video {
    opacity: 0.4;
    width: 100%;
}

/* scrollable div */
div.scrollable {
    height: 950px;
    overflow-y: auto;
}

/* Scrollable Table with frozen header/footer */

.scroll {
    border: 0;
    border-collapse: collapse;
}

    .scroll tr {
        display: flex;
    }

    .scroll td {
        padding: 3px;
        flex: 1 auto;
        border: 1px solid #aaa;
        width: 1px;
        word-wrap: break;
    }

    .scroll thead tr:after {
        content: '';
        overflow-y: scroll;
        visibility: hidden;
        height: 0;
    }

    .scroll thead th {
        flex: 1 auto;
        display: block;
        border: 1px solid #000;
        width: 60px;
        padding: 3px;
    }

    .scroll tbody {
        display: block;
        width: 100%;
        overflow-y: auto;
        height: 200px;
    }

    .scroll tfoot tr:after {
        content: '';
        overflow-y: scroll;
        visibility: hidden;
        height: 0;
    }

    .scroll tfoot th {
        flex: 1 auto;
        display: block;
        border: 1px solid #000;
    }

.username {
    font-weight: normal !important;
    color: #fff;
    display: inline-block;
    padding-right: 1em;
    font-size: 14px;
}

a.logout {
    display: inline-block !important;
}

.DataGrid {
    margin-top: 10px;
}

.DataGrid {
    background-color: #E8EEF4;
}

.DataGridHeader, .DataGridHeader a {
    font-weight: bold;
    font-size: 100%;
    color: black;
    background-color: #c0c0c0;
    height: 23px;
    text-decoration: none;
}

.DataGrid tr {
    padding: 5px 10px;
    width: 10px;
}

.DataGrid td, .DataGrid th {
    width: 280px;
    font-size: 92%;
    padding: 2px 10px 2px 10px;
}

.DataGrid {
    background-color: #F5F5F5;
}

.DataGridAlternateItemStyle {
    background-color: #0f19c8;
}

.DataGridPaging {
    text-align: right;
}

.columnwidth {
    width: 60px !important;
}

.columnwidth-small {
    width: 50px !important;
}

.actionwidth {
    width: 120px !important;
}

.columnwidthMROResult {
    width: 80px !important;
}

.buttonwidth {
    width: 40px !important;
}

.non-block {
    display: inline-block !important;
}

li {
    font-weight: bold;
    list-style: none;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 20px;
    width: 100%;
    background-color: #2F5572;
    color: #fff;
}

#tab-report {
    border: 1px solid silver;
    border-radius: 5px;
}

ul.nav {
    margin-left: 2em;
}

.action-buttons {
    margin-top: .8em;
}

.bold {
    font-weight: bold;
}

#ajax-messages, .workingMessage {
    font-style: italic;
    color: blue;
    display: inline-block;
    padding-left: 2em;
}

.actionControl {
    font-size: .9em !important;
}

.report-pdf {
    width: 100%;
    height: 800px;
}

.navbar-nav {
    float: right !important;
}

.normal-text {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif !important;
}

.pad-left-1em {
    padding-left: 1em;
}

.pad-left-2em {
    padding-left: 2em;
}

.navbar {
    box-shadow: 0 0 18px rgba(0,0,0,.5);
    background-color: #2F5572; /*rgba(255,255,255, 0.58);*/
    color: #fff;
}

.navbar-nav > li > a {
    color: #c0c0c0;
}

.btn-success {
    background-color: #2F5572 !important;
    border-color: #2F5572 !important;
    font-weight: bold !important;
}

.close-images-button {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: .2;
}


thead {
    background-color: #2F5572;
    color: #fff;
}

    thead tr th {
        text-align: center;
    }

        thead tr th a {
            color: #fff;
        }

.nav-tabs > li {
    margin-left: .2em;
}

    .nav-tabs > li > a {
        background-color: #fff !important;
    }


    .nav-tabs > li.active > a {
        background-color: #2F5572 !important;
        color: #fff !important;
    }

.modal-large {
    width: 700px !important;
}

.modal-larger {
    width: 800px !important;
}

@media (min-width: 1300px) {
    .container {
        max-width: 1300px !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1300px !important;
    }
}

/* ── Upload portal layout ──────────────────────────────────────────────────── */
.upload-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.upload-card {
    background: #fff;
    width: 100%;
    max-width: 560px;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(0,0,0,0.15);
    border-top: 4px solid #2F5572;
}

/* Titles */
.upload-title {
    font-size: 1.8em;
    margin-bottom: .2em;
    color: #2F5572;
}

.upload-subtitle {
    font-size: 1em;
    color: #333;
    margin-bottom: 1.5em;
}

/* Form spacing */
.upload-form .form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

/* ── Drag-and-drop zone ────────────────────────────────────────────────────── */
.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 20px;
    border: 2px dashed #a0b8c8;
    border-radius: 8px;
    background: #f4f8fb;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    user-select: none;
}

.drop-zone:hover,
.drop-zone:focus {
    border-color: #2F5572;
    background: #eaf1f7;
    outline: none;
}

.drop-zone.drag-over {
    border-color: #2F5572;
    background: #d6e8f4;
}

.drop-zone-arrow {
    font-size: 2.4em;
    color: #2F5572;
    line-height: 1;
}

.drop-zone-text {
    font-size: 1em;
    color: #333;
}

.drop-zone-browse {
    color: #2F5572;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.drop-zone-hint {
    font-size: 0.82em;
    color: #777;
}

/* ── Selected file list ────────────────────────────────────────────────────── */
.file-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.9em;
}

.file-list-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.file-list-info {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.file-list-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 1.1em;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.file-list-remove:hover {
    color: #c0392b;
}

/* ── File count & error messages ───────────────────────────────────────────── */
.file-count {
    margin-top: 8px;
    font-size: 0.85em;
    color: #555;
}

.drop-error {
    margin-top: 6px;
    font-size: 0.88em;
    color: #c0392b;
    min-height: 1.2em;
}

/* ── Upload submit button ──────────────────────────────────────────────────── */
.btn-upload {
    background-color: #2F5572 !important;
    border-color: #2F5572 !important;
    color: #fff;
    font-weight: bold;
    padding: 10px 18px;
    width: 100%;
    margin-top: 18px;
    transition: opacity 0.2s;
}

.btn-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File input adjustments (hidden; kept for fallback) */
input[type="file"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fafafa;
    width: 100%;
    max-width: none;
}
