﻿/* ============================================================
   FONT FACES (imported from NIPSCO.css)
   Paths are relative to /Content/, matching NIPSCO.css, so the
   same /fonts/*.ttf files are reused.
   ============================================================ */
@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
}

/* ============================================================
   Trade Ally Project Dashboard
   Minimalist refresh inspired by trcsavesenergy.com (NIPSCO EE):
   generous whitespace, one calm white card, soft brand accents.
   Built on Bootstrap 3 components; these rules add the polish
   Bootstrap 3 doesn't provide (rounded card, pill badges,
   key-dates stack, bigger search, responsive toolbar).

   Palette:  brand blue #0068A7 / deep #00538A
             accent green #6CAE3E
             ink #1F2D33 · muted #6B7A82 · line #E6EBED · wash #F6F9FB
   ============================================================ */

:root {
    --tad-blue: #0068A7;
    --tad-blue-deep: #00538A;
    --tad-green: #6CAE3E;
    --tad-ink: #1F2D33;
    --tad-muted: #6B7A82;
    --tad-line: #E6EBED;
    --tad-wash: #FBFCFD;
}

/* ---------- Page + card shell ---------- */
.tad-dashboard {
    padding: 26px 15px 56px;
}

.tad-card.panel {
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 14px 40px rgba(16, 42, 67, .07);
    overflow: hidden;
}

.tad-card .tad-card-head,
.tad-card.panel-default > .panel-heading {
    background: #fff;
    background-color: #fff;
    border-bottom: 1px solid var(--tad-line);
    padding: 6px 22px 0;
}

.tad-card .tad-card-body {
    background: #fff;
    padding: 26px 22px 22px;
}

/* ---------- Tab (minimal underline) ---------- */
.tad-tabs.nav-tabs {
    border-bottom: 0;
}

    .tad-tabs.nav-tabs > li {
        margin-bottom: -1px;
    }

        .tad-tabs.nav-tabs > li > a {
            border: 0;
            border-radius: 0;
            margin-right: 0;
            padding: 14px 4px;
            color: var(--tad-muted);
            font-family: 'Montserrat-Bold', 'Segoe UI', sans-serif;
            font-size: 18px;
            letter-spacing: .2px;
            background: transparent;
            border-bottom: 3px solid transparent;
        }

            .tad-tabs.nav-tabs > li > a:hover,
            .tad-tabs.nav-tabs > li > a:focus {
                background: transparent;
                color: var(--tad-ink);
                border-bottom-color: var(--tad-line);
            }

        .tad-tabs.nav-tabs > li.active > a,
        .tad-tabs.nav-tabs > li.active > a:hover,
        .tad-tabs.nav-tabs > li.active > a:focus {
            color: var(--tad-blue);
            background: transparent;
            border: 0;
            border-bottom: 3px solid var(--tad-blue);
        }

/* ---------- Filters + search + export (one section, no panel fill) ---------- */
.tad-filters {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--tad-line);
    padding: 2px 0 14px;
    margin-bottom: 16px;
}

/* Flex rows so every control bottom-aligns regardless of label wrapping */
.tad-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

    /* Bootstrap adds clearfix :before/:after on .row; as flex items they create
   phantom columns, so neutralise them on the flex rows. */
    .tad-row::before,
    .tad-row::after,
    .tad-inc-row::before,
    .tad-inc-row::after {
        content: none;
    }

    .tad-row .form-group {
        margin-bottom: 14px;
    }

.tad-filters .control-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--tad-muted);
    margin-bottom: 5px;
}

.tad-filters .form-control {
    border: 1px solid #D7DEE2;
    border-radius: 6px;
    box-shadow: none;
    color: var(--tad-ink);
    background: #fff;
}

    .tad-filters .form-control:focus {
        border-color: var(--tad-blue);
        box-shadow: 0 0 0 3px rgba(0, 104, 167, .15);
    }

.tad-filters .input-lg {
    height: 48px;
    font-size: 15px;
    border-radius: 6px;
}

.tad-inc-row {
    display: flex;
    margin-left: -6px;
    margin-right: -6px;
}

    .tad-inc-row > [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

/* Actions (export + clear) vertically centered against the search field */
.tad-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    margin-bottom: 14px;
}

    .tad-actions .btn .glyphicon {
        margin-right: 4px;
    }

.tad-clear-btn.btn {
    color: var(--tad-blue);
    font-weight: 600;
    text-decoration: none;
}

    .tad-clear-btn.btn:hover {
        color: var(--tad-blue-deep);
        text-decoration: underline;
    }

/* ---------- Length menu: left-aligned, tight to the table ---------- */
#projectsTable_wrapper .tad-dt-top {
    margin-bottom: 8px;
    text-align: left;
}

#projectsTable_wrapper .tad-dt-bottom {
    margin-top: 12px;
}

.dataTables_wrapper .dataTables_length {
    margin: 0;
}

    .dataTables_wrapper .dataTables_length label {
        font-weight: 600;
        color: var(--tad-muted);
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
    }

    .dataTables_wrapper .dataTables_length select {
        height: 30px;
        min-width: 72px;
        border-radius: 6px;
        border: 1px solid #D7DEE2;
        box-shadow: none;
        padding: 4px 8px;
        font-size: 13px;
        background: #fff;
        color: var(--tad-ink);
    }

/* ---------- Table ---------- */
.tad-table-wrap {
    border: 1px solid var(--tad-line);
    border-radius: 8px;
}

table.tad-table.table {
    margin: 0;
    width: 100% !important;
}

table.tad-table > thead > tr > th {
    border-bottom: 2px solid var(--tad-blue);
    border-top: 0;
    color: var(--tad-ink);
    font-family: 'Montserrat-Bold', 'Segoe UI', sans-serif;
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 14px 16px;
    white-space: nowrap;
    background: #fff;
}

table.tad-table > tbody > tr > td {
    border-top: 1px solid #EEF2F4;
    padding: 14px 16px;
    vertical-align: middle;
    color: #354048;
    font-size: 14px;
}

table.tad-table > tbody > tr:hover > td {
    background: #F4F9FD;
}

.tad-table .tad-strong {
    font-weight: 700;
    color: var(--tad-ink);
}

.incentive-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
}

/* DataTables sort arrows on the brand header */
table.tad-table > thead .sorting,
table.tad-table > thead .sorting_asc,
table.tad-table > thead .sorting_desc {
    cursor: pointer;
}

/* ---------- Status badge ---------- */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.status-complete {
    background: #E4F2D3;
    color: #3F6212;
}

.status-progress {
    background: #D9ECF8;
    color: #0B5D8A;
}

.status-cancelled {
    background: #FADBDB;
    color: #9A2B2B;
}

.status-default {
    background: #ECEFF1;
    color: #4B565C;
}

/* ---------- Key Dates (stacked, captioned, small) ---------- */
.key-dates {
    margin: 0;
}

    .key-dates li {
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-size: 12px;
        line-height: 1.7;
    }

    .key-dates .kd-label {
        flex: 0 0 64px;
        color: var(--tad-muted);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .4px;
        font-size: 10px;
    }

    .key-dates .kd-val {
        color: var(--tad-ink);
        font-variant-numeric: tabular-nums;
    }

/* ---------- Info + pagination ---------- */
.dataTables_wrapper .dataTables_info {
    color: var(--tad-muted);
    font-size: 13px;
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        border-radius: 6px !important;
        border: 1px solid #D7DEE2 !important;
        background: #fff !important;
        color: var(--tad-muted) !important;
        text-transform: lowercase;
        padding: 4px 9px;
        margin-left: 3px;
        font-size: 12px;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current,
        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            background: #EAF3FA !important;
            border-color: #BFDCEF !important;
            color: var(--tad-blue-deep) !important;
            font-weight: 700;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: var(--tad-wash) !important;
            border-color: #C3CDD3 !important;
            color: var(--tad-ink) !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
            background: #fff !important;
            border-color: #ECEFF1 !important;
            color: #C6D0D6 !important;
        }

        /* Hand cursor over the page numbers.
           DataTables renders these as <a> elements with NO href attribute, so
           the browser gives them cursor:auto rather than the usual link
           pointer. jquery.dataTables.min10.css would supply cursor:pointer,
           but _Layout2.cshtml (the TADashboard layout) only loads
           dataTables.bootstrap.min.css, which does not. Setting it here keeps
           the fix scoped to this page.
           The ".pagination > li > a" selectors are harmless insurance in case
           dataTables.bootstrap.js is added later and switches the pagination
           over to Bootstrap's markup. */
        .dataTables_wrapper .dataTables_paginate .paginate_button,
        .dataTables_wrapper .dataTables_paginate .paginate_button a,
        .dataTables_wrapper .dataTables_paginate .pagination > li > a,
        .dataTables_wrapper .dataTables_paginate .pagination > li > span {
            cursor: pointer;
        }

            /* ...but not on the greyed-out Previous / Next arrows. */
            .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
            .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
            .dataTables_wrapper .dataTables_paginate .paginate_button.disabled a,
            .dataTables_wrapper .dataTables_paginate .pagination > .disabled > a,
            .dataTables_wrapper .dataTables_paginate .pagination > .disabled > span {
                cursor: default;
            }

/* ---------- Empty / warning state ---------- */
.tad-empty {
    padding: 56px 20px;
}

    .tad-empty .glyphicon {
        font-size: 40px;
        color: #C6D0D6;
        margin-bottom: 12px;
    }

    .tad-empty p {
        font-size: 15px;
        margin: 0;
    }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .tad-card .tad-card-body {
        padding: 20px 16px 16px;
    }
}

@media (max-width: 767px) {
    .tad-dashboard {
        padding: 16px 10px 36px;
    }

    .tad-card .tad-card-head {
        padding: 4px 14px 0;
    }

    .tad-card .tad-card-body {
        padding: 16px 12px 14px;
    }

    .tad-tabs.nav-tabs > li > a {
        font-size: 16px;
    }

    /* Search + export actions go full width / left on phones */
    .tad-actions {
        justify-content: flex-start;
    }

    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin-top: 8px;
    }

    .dataTables_wrapper .dataTables_info {
        text-align: center;
    }
}

/* ============================================================
   TOP MENU STYLES
   Pulled from NIPSCO.css (top navigation only): the #site-header
   header bar, the #topNav primary navbar, its dropdown menus,
   the .chevron / .btmborder link treatments and the Contact CTA.
   Generic ".nav > li > a" rules from NIPSCO.css are intentionally
   left out so they can't affect the dashboard's own tab.
   ============================================================ */

.navbar-inverse {
    background: #fff;
    color: black !important;
    min-height: 50px;
    vertical-align: middle;
}

#site-header {
    padding-bottom: 20px;
}

#logo {
    margin: 0;
}

/* primary menu */
#topNav.navbar {
    font-size: 19px;
    font-family: Montserrat-Regular;
    min-height: 100%;
    background-color: transparent;
    border: 0;
    float: right;
    line-height: 25.6px;
}

#topNav.navbar-nav > li {
    padding: 0 15px;
}

    #topNav.navbar-nav > li > a {
        color: #002D3C !important;
        font-weight: bold;
        text-transform: none; /* Title Case - see Content/site-chrome.css */
        padding: 0;
    }

    /* Menu link sizing, scoped to #topNav so it never affects the dashboard tab.
   Replaces NIPSCO.css's global ".nav > li > a { font-size:16px }" — the rule
   that keeps the menu on one line. Without it the links inherit the navbar's
   19px, grow wider and wrap to a second row (the layout2 issue).
   The canonical size for menu items AND their dropdowns now lives in
   Content/site-chrome.css (--nip-nav-size); it is kept in sync here. */
    #topNav .nav > li > a,
    #topNav .navbar-nav > li > a {
        font-family: 'Montserrat', 'Montserrat-Bold', Arial, Helvetica, sans-serif;
        font-size: 15px;
        font-weight: 700;
        color: #002D3C;
        text-transform: none; /* Title Case, not ALL CAPS */
        padding-left: 10px;
        padding-right: 10px;
        white-space: nowrap;
    }

    /* Dropdown items match the menu items above (they used to inherit the
       navbar's 19px, which made the fly-outs look much larger). */
    #topNav .nav li ul li,
    #topNav .nav li ul li a {
        font-family: 'Montserrat', 'Montserrat-Regular', Arial, Helvetica, sans-serif;
        font-size: 15px;
        font-weight: 400;
        text-transform: none;
        line-height: 1.5;
    }

#topNav .nav > li a:hover {
    color: #0068A7;
}

@media (max-width: 767px) {
    #topNav.navbar-nav > li {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #topNav.navbar-nav {
        padding: 15px 0;
    }
}

@media (max-width: 999px) {
    #logo,
    #topNav.navbar {
        float: none;
        width: 100%;
    }

    #topNav.navbar {
        margin: 20px 0 0;
    }
}

#topNav.navbar-nav {
    margin: 0 -15px;
}

#topNav.navbar-toggle {
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0 15px;
    margin: 0;
    border: 0;
    border-radius: 0;
    width: 100%;
}

    #topNav.navbar-toggle .icon-bar {
        margin-top: 4px;
    }

#topNav.navbar-nav > li > a:hover,
#topNav.navbar-nav > li > a:focus {
    color: #0068A7;
    background-color: transparent;
}

#topNav.navbar-nav > .active > a,
#topNav.navbar-nav > .active > a:hover,
#topNav.navbar-nav1 > .active > a:focus {
    color: #0068A7 !important;
    background-color: transparent;
}

#topNav.navbar-toggle:hover,
#topNav.navbar-toggle:focus {
    background-color: transparent;
}

#topNav.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* Hamburger toggle fix (small screens): the imported "#topNav.navbar-toggle"
   selectors never match (that button is a child of #topNav, not #topNav itself),
   so the bars fall back to white and vanish on the white navbar. Re-target the
   real button with a descendant selector and give it visible dark bars. */
#topNav .navbar-toggle {
    background-color: #fff;
    border: 1px solid #002D3C;
    border-radius: 4px;
}

    #topNav .navbar-toggle .icon-bar {
        background-color: #002D3C;
    }

    #topNav .navbar-toggle:hover,
    #topNav .navbar-toggle:focus {
        background-color: #eef1f2;
        border-color: #002D3C;
    }

.btmborder:hover {
    border-bottom-style: solid;
    border-bottom-width: 2px;
    color: #0068A7 !important;
}

.btn-contactus {
    border-radius: 10px;
    background-color: #8DC63F;
    margin-left: 10px;
}

    .btn-contactus:hover {
        border-radius: 10px;
        background-color: #002D3C !important;
        color: #fff !important;
        text-decoration: none;
        text-decoration-color: #fff;
    }

/* dropdown menus */
#site-header ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

#site-header li {
    color: #fff;
    display: block;
    float: left;
    padding-top: 2rem;
    padding-left: 1rem;
    position: relative;
    text-decoration: none;
    background-color: #fff;
    font-family: Montserrat-Bold;
    font-weight: 700;
}

    #site-header li a {
        color: #122b31;
        display: block;
    }

    #site-header li:hover,
    #site-header li:focus-within {
        cursor: pointer;
        color: #002D3C;
    }

        #site-header li:focus-within a {
            outline: none;
        }

#site-header ul li ul {
    width: 200px;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    margin-top: 1rem;
    left: 0;
    display: none;
    text-align: left;
    background-color: #fff;
    box-shadow: rgba(7, 43, 49, 0.2) 2px 2px 2px 2px;
    border-radius: 10px 10px 10px 10px;
}

    #site-header ul li ul li {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 10px;
        border-bottom: solid .5px #000;
        font-family: Montserrat-Bold;
        font-weight: 300;
    }

        #site-header ul li ul li:hover a {
            background-color: #0068A7;
            color: #fff !important;
        }

        #site-header ul li ul li a {
            font-family: Montserrat-Regular;
            font-weight: 300;
        }

            #site-header ul li ul li a:hover {
                color: #fff !important;
            }

        #site-header ul li ul li:first-child {
            border-radius: 10px 10px 0 0;
        }

        #site-header ul li ul li:last-child {
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 10px;
            border-bottom: none;
            border-radius: 0 0 10px 10px;
        }

    #site-header ul li:hover > ul,
    #site-header ul li:focus-within > ul,
    #site-header ul li ul:hover,
    #site-header ul li ul:focus {
        visibility: visible;
        opacity: 1;
        display: block;
        border-bottom: solid 1px;
        margin-top: 0;
        color: #0068A7;
    }

#site-header a:hover {
    text-decoration: none;
    color: #0068A7;
}

#site-header ul li ul li {
    clear: both;
    width: 100%;
}

    #site-header ul li ul li:hover {
        background-color: #0068A7;
        color: #fff !important;
    }

#site-header .chevron::after {
    border-style: solid;
    border-width: 0.15em 0.15em 0 0;
    content: '';
    display: inline-block;
    height: 0.45em;
    left: 0.15em;
    position: relative;
    top: 0.15em;
    transform: rotate(-45deg);
    vertical-align: middle;
    width: 0.45em;
    top: -2px;
    left: 8px;
    transform: rotate(135deg);
    color: #002D3C;
}

#site-header .chevron:hover::after {
    color: #0068A7;
}


