﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

.workflow-tbody, .workflow-badge {
    font-size:24pt;
}

.workflow-tr {

    border-bottom:10px solid black;
}

/* Login page */
body.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #fff;
    color: #111;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fff;
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.login-logo {
    display: block;
    margin: 0 auto 36px;
    text-align: center;
}

.login-logo img {
    max-width: 100%;
    width: auto;
}

.login-form .login-field {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.login-form .form-control {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: none;
    padding: 8px 12px;
    font-size: 14px;
}

.login-form .form-control:focus {
    border-color: #111;
    box-shadow: none;
    outline: none;
}

.login-form .input-validation-error {
    border-color: #c0392b;
}

.login-submit {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.login-submit:hover,
.login-submit:focus {
    background: #333;
    color: #fff;
}

.login-error,
.login-error li {
    color: #c0392b;
    font-size: 13px;
    margin-top: 6px;
    padding: 0;
    list-style: none;
}

.login-error ul {
    margin: 0 0 16px;
    padding: 0;
}

.login-form .validation-summary-valid {
    display: none;
}

/* Monthly report: keep the filter compact so the table stays on screen */
.report-page .report-page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.report-page .report-filter-panel {
    margin-bottom: 10px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.report-page .report-filter-panel .panel-body {
    padding: 0;
}

.report-page .report-filter-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
}

.report-page .report-field {
    flex: 1 1 0;
    min-width: 140px;
    margin: 0;
}

.report-page .report-field-date {
    flex: 0 0 150px;
    min-width: 140px;
    max-width: 170px;
}

.report-page .report-field-grow {
    flex: 1 1 auto;
    min-width: 180px;
}

.report-page .report-field label {
    display: block;
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.report-page .report-filter-panel .form-control {
    height: 32px;
    padding: 4px 8px;
}

.report-page .report-filter-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.report-page .report-filter-actions .btn {
    height: 32px;
    padding: 4px 10px;
    line-height: 22px;
}

.report-page .product-picker {
    position: relative;
}

.report-page .product-suggestions {
    display: none;
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-top: 0;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.report-page .product-suggestions li {
    padding: 6px 10px;
    cursor: pointer;
}

.report-page .product-suggestions li.active,
.report-page .product-suggestions li:hover {
    background: #3875d7;
    color: #fff;
}

.report-page .product-suggestions li.no-match {
    color: #777;
    cursor: default;
    background: #f7f7f7;
}

.report-page .product-badges {
    margin: 0 0 6px;
}

.report-page .product-badges:empty {
    margin: 0;
}

.report-page .product-badge {
    display: inline-block;
    margin: 0 6px 0 0;
    padding: 2px 8px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}

.report-page .product-badge-remove {
    border: 0;
    background: transparent;
    margin-left: 4px;
    padding: 0;
    color: #888;
    font-size: 14px;
    line-height: 1;
    font-weight: bold;
}

.report-page .product-badge-remove:hover {
    color: #c0392b;
}

.report-page h3 {
    font-size: 16px;
    margin: 16px 0 8px;
}

@media print {

    #topMain, .navbar-nav {
    display:none;
    }

    .workflow-tbody {
    font-size:inherit;
}
        .workflow-badge {
        font-size:14pt;
        }

        .workflow-tr {

    border-bottom:1px solid black;
}

    .table thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th, .table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td {
    padding:2px;
    }

}

