﻿/* =========================================================
   Baker Tilly Theme Tokens (match login.css)
   - NO HTML CHANGES REQUIRED
   - Bootstrap 5 gets themed via --bs-* variable mapping
   ========================================================= */
:root {
    /* Brand */
    --bt-navy: #000065;
    --bt-green: #96a780;
    --bt-charcoal: #2b303a;
    /* Text */
    --bt-text: var(--bt-charcoal);
    --bt-muted: rgba(43,48,58,0.70);
    --bt-muted-2: rgba(43,48,58,0.55);
    /* Surfaces (glassy / clean) */
    --bt-bg: #f7f7f0; /* your current body bg, kept but tokenized */
    --bt-surface: rgba(255,255,255,0.78);
    --bt-surface-strong: rgba(255,255,255,0.92);
    --bt-surface-solid: #ffffff;
    --bt-surface-soft: rgba(248,249,250,0.92);
    /* Borders + shadows */
    --bt-border: rgba(43,48,58,0.14);
    --bt-border-soft: rgba(43,48,58,0.10);
    --bt-shadow: 0 20px 60px rgba(0,0,0,0.20);
    --bt-shadow-soft: 0 0.5rem 1rem rgba(0,0,0,0.15);
    --bt-shadow-lite: 0 .25rem .75rem rgba(0, 0, 0, .05);
    /* Rounding */
    --bt-radius-sm: 10px;
    --bt-radius: 16px;
    --bt-radius-lg: 28px;
    /* Links */
    --bt-link: rgba(0,0,101,0.92);
    --bt-link-hover: rgba(0,0,101,0.78);
    /* Accent blues used in legacy css (tokenize to BT navy family) */
    --bt-accent: rgba(0,0,101,0.92);
    --bt-accent-2: rgba(0,0,101,0.78);
    /* Tables */
    --bt-table-head: var(--bt-green);
    --bt-table-row-alt: rgba(43,48,58,0.04);
    /* Menu / hover surfaces */
    --bt-hover: rgba(43,48,58,0.06);
    --bt-hover-2: rgba(43,48,58,0.09);
    /* Scrollbar */
    --bt-scroll-track: rgba(43,48,58,0.08);
    --bt-scroll-thumb: rgba(0,0,101,0.55);
    --bt-scroll-thumb-hover: rgba(0,0,101,0.75);
}

/* =========================================================
   Bootstrap 5 variable mapping (themes everything using BS)
   ========================================================= */
:root {
    --bs-body-bg: var(--bt-bg);
    --bs-body-color: var(--bt-text);
    --bs-border-color: var(--bt-border);
    --bs-primary: var(--bt-navy);
    --bs-link-color: var(--bt-link);
    --bs-link-hover-color: var(--bt-link-hover);
    --bs-secondary-color: var(--bt-muted);
    --bs-card-bg: var(--bt-surface);
    --bs-card-border-color: var(--bt-border);
    /* Optional nicer rounding on BS components */
    --bs-border-radius: 0.9rem;
    --bs-border-radius-lg: 1.3rem;
}

/* =========================================================
   Your original CSS, now tokenized
   ========================================================= */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-top: 57px;
    background-color: var(--bt-bg);
    scroll-behavior: smooth;
    color: var(--bt-text);
}

main {
    min-height: 75vh;
}

a {
    text-decoration: none;
    color: var(--bt-link);
}

    a:hover {
        text-decoration: underline;
        color: var(--bt-link-hover);
    }

.footer {
    line-height: normal !important;
    padding-top: 2em;
    padding-bottom: 2em;
    min-height: 25vh;
    width: 100%;
    white-space: nowrap;
}

/* Nav */
.nav-item {
    padding: 0em .7em;
    margin: 0 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: none;
    white-space: nowrap;
}

    .nav-item:hover {
        background: var(--bt-hover);
        border-radius: var(--bt-radius-sm);
    }

    .nav-item.active {
        background: var(--bt-hover-2);
        border-radius: var(--bt-radius-sm);
        color: var(--bt-accent) !important;
    }

.nav-pills .nav-item.active .nav-link {
    color: var(--bt-accent) !important;
}

.nav-item.active .nav-link {
    color: #fff !important;
}

.nav-pills .nav-item {
    padding: 0em;
    margin-bottom: 2px;
}

.nav-link {
    color: var(--bt-text);
}

    .nav-link:hover {
        text-decoration: none;
    }

.navbar-nav .nav-item.active {
    background: var(--bt-navy);
    border-radius: var(--bt-radius-sm);
}

/* Brand */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Pills active */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--bt-accent);
    border-color: var(--bt-accent-2);
}

/* Shadows */
.box-shadow {
    box-shadow: var(--bt-shadow-lite);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Side navbar */
.side-navbar {
    width: 240px;
    min-height: 50vh;
    position: fixed;
    margin-left: -300px;
    /* glass-friendly */
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, var(--bt-surface-soft) 100%);
    transition: 0.5s;
    border-right: 1px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(43,48,58,.20) 100%);
}

    .side-navbar.nav-link:active,
    .side-navbar.nav-link:focus,
    .side-navbar.nav-link:hover {
        background-color: rgba(255,255,255,0.15);
    }

.border-gradient {
    border-right: 10px solid;
    border-image-slice: 1;
    border-width: 5px;
}

/* Keep, but you can later map purple/pink to BT if desired */
.border-gradient-purple {
    border-image-source: linear-gradient(to left, #743ad5, #d53a9d);
}

.my-container {
    transition: 0.4s;
}

.active-nav {
    margin-left: 0;
}

/* main section */
.active-cont {
    margin-left: 240px;
}

@media print {
    .active-cont {
        margin-left: 1px;
    }
}

footer h4 {
    text-transform: uppercase;
}

/* Ellipsis helpers */
.text-ellipsized {
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: none;
    white-space: nowrap;
}

/* Cards */
.card {
    box-shadow: var(--bt-shadow-soft) !important;
    margin-bottom: 2rem !important;
    border-radius: .1rem; /* keeping your original */
    border-color: var(--bt-border) !important;
    background: var(--bt-surface) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-footer {
    text-align: right;
    background: var(--bt-surface-soft);
    border-top-color: var(--bt-border-soft);
}

.card-header {
    background: var(--bt-navy);
    color: #fff;
    padding: .3rem;
}

/* Multi-step form progress bar */
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    counter-reset: step;
    width: 100%;
    text-align: center;
}

    #progressbar li {
        list-style-type: none;
        color: var(--bt-text);
        text-transform: uppercase;
        font-size: .75em;
        width: 25%;
        float: left;
        position: relative;
    }

        #progressbar li:before {
            content: counter(step);
            counter-increment: step;
            width: 20px;
            line-height: 20px;
            display: block;
            font-size: 10px;
            color: var(--bt-text);
            background: var(--bt-surface-solid);
            border-radius: 3px;
            margin: 0 auto 5px auto;
            border: 1px solid var(--bt-border-soft);
        }

        #progressbar li:after {
            content: '';
            width: 100%;
            height: 2px;
            background: var(--bt-surface-solid);
            position: absolute;
            left: -50%;
            top: 9px;
            z-index: -1;
        }

        #progressbar li:first-child:after {
            content: none;
        }

        #progressbar li.active:before,
        #progressbar li.active:after {
            background: var(--bt-charcoal);
            color: #fff;
        }

/* Vertical progressbar */
.v-progressbar {
    padding: 0;
    counter-reset: step;
}

    .v-progressbar li {
        list-style-type: none;
        display: block;
    }

        .v-progressbar li:before {
            content: counter(step);
            counter-increment: step;
            width: 20px;
            color: var(--bt-text);
            display: inline-block;
            background: rgba(43,48,58,0.08);
            border-radius: 3px;
            margin: 0 .5em 0 0;
            text-align: center;
            border: 1px solid var(--bt-border-soft);
        }

        .v-progressbar li:after {
            content: '';
            width: 4px;
            margin-left: 8px;
            height: 20px;
            background: rgba(43,48,58,0.08);
            display: block;
            z-index: -1;
        }

        .v-progressbar li:last-child:after {
            content: none;
        }

        .v-progressbar li.active:before,
        .v-progressbar li.active:after {
            background: var(--bt-charcoal);
            color: #fff;
        }

/* Buttons inside anchors */
a.btn {
    text-decoration: none;
}

    a.btn:hover {
        text-decoration: none;
    }

/* Labels + validation */
.form-label {
    color: var(--bt-muted) !important;
    font-size: smaller;
    margin: 0;
    padding: 0;
}

.field-validation-error {
    font-size: smaller;
    color: #dc3545;
}

h5, h6 {
    font-weight: lighter;
}

/* Text clamp */
.text-ellipsis-1,
.text-ellipsis-2,
.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-1 {
    -webkit-line-clamp: 1;
}

.text-ellipsis-2 {
    -webkit-line-clamp: 2;
}

.text-ellipsis-3 {
    -webkit-line-clamp: 3;
}

/* Breadcrumb */
.breadcrumb-item {
    color: var(--bt-muted) !important;
}

    .breadcrumb-item:hover {
        color: rgba(43,48,58,0.90) !important;
    }

    .breadcrumb-item a {
        text-decoration: none !important;
        color: inherit;
    }

/* Styled tables (HTML + PDF) */
.styled-table,
.styled-table-pdf {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background: var(--bt-surface-solid);
    border-radius: var(--bt-radius);
    overflow: hidden;
}

    .styled-table thead tr,
    .styled-table-pdf thead tr {
        background-color: var(--bt-table-head);
        color: #ffffff;
        text-align: left;
    }

    .styled-table th,
    .styled-table td,
    .styled-table-pdf th,
    .styled-table-pdf td {
        padding: 4px 15px;
    }

    .styled-table tbody tr,
    .styled-table-pdf tbody tr {
        border-bottom: 1px solid var(--bt-border);
    }

        .styled-table tbody tr:nth-of-type(even),
        .styled-table-pdf tbody tr:nth-of-type(even) {
            background-color: var(--bt-table-row-alt);
        }

        .styled-table tbody tr:last-of-type,
        .styled-table-pdf tbody tr:last-of-type {
            border-bottom: 2px solid var(--bt-table-head);
        }

/* Printing */
@page {
    size: auto;
    margin: 0mm;
}

.right_menu_btn:hover {
    background-color: var(--bt-surface-solid);
    transition: 0.2s;
}

/* More items menu */
.more-items-menu {
    position: relative;
    display: inline-block;
    width: 300px;
}

.more-items-menu-link {
    color: var(--bt-text);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 16px;
    margin-right: 10px;
}

.more-items-menu-button {
    background-color: transparent;
    border: none;
    color: var(--bt-text);
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
    float: right;
    border-radius: var(--bt-radius);
}

.more-items-menu-content {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(255,255,255,0.96);
    min-width: 200px;
    box-shadow: 0px 14px 30px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    padding: 8px;
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    border: 1px solid var(--bt-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .more-items-menu-content a {
        color: var(--bt-text);
        padding: 8px 10px;
        text-decoration: none;
        display: block;
        border-radius: 12px;
    }

        .more-items-menu-content a:hover {
            background-color: var(--bt-hover);
        }

.more-items-menu:hover .more-items-menu-content {
    display: block;
}

.more-items-menu:hover .more-items-menu-button {
    background-color: var(--bt-hover);
}

/* Grip icon */
.grip-icon {
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

    .grip-icon span {
        width: 100%;
        height: 3px;
        background-color: rgba(43,48,58,0.85);
        border-radius: 99px;
    }

/* Rounded card helper */
.card-rounded {
    border-radius: 20px;
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    scrollbar-color: var(--bt-scroll-thumb) var(--bt-scroll-track);
    scrollbar-width: thin;
}

::-webkit-scrollbar-track {
    background: var(--bt-scroll-track);
}

::-webkit-scrollbar-thumb {
    background: var(--bt-scroll-thumb);
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--bt-scroll-thumb-hover);
    }


/* =========================================================
   BT Footer (premium/glass on BT navy)
   ========================================================= */

:root {
    --bt-footer-bg: var(--bt-navy);
    --bt-footer-card: rgba(255,255,255,0.10);
    --bt-footer-border: rgba(255,255,255,0.16);
    --bt-footer-text: rgba(255,255,255,0.82);
    --bt-footer-muted: rgba(255,255,255,0.62);
    --bt-footer-link: rgba(255,255,255,0.76);
    --bt-footer-link-hover: rgba(255,255,255,0.95);
}

.bt-footer {
    background: var(--bt-footer-bg);
    margin-top: 0.75rem;
    padding: 26px 0 22px 0;
}

.bt-footer-container {
    max-width: 1200px;
}

.bt-footer-card {
    border-radius: var(--bt-radius-lg);
    background: var(--bt-footer-card);
    border: 1px solid var(--bt-footer-border);
    box-shadow: var(--bt-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

/* top content */
.bt-footer-top {
    padding: 22px 22px 18px 22px;
}

.bt-footer-heading {
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.bt-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bt-footer-logo {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}

.bt-footer-title {
    color: rgba(255,255,255,0.95);
    font-weight: 900;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.bt-footer-subtitle {
    color: var(--bt-footer-muted);
    font-size: 0.95rem;
    margin-top: 2px;
}

.bt-footer-note {
    color: var(--bt-footer-text);
    opacity: 0.95;
    margin: 10px 0 12px 0;
    max-width: 520px;
}

.bt-footer-meta {
    display: grid;
    gap: 6px;
    color: var(--bt-footer-muted);
    font-size: 0.92rem;
}

.bt-footer-link {
    display: block;
    padding: 8px 10px;
    border-radius: 14px;
    color: var(--bt-footer-link);
    text-decoration: none;
    transition: 0.15s ease;
}

    .bt-footer-link:hover {
        color: var(--bt-footer-link-hover);
        background: rgba(255,255,255,0.10);
        text-decoration: none;
    }

/* pill */
.bt-footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.80);
    font-size: 0.92rem;
}

/* status */
.bt-footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.bt-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--bt-green);
    box-shadow: 0 0 0 6px rgba(150,167,128,0.22);
}

.bt-footer-status-title {
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    line-height: 1.1;
}

.bt-footer-status-sub {
    color: var(--bt-footer-muted);
    font-size: 0.9rem;
}

/* socials */
.bt-footer-social {
    display: flex;
    gap: 10px;
}

.bt-social {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: rgba(255,255,255,0.90);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    text-decoration: none;
    transition: 0.15s ease;
}

    .bt-social:hover {
        background: rgba(255,255,255,0.16);
        transform: translateY(-1px);
        text-decoration: none;
        color: rgba(255,255,255,0.98);
    }

.bt-footer-small {
    color: var(--bt-footer-muted);
    font-size: 0.9rem;
}

/* bottom bar */
.bt-footer-bottom {
    padding: 14px 22px;
    border-top: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.10);
}

.bt-footer-copy {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

.bt-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.bt-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.82);
    font-size: 0.84rem;
    font-weight: 700;
}

/* mobile padding */
@media (max-width: 767px) {
    .bt-footer-top {
        padding: 18px 16px 16px 16px;
    }

    .bt-footer-bottom {
        padding: 12px 16px;
    }
}
