﻿:root {
    --bs-body-color: #444;
}

@media print {
    .container {
        max-width: 100%;
    }
}

.navbar-dark .navbar-brand {
    color: rgba(255,255,255,.65);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.75);
}

.navbar-dark .navbar-nav a.nav-link:hover {
    color: rgba(255,255,255,.95);
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* 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;
    line-height: 60px; /* Vertically center the text there */
}


.table.table-small-text {
    font-size: 0.9rem;
}

.validation-summary-valid { display: none; }

.validation-summary-errors {
    color: #dc3545;
}

.field-validation-error {
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}

form.form-sm .form-group {
    margin-bottom: 0.5rem;
}

.item-minor {
    font-size: 0.8rem;
}

@media print {
    .item-minor {
        font-size: 1rem;
    }
}

td.order-active {
    background-color: #1b6ec2;
}

td.order-complete {
    background-color: #28a745;
}

td.order-cancelled {
    background-color: #dc3545;
}

td.order-ignored {
    background-color: #dc3545;
}

img.order-status {
    height: 18px;
    color: lightgray;
}

img.order-status.complete {
    color: green;
}

.reference-info {
    font-size: 10px;
    color: darkgray;
}

.highlight {
    background-color: yellow;
}

.original-value {
    color: grey;
    font-size: 12px;
}

.frame {
    display: flex;
    padding: .5rem .5rem;
    margin-bottom: .5em;
}

.frame.frame-active {
    border: 1px solid rgba(10, 88, 202, .4);
    background-color: rgba(10, 88, 202, .2);
}

.frame.frame-completed {
    border: 1px solid rgba(25, 135, 84, .5);
    background-color: rgba(25, 135, 84, .3);
}

@media print {
    .frame {
        padding: 0;
    }
    .frame.frame-active {
        border: none;
    }
    .frame.frame-completed {
        border: none;
    }
}

.frame .frame-main {
    flex: 1 1 auto;
    padding-right: .25rem;
}

.frame .frame-actions {
    text-align: right;
    flex: 0 0 auto;
    padding-left: .25rem;
    min-width: 140px;
}

.frame .table-border {
    padding: 4px;
    background-color: white;
}

.vertical-center {
    display: flex;
    align-items: center;
}

table.address-table {
    background-color: white;
}

.address-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    .table-label {
        color: #6c757d;
        font-size: 0.8rem;
    }
}

.line-table .quantity input {
    width: 60px;
    display: inline-block;
}

.line-table .price {
}

.line-table .price input {
    width: 100px;
    display: inline-block;
}

.line-table .price {
    text-align: right;
}

table.line-table {
    background-color: white;
}

table.line-table th, table.address-table th {
    font-size: 0.9em;
}

table.line-table {
    font-size: 14px;
    margin-bottom: 0;
}

.address-table td.table-label {
    color: #6c757d;
    font-size: 0.8rem;
    width: 80px;
    vertical-align: middle;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}


.btn.dropdown-toggle {
    padding: 0 .25rem;
}

.btn.dropdown-toggle.no-text::after {
    margin-left: 0;
}
