.table-responsive {
    height: 100vh;
    font-size: 10px;
}

.tableFixHead thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.tableFixHead tbody tr td {
    font-size: 0.875em;
}

.color-box-on {
    width: 10px;
    height: 10px;
    background-color: #32c0ff;
    display: inline-block;
    position: relative;
    left: 5px;
    right: 5px;
}

.color-box-off {
    width: 10px;
    height: 10px;
    background-color: #fff;
    display: inline-block;
    position: relative;
    left: 5px;
    right: 5px;
}

.list-group-small .list-group-item {
    padding: 5px 10px;
    /* Adjust padding as needed */
    font-size: 0.875em;
    /* Adjust font size as needed */
}

/*#region CraftyEdits*/

/*#region Defaults*/
:root {
    /* Colorblind-safe dark palette */
    --color-bg: #0a0a0a;
    --color-surface: #1E1E1E;
    --color-text: #E0E0E0;
    --color-primary: #56B4E9;
    --color-accent: #E69F00;
    --color-success: #009E73;
    --color-warning: #F0E442;
    --color-danger: #D55E00;
    --color-secondary: #CC79A7;

    --radius: 1rem;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --transition: all 0.25s ease;

    --font-base: clamp(14px, 1vw + 0.5rem, 18px);
    --font-title: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
}



#page-container {

    color: var(--color-text);
}



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    z-index: 0;
    background: #000 url('/static/woe/stars.png') fixed top center;
    color: #333;
}


/*#endregion Defaults*/

/*#region Navbar */

.navbar {
    vertical-align: top;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-inline: 10px;
    background-color: var(--color-bg);
    height: 48px;
    color: #fff;
    border-bottom: 1px solid #535353;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-right: 20px;
}

.login {
    justify-self: right;
    padding-right: 20px;
}

.nav-list-container {
    justify-self: center;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-self: center;
}

.nav-item-link {
    margin: 0 5px;
}

.nav-button {
    padding: 2px 12px;
    text-decoration: none;
    color: #727272;
    ;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;

    border-radius: 0;
}

.nav-button:hover {
    color: #ffffff;
    border-bottom: 1px solid;
}


.nav-button.active {
    border-bottom: 1px solid;
    color: #fff;
}


.pilot-dropdown-container {
    position: relative;
    display: inline-block;
}

.pilot-dropdown-toggle {
    display: flex;
    align-items: center;
    background: transparent;
    color: #fff;
    cursor: pointer;

    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.2s;
}

.pilot-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.pilot-dropdown-toggle img {
    border-radius: 50%;
    margin-right: 10px;
}

.pilot-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    min-width: 160px;
    padding: 0;
    margin-top: 1px;
    list-style: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: none;
}

.pilot-dropdown-menu a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.pilot-dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.dropdown-divider-custom {
    height: 1px;
    margin: 0;
    overflow: hidden;
    background-color: #e0e0e0;
}

.sso-login-link-custom {
    vertical-align: top;
}

.pilot-dropdown-container:hover .pilot-dropdown-menu {
    display: block;
}

@media only screen and (max-width: 620px) {
    .navbar {
        display: none;
    }

}

/*#endregion Navbar*/

/*#region CorpContracts*/

@media only screen and (max-width: 620px) {
    body {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .contracts-grid {
        grid-template-columns: 1fr;
    }
}

.search-container {
    margin: 20px 0;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#searchInput {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#searchInput:focus {
    outline: none;
    border-color: #4CAF50;
}

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contract-card {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.contract-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 15px;
    border-bottom: 2px solid #eee;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.header-left {
    flex: 1;
}

.header-right {
    text-align: right;
    font-size: 13px;
    color: #666;
}

.header-right .value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.card-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #666;
    font-size: 13px;
}

.excellent .card-header {
    background: linear-gradient(to right, #d4edda, #c3e6cb);
    border-left: 5px solid #28a745;
}

.good .card-header {
    background: linear-gradient(to right, #d1ecf1, #bee5eb);
    border-left: 5px solid #17a2b8;
}

.fair .card-header {
    background: linear-gradient(to right, #fff3cd, #ffeaa7);
    border-left: 5px solid #ffc107;
}

.bad .card-header {
    background: linear-gradient(to right, #f8d7da, #f5c6cb);
    border-left: 5px solid #dc3545;
}

.card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.summary-item {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.summary-item label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item .value {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 13px;
}

th,
td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

.profit {
    color: #28a745;
    font-weight: bold;
    background-color: #d4edda;
    padding: 2px 4px;
    border-radius: 3px;
}

.loss {
    color: #dc3545;
    font-weight: bold;
    background-color: #f8d7da;
    padding: 2px 4px;
    border-radius: 3px;
}

.right {
    text-align: right;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.badge-excellent {
    background: #28a745;
    color: white;
}

.badge-good {
    background: #17a2b8;
    color: white;
}

.badge-fair {
    background: #ffc107;
    color: #333;
}

.badge-bad {
    background: #dc3545;
    color: white;
}

.janice-link {
    display: inline-block;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.janice-link:hover {
    background: #0056b3;
}

.no-contracts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    color: #666;
}

.table-container {
    overflow-x: auto;
    flex: 1;
    text-align: left;
}

/*#endregion CorpContracts*/

/*#region HomePage */
.image-banner {
    vertical-align: bottom;
    display: flex;
    flex-direction: row;
    z-index: 3;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid #333;
}

.image-banner img {
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    max-width: 1024px;
    margin-left: -130px;
    margin-right: -130px;
    filter: grayscale(0.7);
    z-index: 3;
    vertical-align: bottom;

}

.image-banner img:hover {
    filter: grayscale(0);
    transition: filter 0.5s ease-in-out;
    z-index: 0;


}

.home-card {
    width: 100%;
    position: relative;
    color: #727272;
}

.home-card:hover {
    color: rgb(206, 206, 206);
    transition: color 0.5s ease-in-out
}

.caption {
    width: 80%;
    margin: 0 auto;
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    padding-left: 50px;
    padding-block: 10px;
    bottom: 0px;
    left: 0;
    clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 0% 100%);
    backdrop-filter: blur(10px);

}

.caption h2 {
    font-size: 20px;
    margin: 0;
}

.caption p {
    margin: 0;
    font-size: 14px;
}



/*#endregion HomePage */

/* 
    Stars
    Credit: https://codepen.io/NazarAzhar/pen/zqXMqP
*/

@import "susy";
@import "compass/reset";

.stars,
.twinkling,
.clouds {
    overflow: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;

    align-items: center;
    display: flex;
    flex-direction: column;
    position: absolute;
}


.twinkling {
    height: auto;
    max-width: 100%;
    z-index: 1;
    background: transparent url('/static/woe/twinkling.png') fixed top center;
    animation: move-twink-back 200s linear infinite;
}


@keyframes move-twink-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

@keyframes move-clouds-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 10000px 0;
    }
}


/*#endregion CraftyEdits*/