﻿/* 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. */

.modal-responsive {
    width: 107% !important;
    right: 3.5% !important;
}

a.navbar-brand {
    text-align: center;
    white-space: normal;
    word-break: break-all;
}

.text-black-75 {
    color: #444 !important;
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #FFF !important;
    opacity: 1;
}

.navbar-nav .nav-item {
    padding-top: .5em;
    padding-bottom: .5em;
    border: 1px solid white;
}

    .navbar-nav .nav-item:hover {
        border-left-color: #EEE;
        border-right-color: #EEE;
    }

.footer-item {
    padding-left: 1em;
    padding-right: 1em;
}

.overlay {
    background-color: rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .overlay > .spinner-border {
        width: 6rem;
        height: 6rem;
    }

/* Sticky footer styles
-------------------------------------------------- */

html {
    font-size: 14px;
    min-height: 100%;
    position: relative;
}

@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
-------------------------------------------------- */

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
}

.footer {
    bottom: 0;
    /* Set the fixed height of the footer here */
    height: 60px;
    line-height: 60px; /* Vertically center the text there */
    position: absolute;
    white-space: nowrap;
    width: 100%;
    background-color: #282828 !important;
}

/* Card column flex styles
-------------------------------------------------- */

.card-flex-column {
    flex-grow: 1;
}

    .card-flex-column:not(:last-child) {
        border-right: 1px solid #DDD;
    }

/* Buttons 
-------------------------------------------------- */

.btn-icon, .btn-icon-inverted {
    padding: 1px !important;
}

    .btn-icon > img {
        width: 36px;
    }

    .btn-icon-inverted > img {
        width: 36px;
        -webkit-filter: invert(1);
        filter: invert(1);
    }

/* Card Styling 
-------------------------------------------------- */

.nav-card .card {
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Table Styling */

.table-dropdown-arrow {
    content: url("/images/dropdown-arrow.png");
    width: 12px;
    height: 12px;
    float: right;
    margin-right: .5em;
    cursor: pointer;
}

    .table-dropdown-arrow.inverted {
        transform: scaleY(-1);
    }

.table-child-row {
    padding: 1em !important;
}

.legend {
    border-radius: 5px;
    padding: 6px 8px;
    background: white;
    background: rgba(255, 255, 255, 0);
    line-height: 24px;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .legend h4 {
        text-align: center;
        font-size: 12px;
        margin: 2px 12px 8px;
        color: black;
    }

    .legend span {
        position: relative;
        font-size: 10px;
        bottom: 3px;
        color: black;
    }

    .legend i {
        width: 18px;
        height: 18px;
        float: left;
        margin: 0 8px 0 0;
        border-radius: 50%;
        border: .5px solid black;
    }

.leaflet-center {
    left: 50%;
    transform: translate(-50%, 900%);
}

/* Permissions and role exclusive zones/fields */
.developer-only, .admin-only {
    background-color: #FFF3D6 !important;
    color: red !important;
    margin: .75em !important;
    border: 1px solid #FFE3A3 !important;
    border-radius: .25em !important;
}

    .developer-only::after, .admin-only::after {
        font-size: 8px;
        color: grey;
        position: relative;
        float: right;
        top: -14px;
        left: -4px;
    }

    .developer-only::after {
        content: "ONLY VISIBLE FOR DEVELOPERS";
    }

    .admin-only::after {
        content: "ONLY VISIBLE FOR ADMINS";
    }

.developer-only-color {
    background-color: #FFF3D6 !important;
    color: red !important;
}

.copypopup:hover {
    color: #007bff !important;
}

.copypopup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* The actual popup */
    .copypopup .copypopuptext {
        visibility: hidden;
        width: 160px;
        background-color: #0062cc;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 8px 0;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -80px;
        opacity: 0;
    }

        /* Popup arrow */
        .copypopup .copypopuptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #0062cc transparent transparent transparent;
        }

    /* Toggle this class - hide and show the popup */
    .copypopup .show {
        visibility: visible;
        -webkit-animation: fadeIn 1s linear forwards;
        animation: fadeIn 1s linear forwards;
    }

    .copypopup .hide {
        -webkit-animation: fadeOut 1s linear forwards;
        animation: fadeOut 1s linear forwards;
    }

/* Add animation (fade in the popup) */

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Progress Indicators */
.progress-indicator-overlay {
    position: absolute;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    opacity: 0.75;
}

.bs4-readonly {
    background-color: white !important;
    opacity: 1;
}

.notification {
    position: relative;
}

    .notification .badge {
        position: absolute;
        top: -1px;
        right: -1px;
        border-radius: 50%;
        background: red;
        color: white;
    }

.dot {
    height: 16px;
    width: 16px;
    background-color: #FA3E3E;
    border-radius: 50%;
    display: inline-block;
}

.nrplusbadge {
    height: 40px;
    width: 40px;
    background-color: #43C071;
    border-radius: 50%;
    display: inline-flex;
    text-align: center;
    color: #282828;
    font-size: 15px;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    overflow-x: hidden;
    overflow-y: hidden;
}

.dropdown-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.settings-btn {
    transition-duration: 0.4s;
    cursor: pointer;
}

    .settings-btn:hover {
        background-color: lightgray;
    }

.view-all-btn {
    transition-duration: 0.4s;
    cursor: pointer;
}

    .view-all-btn:hover {
        color: #007bff;
    }

body {
    background-position-y: center;
}

.view-action:hover,
.edit-action:hover,
.delete-action:hover,
.manage-action:hover,
.remove-action:hover,
.clickable-row,
.back-button{
    cursor: pointer;
}

.link-hover:active:hover {
    color: white !important;
}

.temporarily-hidden-delay-mins {
    display: none !important;
}

.schedule-adherence-secondary-row {
    background-color: #e9ecef; /* Slightly darker than #f8f9fa */
}

.min-time-in-notch-readonly {
    background-color: lightgray !important;
}

.locomotive-type-details-switch {
    width: 2.2em;
    height: 1.1em;
    min-width: 2.2em;
    min-height: 1.1em;
    background-size: 1.1em 1.1em;
}

    .locomotive-type-details-switch:checked {
        background-color: #0d6efd;
    }

.form-switch .form-check-input {
    background-position: left center;
}

.locomotive-type-details-switch::before {
    transform: scale(1.1);
}

.logo-img {
    max-width: 160px;
    max-height: 60px;
    height: auto;
    width: auto;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.text-secondary {
    color: #282828 !important;
}

.text-primary {
    color: #43C071 !important;
}

.text-accent-railwhere {
    color: #FEC92D !important;
}

a.text-secondary:hover, a.text-secondary:focus, button.text-secondary:hover, .link-hover:hover {
    color: #43C071 !important;
}

.text-light {
    color: #f8f9fa !important;
}

.btn-primary {
    background-color: #43C071;
    border-color: #43C071;
    color: #282828;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #379F61;
        border-color: #379F61;
        color: #282828;
    }

    .btn-primary:focus, .btn-primary.focus {
        box-shadow: 0 0 0 0.25rem rgba(67, 192, 113, 0.25) !important;
        background-color: #43C071 !important;
        color: #282828 !important;
    }

    .btn-primary.disabled, .btn-primary:disabled {
        background-color: #369A59;
        border-color: #369A59;
        color: #282828;
    }

    .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        border-color: #43C071;
        color: #282828;
    }

        .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(67, 192, 113, 0.25) !important;
        }

.btn-warning, .btn-danger, .btn-secondary, .btn-success {
    font-weight: 600;
}

.btn-success {
    color: #282828 !important;
}

.btn-accent {
    background-color: #FDC92C !important;
    color: #282828 !important;
    font-weight: 600 !important;
}

.icon-lg {
    font-size: 1.5rem;
    vertical-align: middle;
}

.btn-outline-secondary {
    border-color: #282828;
    color: #282828;
}

    .btn-outline-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
        color: #fff;
    }

@font-face {
    font-family: 'Raleway';
    src: url('/fonts/Raleway/static/Raleway-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('/fonts/Raleway/static/Raleway-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

.chart-font {
    font-family: 'Raleway', sans-serif;
}

.font-railwhere-bold, h1, h2, h3, h4, h5, h6, strong, b, button {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.dt-container ul.pagination li.active > a.page-link {
    background-color: #43C071 !important;
    border-color: #43C071 !important;
    color: #282828 !important;
}


.dt-container ul.pagination li:not(.active):not(.disabled) > a.page-link {
    color: #19773D !important;
}


.form-check-input:checked {
    background-color: #43C071 !important;
    border-color: #43C071 !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #43C071 !important;
    box-shadow: 0 0 0 0.25rem rgba(67, 192, 113, 0.25) !important;
    outline: none !important;
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
    background-color: #43C071 !important;
    color: #282828 !important;
}

select,
::picker(select) {
    appearance: base-select !important;
}

select {
    flex: 1;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    line-height: 1.5;
    color: #212529;
    border: 1px solid #e0e0e1;
    border-radius: 0.25rem;
    appearance: base-select;
    transition: border-color 0.4s ease-in-out;
}


    select:focus {
        border-color: #43C071 !important;
        box-shadow: 0 0 0 0.25rem rgba(67, 192, 113, 0.25) !important;
        outline: none !important;
    }

    select::picker-icon {
        color: #999;
        transition: 0.4s rotate;
    }

    select:open::picker-icon {
        rotate: 180deg;
    }


option {
    display: flex;
    justify-content: flex-start;
    border: 1px solid #ddd;
    padding: 5px;
    transition: 0.4s;
    margin-left: 0em !important;
}

    option:first-of-type {
        border-radius: 8px 8px 0 0;
    }

    option:last-of-type {
        border-radius: 0 0 8px 8px;
    }

    option:not(option:last-of-type) {
        border-bottom: none;
    }

    option:not(:disabled):not([readonly]):hover,
    option:not(:disabled):not([readonly]):focus {
        background: #43C071;
    }


::picker(select) {
    opacity: 0;
    transition: all 0.4s allow-discrete;
    border: none;
    border-radius: 8px;
}

    ::picker(select):popover-open {
        opacity: 1;
    }

@starting-style {
    ::picker(select):popover-open {
        opacity: 0;
    }
}

.select-font-weight {
    font-weight: 400;
}

.icon-large {
    font-size: 1.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    max-height: 38px;
}

.graph-container {
    height: 400px;
}

.form-category-header {
    background-color: #EEE;
}
/* SEEsim */
.highchart-container {
    width: 100%;
}

    .highchart-container:not(:last-child) {
        margin-bottom: 2em;
    }

.labelled-graph-container {
    display: flex;
    border: 1px solid #DDD;
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
    margin: 1em;
}

    .labelled-graph-container > div:first-child {
        flex: 0 1 1em;
        border-top-right-radius: 1em;
        border-bottom-right-radius: 1em;
        background-color: #EEE;
        text-align: center;
        transform: scale(-1);
        writing-mode: vertical-rl;
        text-orientation: sideways;
        padding: 1em 0;
    }

.nav-pills {
    border: 1px solid #DDD;
    border-radius: 0.25rem;
    margin: 1em;
}

    .nav-pills > .nav-item:hover {
        background-color: #FAFAFA;
        -webkit-transition: background-color 100ms linear;
        -ms-transition: background-color 100ms linear;
        transition: background-color 100ms linear;
    }

    .nav-pills > .nav-item:not(:last-child) {
        border-right: 1px solid #DDD;
    }

#reecSummaryModalCenter .nav-pills .nav-link.active {
    background-color: #43C071 !important;
    border-color: #43C071 !important;
    color: #282828 !important;
}

#reecSummaryModalCenter .nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: #43C071;
}

.summary-modal {
    min-height: 300px !important;
    overflow-y: auto !important;
}

#reecSummaryModalCenter .btn-close:hover {
    background-color: #dc3545 !important;
}


.results-viewer-container > button {
    width: calc(100% - 2em);
    margin: 1em;
}

.summary-map {
    height: 800px;
    margin: 0px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#seeSimMapLoadingSpinner {
    width: 6rem;
    height: 6rem;
}

.cursor-default {
    cursor: default !important;
}

/* T&C & Privacy */
.policyBody {
    background-color: #eee;
    padding: 1em;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    height: 600px;
    max-height: 600px;
    overflow-y: auto;
}

    .policyBody h1 {
        font-size: 30px;
        padding-bottom: .5em;
        color: #005580;
    }

    .policyBody h2 {
        font-size: 24px;
        padding-bottom: .5em;
        color: #006699;
    }

    .policyBody h3 {
        font-size: 20px;
        padding-bottom: .5em;
        color: #006699;
    }

    .policyBody h4 {
        font-size: 17px;
        padding-bottom: .5em;
        color: #003360;
    }

    .policyBody p {
        font-size: 16px;
        padding-bottom: .5em;
        padding-left: .5em;
    }

    .policyBody li {
        padding-top: 1em;
    }

.t_and_c {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}


/* Enhanced GREEN Results Print-Friendly CSS */
@media print {
    @page {
        margin: 0.5in;
        size: A4 portrait; /* Changed from landscape to portrait */
        /* Remove browser default headers/footers */
        @top-left {
            content: none;
        }

        @top-center {
            content: none;
        }

        @top-right {
            content: none;
        }

        @bottom-left {
            content: none;
        }

        @bottom-center {
            content: none;
        }

        @bottom-right {
            content: none;
        }
    }

    /* Base print styles for GREEN results */
    div.green-results-save {
        font-size: 11pt;
        background: none !important;
        color: #000 !important;
        line-height: 1.4;
    }

  /*   HIDE GREEN RESULT DESCRIPTIONS TO REMOVE VERTICAL GAPS */
    .labelled-graph-container > div:first-child,
    [class^="header-"],
    [class*=" header-"] {
        display: none !important;
    }

    /* Hide sign-in/sign-out buttons and user profile elements */
    #btnSignIn, #btnSignOut, #btnEditProfile, #btnAdminPanel,
    #desktopNotiView, #mobileNotiView {
        display: none !important;
    }

    /* HIDE FOOTER AND OTHER NON-ESSENTIAL ELEMENTS */
    footer, .footer, .btn, .ads, .sidebar,
    .modal, .spinner-border, .overlay,
    .nav-pills, .nav-tabs, .tab-content .nav-link,
    button:not(.print-visible), .form-control,
    .input-group-text, .card-header .btn,
    .site-header, .site-footer,
    .page-header, .page-footer, .main-header, .main-footer,
    #greenBackBtn {
        display: none !important;
    }

    /* Ensure body takes full page without header/footer spacing */
    body {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Print button specifically for save functionality */
    button.print-visible {
        display: inline-block !important;
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        font-size: 10pt;
        padding: 2px 6px;
        margin: 5px 0;
    }

    /* Content and container adjustments */
    .content, .container, .container-fluid,
    #mainPanel, .card-body {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }

/*     FIXED TABLE FORMATTING */
    table, .table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto;
        font-size: 8pt !important;
        margin: 10px 0 !important;
        visibility: visible !important;
    }

        table thead {
            display: table-header-group !important;
        }

        table tbody {
            display: table-row-group !important;
        }

        table tr {
            display: table-row !important;
            page-break-inside: avoid;
            page-break-after: auto;
        }

        table th, table td {
            display: table-cell !important;
            border: 1px solid #000 !important;
            padding: 3px 4px !important;
            font-size: 8pt !important;
            line-height: 1.1 !important;
            vertical-align: top !important;
            word-wrap: break-word !important;
        }

        table th {
            background-color: #f0f0f0 !important;
            font-weight: bold !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

/*     GREEN tab tables */
    .labelled-graph-container {
        display: block !important;
        page-break-inside: avoid;
        margin: 10px 0 !important;
        border: 1px solid #000 !important;
        padding: 5px !important;
        visibility: visible !important;
        flex-direction: column !important;
    }

        .labelled-graph-container table {
            display: table !important;
            width: 100% !important;
            margin: 0 !important;
        }

    .form-category-header {
        display: block !important;
        background-color: #e0e0e0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 5px !important;
        font-weight: bold !important;
        font-size: 11pt !important;
        border-bottom: 1px solid #000 !important;
        page-break-after: avoid;
    }

/*     Headers and text formatting */
    h1, h2, h3, h4, h5, h6 {
        display: block !important;
        color: #000 !important;
        page-break-after: avoid;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }

    h3 {
        font-size: 14pt !important;
        padding-bottom: 5px !important;
    }

/*     Card and container layouts */
    .card, .form-category, .form-data-card {
        display: block !important;
        border: 1px solid #ccc !important;
        margin: 10px 0 !important;
        padding: 8px !important;
        page-break-inside: avoid;
        background: white !important;
        visibility: visible !important;
    }

    /* Page break utilities */
    .page-break-before {
        page-break-before: always;
    }

    .page-break-after {
        page-break-after: always;
    }

    .page-break-inside-avoid {
        page-break-inside: avoid;
    }

     /*Show all tab content when printing*/ 
    .tab-pane, .tab-content {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

/*     Responsive table handling */
    .table-responsive {
        display: block !important;
        overflow: visible !important;
        width: auto !important;
    }

/*     Form elements that might contain data */
    .bs4-readonly, input[readonly] {
        display: inline-block !important;
        border: none !important;
        background: none !important;
        font-weight: bold !important;
    }

/*     Ensure proper spacing between major sections */
    .form-category:not(:last-child) {
        margin-bottom: 20px !important;
        page-break-after: avoid;
    }

/*     Special handling for long tables in portrait mode */
    .table-bordered {
        border: 2px solid #000 !important;
    }

    .table tbody tr:nth-child(even) {
        background-color: #f9f9f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

  /*   Force visibility for common hidden elements that might contain tables */
    .container, .row, .col, .col-12, .col-md-12 {
        display: block !important;
        width: 100% !important;
    }

/*     Ensure Bootstrap classes don't hide content */
    .d-none, .d-md-none, .d-lg-none {
        display: block !important;
    }

    .invisible {
        visibility: visible !important;
    }
}

/* Map marker pin with rounded top and pointed bottom - classic marker style */
.map-marker-basic {
    position: relative;
    width: 32px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}

    .map-marker-basic::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        background: var(--marker-color);
        border-radius: 50% 50% 50% 0;
        transform: rotate(-45deg);
        border: 2px solid #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }

    .map-marker-basic .marker-icon {
        position: relative;
        z-index: 1;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #fff;
        margin-top: 1px;
    }
