﻿:root {
    --gc-brand-primary: #333333;
    --gc-brand-secondary: #727272;
    --gc-logo: url('Themes/demo/demo.png');
    --gc-ui-light: #f2f2f2;
    --gc-ui-mid: #727272;
    --gc-ui-dark: #333333;
    --gc-background-color: var(--gc-brand-primary);
    --gc-top-bar-background-color: white;
    --gc-sidebar-background-color: var(--gc-brand-secondary);
    --gc-sidebar-indicator-color: var(--gc-brand-secondary);
    --gc-nav-text-color: var(--gc-ui-light);
    --gc-btn-color: var(--gc-ui-light);
    --gc-btn-background-color: var(--gc-brand-primary);
}
/** {
    border: 1px dotted red;
}*/
html {
    height: 100%;
}

body {
    font-size: 1.1rem;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

main {
    padding-top: 3em;
}

/*
* Header
*/
header {
    background-color: var(--gc-background-color) !important;
}


.brand-logo {
    content: var(--gc-logo);
    fill: black;
    max-height: 3.5em;
}

pre {
    white-space: pre-wrap;
    font-size: 1.1rem;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.card-header {
    background-color: var(--gc-btn-background-color);
    color: var(--gc-btn-color);
}

/*
* Sidebar
*/
.sidebar {
    z-index: 100;
    border: none;
    min-height: 100vh;
    bottom: 0;
    color: var(--gc-nav-text-color);
    background-color: var(--gc-sidebar-background-color);
    background-image: var(--gc-sidebar-background-color);
    /*To keep Select Account from wrapping */
    min-width: 208px;
}

@media screen and (max-width: 767px) {
    .sidebar {
        position: fixed;
        height: 100%;
        overflow-y: scroll;
        padding-top: 74px !important;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
    color: var(--gc-nav-text-color);
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.version-number{
    font-size: .75rem;
    color: gray;
    padding-top: 100px;
}
.navbar {
    background-color: var(--gc-top-bar-background-color) !important;
    padding: 0.5rem;
}

.navbar-toggler {
    background-color: var(--gc-brand-primary) !important;
}

.nav-link > i {
    min-width: 2em;
}

.nav-link:hover {
    border-left: 4px solid var(--gc-sidebar-indicator-color);
    margin-left: -4px;
}

.nav-linkactive {
    font-weight: bold;
    border-left: 4px solid var(--gc-sidebar-indicator-color);
    margin-left: -4px;
}

/* Forms */
.select-account-form, .login-form, .password-form, .report-form, .review-form {
    max-width: 36em;
}

/*   Tables   */
.sort-link {
    color: currentColor;
    text-decoration: none;
}

.logged-user .badge:after {
    content: attr(value);
    font-size: 12px;
    color: #fff;
    background: var(--gc-brand-primary);
    border-radius: 50%;
    padding: 4px 7px 3px 5px; /* Reduced padding */
    position: absolute;
    top: -12px; /* Position above the icon */
    right: -8px; /* Align to the right edge of the icon */
    opacity: 0.9;
    line-height: 1;
}

.logged-user .badge {
    position: relative; /* Keep the badge relative to the icon */
    display: inline-block;
    margin: 0;
    padding: 0;
    z-index: 1; /* Ensure it appears on top of the icon */
    color: transparent !important;
}

.menu-badge .badge:after {
    content: attr(value);
    font-size: 12px;
    color: #fff;
    background: var(--gc-sidebar-indicator-color);
    border-radius: 50%;
    padding: 4px 8px 3px 5px; /* Reduced padding */
    position: absolute;
    top: -12px; /* Position above the icon */
    right: -10px; /* Align to the right edge of the icon */
    opacity: 0.9;
    line-height: 1;
}

.menu-badge .badge {
    position: relative; /* Keep the badge relative to the icon */
    display: inline-block;
    margin: 0;
    padding: 0;
    z-index: 1; /* Ensure it appears on top of the icon */
    color: transparent!important;
}

tr {
    border-bottom: 1px solid var(--bs-gray);
}

.logged-user {
    color: var(--gc-nav-text-color);
}
.menu-badge {
    color:transparent !important;
}

.MobileView {
    display: none;
}

.pagination {
    float: right;
    margin-bottom: 0;
}


td {
    word-break: keep-all;
}

.nav {
    display: block;
}

.select-account-list {
    word-break: break-word;
}

.details-arrow {
    float: right;
}

@media screen and (max-width: 1468px) {

    .details-arrow {
        float: none;
    }

    .OrderSummary table, tbody {
        display: revert;
    }

    .mobile-view td {
        /* Behave  like a "row" */
        border: none;
        position: relative;
        min-height: 30px;
        padding: 0.2rem 0.2rem 0.2rem 55% !important;
    }

        .mobile-view td:before {
            /* Now like a table header */
            position: absolute;
            /* Top/left values mimic padding */
            left: 10px;
            font-weight: bold;
        }
    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr {
        display: block;
    }
        /* Hide table headers (but not display: none;, for accessibility) */
        thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
}

.modal-footer {
    border: none;
}

.reviewModal {
    top: 25%;
}
/* Checkbox */
.form-check-input {
    width: 1.25rem;
    height: .5rem;
}
.form-check-input:checked {
    color: var(--gc-btn-color);
    background-color: var(--gc-btn-background-color);
}

/*   Buttons   */
.btn {
    color: var(--gc-btn-color);
    background-color: var(--gc-btn-background-color);
}

    .btn:hover {
        opacity: 0.8;
        transition: all 0.4s ease-in-out;
        color: var(--gc-btn-color);
    }

.btnCancel {
    color: var(--gc-ui-light);
    background-color: var(--gc-ui-dark);
    border-radius: 5px;
    border: none;
    padding: 10px;
}

    .btnCancel:hover {
        color: var(--gc-ui-light);
        background-color: red;
    }

.btnLink {
    color: var(--gc-ui-light);
    background-color: var(--gc-brand-primary);
}

.btnSubmit {
    color: var(--gc-btn-color);
    background-color: var(--gc-btn-background-color);
    border-radius: 5px;
    border: none;
    padding: 10px;
    text-decoration: none;
}

    .btnSubmit:hover {
        opacity: 0.7;
        transition: all 0.4s ease-in-out;
        color: var(--gc-btn-color);
        background-color: var(--gc-btn-background-color);
    }

button:disabled {
    color: #6c757d;
    pointer-events: none;
}

select {
    display: flex;
    border-radius: 5px;
    padding: 2px;
    background-color: var(--gc-btn-background-color);
    color: var(--gc-btn-color);
    font-size: large;
}

    select option {
        background-color: var(--gc-brand-primary) !important;
        font-size: large !important;
    }

        select option:hover {
            opacity: 0.7;
            transition: all 0.4s ease-in-out;
            color: var(--gc-btn-color);
            background-color: var(--gc-btn-background-color);
        }



/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Links */
a {
    color: var(--gc-ui-primary);
}

hr {
    color: var(--gc-brand-primary);
    opacity: .25;
}

.icon-link {
    color: currentColor;
}

    .icon-link i {
        min-width: 2em;
    }

.error-list ul {
    list-style: none;
    padding-inline-start: 0px;
}

.page-item.disabled .page-link {
    background-color: var(--gc-btn-background-color);
}

.page-link {
    background-color: var(--gc-btn-background-color);
    color: var(--gc-btn-color);
}


    .page-link:hover {
        opacity: 0.7;
        transition: all 0.4s ease-in-out;
        color: var(--gc-btn-color);
        background-color: var(--gc-btn-background-color);
    }

.page-number-link {
    opacity: 0.7;
}

input {
    padding: 10px 5px 10px 5px;
}

.billing-form {
    border: thin solid var(--gc-brand-primary);
    color: var(--gc-brand-primary);
    font-weight: bold;
}

#card-number {
    background-image: url('');
    background-position: right;
    background-repeat: no-repeat;
    right: 5px;
    background-size: 40px;
}

.OrderSummary {
    background-color: var(--gc-ui-light);
    color: var(--gc-brand-primary);
    text-align: center;
}

    .OrderSummary h1 {
        color: var(--gc-brand-primary);
    }

    .OrderSummary td {
        color: var(--gc-brand-primary);
        width: 100% !important;
    }

    .OrderSummary table, tbody {
        overflow: hidden;
    }

/* Blend page */
.selected-row {
    color: var(--gc-btn-color) !important;
    background-color: var(--gc-brand-primary) !important;
}

/* Product Page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 1em;
}

.order-row:hover {
    background-color: var(--gc-btn-background-color);
}

    .order-row:hover .order-col {
        color: var(--gc-btn-color) !important;
    }

/* Fix Table Header */
.table-fixed-head {
    overflow: auto;
    max-height: 60vh;
}

    .table-fixed-head thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: var(--bs-light);
    }

/*Loading screen animation*/
@keyframes spin {
    100% {
        transform: rotate(359deg);
    }

    0% {
        transform: rotate(0deg);
    }
}

.load {
    border-bottom: 14px solid black;
    border-right: 14px solid var(--gc-brand-primary);
    border-left: 14px solid var(--gc-brand-secondary);
    border-top: 14px solid black;
    border-radius: 49%;
    width: 120px;
    position: absolute;
    top: 50%;
    animation: spin 3s linear infinite;
    height: 120px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s
}

@-webkit-keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0px;
        opacity: 1
    }
}

@keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}
