﻿/* 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;
}

/* 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;
    }
}

header{
    height:8rem;
}

.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;
}



/*BBP specific styles*/

.bbp-schedule-title{

    height:1.5rem;
    font-size:1.5rem;
    font-weight:bold;
    padding-bottom:.25rem;

}

.bbp-asof {
    position: sticky;
    top: 8rem;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.4rem;
}

.bbp-asof > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Auto-refresh countdown widget */
.bbp-refresh-widget {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.bbp-refresh-widget-centered {
    justify-content: center;
}

.bbp-refresh-ring-svg {
    transform: rotate(90deg);
    flex-shrink: 0;
}

.bbp-ring-bg {
    fill: none;
    stroke: #dde3e8;
    stroke-width: 3.5;
}

.bbp-ring-fill {
    fill: none;
    stroke: #4682b4;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.bbp-countdown {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #333;
    min-width: 2.2ch;
    display: inline-block;
    text-align: right;
}

.bbp-next-label {
    color: #888;
}

.bbp-schedule table {
    table-layout: auto;
    border-collapse: collapse;
    width: 100%;
}

    .bbp-schedule table td {
        vertical-align: top;
        padding-top: .5rem;
        padding-left: .25rem;
        padding-bottom: .25rem;
        padding-right: .25rem;
    }


.day-title {
    position: sticky;
    top: 9.5rem;
    background-color: #c8daea;
    border-color: #c8daea !important;
    padding-top: .25rem !important;
    padding-left: .5rem !important;
    /*    padding-left:.5rem;*/
    /*    border-top-right-radius: 10px;*/
    /*    border-bottom-right-radius: 10px;*/
    color: #4682b4;
}

.service-row > td {
    border-bottom: 1px solid gainsboro;
}

.action-col {
    display: table-cell;
}

.service-time-col {
    display: none;
    text-align: center;
}

.time-in-badge {
    display: block;
    text-align: center;
}

.vessel-col {
    display: table-cell;
    width:100%
}

.vessel-type {
    display: none;
}

.times-in-vessel-col{
    display:block;
}

.location-col {
    display: none;
}

.times-col {
    display: none;
}

.bbp-bg-shift {
    background: linear-gradient(to right, orange 0%, royalblue 80%);
    color: white;
}

.bbp-service-badge-top {
    color: white;
    background-color: dimgray;
    padding: 0.25rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    text-align: center;
    width: 100%;
    font-size:80%;
}

.bbp-bg-arrival {
    background-color: royalblue;
    color: white;
}

.bbp-bg-departure {
    background-color: orange;
    color: white;
}

.bbp-bg-shift {
    background-color: dimgray;
    color: white;
}

.bbp-bg-pending {
    background-color: black;
    color: white;
}

.bbp-bg-unknown {
    background-color: yellow;
    color: black;
}

.bbp-service-badge-bottom {
    color: white;
    background-color: dimgray;
    padding: 0.25rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    text-align: center;
    width: 100%;
    font-size: 60% !important;
}

.bbp-bg-scheduled {
    color: royalblue !important;
    background-color: #d6d9db !important;
}

.bbp-bg-confirmed {
    background-color: fuchsia !important;
}

@media (min-width: 768px) {
    .time-in-badge {
        display: none;
    }

    .vessel-col{
        width: 50%;
    }

    .service-time-col {
        display: table-cell;
    }

    .location-col {
        display: table-cell;
        width: 50%;
    }
}

@media (min-width: 992px) {

    .vessel-type {
        display: block;
    }

    .times-in-vessel-col{
        display:none;
    }

    .times-col {
        display: table-cell;
    }
}
