main > .container {
    padding: 70px 15px 20px;
}

.badge-primary {
    background-color: #707070 !important;
}

a, .nav-link, .breadcrumb-item a, .nav-link-text {
    color: #707070;
}

a.nav-link.active, a.nav-link:hover {
    color: #649730;
    text-decoration: underline;
    text-decoration-color: #649730;
    text-underline-offset: 10px;
    text-decoration-thickness: 3px;
    font-weight: bold;
}

.card {
    margin-bottom: 0.5rem;
    padding: 0.3rem;
}

.highcharts-xaxis-labels text {
    display: none;
}

.breadcrumb {
    padding-left: 0;
    background-color: white;
}

#w1, #w0, #w2, #w3, #w4, #w5, #w6, #w7, #w8, #w9 {
    margin-left: 0;
    padding-left: 0;
    box-sizing: border-box;
    background-color: white;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.btn-success, .badge-success {
    background-color: #649730 !important;
}

.badge-danger {
    background-color: #e52529 !important;
}

.leaflet-popup-content a:hover, a:hover {
    color: #649730;
    font-weight: normal;
    text-decoration-color: #649730;
}

.leaflet-popup-content a {
    color: #649730
}

svg {
    color: #649730;
}

.not-set {
    color: #c55;
    font-style: italic;
}


/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-toggler {
        background-color: #649730;
        min-height: 2.5rem;
        border: none;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler:hover {
        outline: none;
    }

    .navbar-toggler-icon {
        background-color: #fff;
        display: inline-block;
        width: 1.5em;
        height: 2px;
        vertical-align: middle;
        position: relative;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: "";
        background-color: #fff;
        width: 1.5em;
        height: 2px;
        position: absolute;
        left: 0;
    }

    .navbar-toggler-icon::before {
        top: -5px;
    }

    .navbar-toggler-icon::after {
        bottom: -5px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* class to style an anchor as disable (like button disabled) */
.disabled {
    pointer-events: none;   /* Disables the link from being clickable */
    opacity: 0.5;           /* Makes the link appear faded, like a disabled button */
    cursor: default;        /* Changes the cursor to the default icon */
}

.btn-light-gray {
    background-color: #d3d3d3 !important; /* Light gray */
    color: #000 !important; /* Black text */
    border: none !important;
}

.btn-light-green {
    background-color: rgb(96, 138, 22) !important; /* Light green */
    color: #fff !important; /* White text for better contrast */
    border: none !important;
}

.btn-light-gray:hover {
    background-color: #c0c0c0 !important; /* Slightly darker gray */
}

.btn-light-green:hover {
    background-color: rgb(76, 118, 20) !important; /* Slightly darker green */
}


:root {
    --thercon-primary: rgb(152, 190, 200);
    --thercon-primary-hover: rgb(132, 170, 180);
    --thercon-primary-active: rgb(117, 151, 160);
}

main > .container {
    padding: 70px 15px 20px;
}

.badge-primary {
    background-color: #707070 !important;
}

a, .nav-link, .breadcrumb-item a, .nav-link-text {
    color: #707070;
}

a.nav-link.active, a.nav-link:hover {
    color: #649730;
    text-decoration: underline;
    text-decoration-color: #649730;
    text-underline-offset: 10px;
    text-decoration-thickness: 3px;
    font-weight: bold;
}

.card {
    margin-bottom: 0.5rem;
    padding: 0.3rem;
}

.highcharts-xaxis-labels text {
    display: none;
}

.breadcrumb {
    padding-left: 0;
    background-color: white;
}

#w1, #w0, #w2, #w3, #w4, #w5, #w6, #w7, #w8, #w9 {
    margin-left: 0;
    padding-left: 0;
    box-sizing: border-box;
    background-color: white;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.btn-success, .badge-success {
    background-color: #649730 !important;
}

.badge-danger {
    background-color: #e52529 !important;
}

.leaflet-popup-content a:hover, a:hover {
    color: #649730;
    font-weight: normal;
    text-decoration-color: #649730;
}

.leaflet-popup-content a {
    color: #649730
}

svg {
    color: #649730;
}

.not-set {
    color: #c55;
    font-style: italic;
}


/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-toggler {
        background-color: #649730;
        min-height: 2.5rem;
        border: none;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler:hover {
        outline: none;
    }

    .navbar-toggler-icon {
        background-color: #fff;
        display: inline-block;
        width: 1.5em;
        height: 2px;
        vertical-align: middle;
        position: relative;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: "";
        background-color: #fff;
        width: 1.5em;
        height: 2px;
        position: absolute;
        left: 0;
    }

    .navbar-toggler-icon::before {
        top: -5px;
    }

    .navbar-toggler-icon::after {
        bottom: -5px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* class to style an anchor as disable (like button disabled) */
.disabled {
    pointer-events: none;   /* Disables the link from being clickable */
    opacity: 0.5;           /* Makes the link appear faded, like a disabled button */
    cursor: default;        /* Changes the cursor to the default icon */
}

.btn-light-gray {
    background-color: #d3d3d3 !important; /* Light gray */
    color: #000 !important; /* Black text */
    border: none !important;
}

.btn-light-green {
    background-color: rgb(96, 138, 22) !important; /* Light green */
    color: #fff !important; /* White text for better contrast */
    border: none !important;
}

.btn-light-gray:hover {
    background-color: #c0c0c0 !important; /* Slightly darker gray */
}

.btn-light-green:hover {
    background-color: rgb(76, 118, 20) !important; /* Slightly darker green */
}

/* Primary button color overrides (Thercon) */
.btn-primary {
    color: #fff !important;
    background-color: var(--thercon-primary) !important;
    border-color: var(--thercon-primary) !important;
}

.btn-primary:hover {
    color: #fff !important;
    background-color: var(--thercon-primary-hover) !important;
    border-color: var(--thercon-primary-hover) !important;
}

.btn-primary:focus, .btn-primary.focus, .btn-check:focus + .btn-primary {
    color: #fff !important;
    background-color: var(--thercon-primary-hover) !important;
    border-color: var(--thercon-primary-hover) !important;
    box-shadow: 0 0 0 .25rem rgba(152, 190, 200, 0.5) !important;
}

.btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle {
    color: #fff !important;
    background-color: var(--thercon-primary-active) !important;
    border-color: var(--thercon-primary-active) !important;
}

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff !important;
    background-color: var(--thercon-primary) !important;
    border-color: var(--thercon-primary) !important;
}

/* Outline primary variant */
.btn-outline-primary {
    color: var(--thercon-primary) !important;
    border-color: var(--thercon-primary) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    color: #fff !important;
    background-color: var(--thercon-primary) !important;
    border-color: var(--thercon-primary) !important;
}

.btn-outline-primary:active, .btn-outline-primary.active, .show > .btn-outline-primary.dropdown-toggle {
    color: #fff !important;
    background-color: var(--thercon-primary-active) !important;
    border-color: var(--thercon-primary-active) !important;
}

/* Dashboard register cards custom colors (scoped to Machine Detail dashboard) */
.dashboard-read .small-box {
    background-image: none !important; /* disable AdminLTE gradients */
    background-color: rgb(152, 190, 200) !important; /* read registers */
    color: #000 !important;
}
.dashboard-write .small-box {
    background-image: none !important;
    background-color: rgb(182, 165, 180) !important; /* write registers */
    color: #000 !important;
}
/* Ensure text inside the cards is readable */
.dashboard-read .small-box .inner h3,
.dashboard-read .small-box .inner p,
.dashboard-write .small-box .inner h3,
.dashboard-write .small-box .inner p {
    color: #000 !important;
}
/* Tone down the icon color for better contrast on light backgrounds */
.dashboard-read .small-box .icon > i,
.dashboard-write .small-box .icon > i {
    color: rgba(0, 0, 0, 0.2) !important;
}
