﻿:root {
    --bs-primary: #005499 !important;
    --gw-secondary: #4e738c; /* Primary secondary color */
    --gw-light-gray: #e9ecef; /* Light gray for disabled states/subtle backgrounds */
    --gw-light-blue: #e0f2f7; /* Lighter shade of gw-secondary or a soft general background */
    --gw-dark-blue: #004277; /* Darker shade of bs-primary for active states */
    --gw-dark-secondary: #3b5a70; /* Darker shade of gw-secondary for active states */
    --gw-text-color: #343a40; /* Default dark text color */
    --gw-light-text-color: #6c757d; /* Lighter text color for secondary info */
    --gw-border-color: #dee2e6; /* Standard border color for inputs, cards, tables */
    --gw-bg-light: #f8f9fa; /* Light background for sections, cards, headers */
}

/* --- Base & Typography --- */
@font-face {
    font-family: 'Roboto';
    src: url('Roboto.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Roboto', sans-serif !important;
    background-color: #ffffff;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.breadcrumb,
.form-label,
.td,
.table > :not(caption) > * > * {
    font-family: 'Roboto', sans-serif !important;
}

.gw_page_header {
    color: var(--bs-primary);
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.SelectedRow {
    background-color: #DDDDC0;
}

/* --- Scrollbar Styles --- */
/* Global Scrollbar Styles (for all elements unless overridden) */
::-webkit-scrollbar {
    width: 6px; /* Thin scrollbar */
    height: 6px; /* Thin horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: #f5f5f5; /* Light gray background */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #aaa; /* Neutral gray color */
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #888; /* Slightly darker gray for hover effect */
    }

* {
    scrollbar-width: thin;
    scrollbar-color: #aaa #f5f5f5; /* thumb color | track color */
}

/* Specific Scrollbar Styles for table-responsive */
.table-responsive {
    overflow-x: auto;
    overflow-y: auto;
}

    .table-responsive::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.table {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
    margin-bottom: 0 !important;
}

    .table:: -webkit-scrollbar {
        margin-bottom: 0 !important;
    }

/* --- Layout --- */
.layout-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 48px); /* assuming navbar is 48px */
    margin-top: 48px;
    overflow: hidden;
}

.h-100 {
    height: 100%;
}

/* --- Navbar & Headers --- */
.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #006fba;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    height: 48px;
}

#subHeaderTabs,
.sub-header,
.subh {
    position: sticky;
    background-color: white;
    z-index: 1020;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.sub-header {
    top: 49px; /* Adjust based on navbar height */
}

    .sub-header .nav-tabs .nav-link,
    .subh .nav-tabs .nav-link {
        color: #6c757d;
        text-decoration: none;
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
        transition: color 0.3s, background-color 0.3s, transform 0.3s;
        border-radius: 4px;
    }

        .sub-header .nav-tabs .nav-link:hover,
        .subh .nav-tabs .nav-link:hover {
            color: #005499;
            background-color: rgba(0, 84, 153, 0.1);
            transform: translateY(-2px);
        }

        .sub-header .nav-tabs .nav-link.active,
        .subh .nav-tabs .nav-link.active {
            color: #005499;
            font-weight: 600;
            background-color: rgba(0, 84, 153, 0.1);
            border-bottom: 2px solid #005499;
        }

.toolbarh {
    height: 30px !important;
}

/* --- Sidebar --- */
.gwsidebar {
    width: 256px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    transform: translateX(0);
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-right: 1px solid #ccc;
    overflow-y: auto;
    z-index: 1030;
    position: relative;
    will-change: transform;
}

    .gwsidebar.collapsed {
        width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: none !important;
        transform: translateX(-100%);
        opacity: 0;
        overflow: hidden !important;
    }

    .gwsidebar .nav-link {
        color: #4c4e65 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 4px;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
        text-decoration: none;
        padding: 8px 12px;
        border-left: 1px solid rgb(221, 221, 192);
    }

    .gwsidebar a {
        color: #4c4e65 !important;
        text-decoration: none !important;
    }

        .gwsidebar .nav-link:hover,
        .gwsidebar a:hover {
            background-color: #ffffff !important;
            color: var(--bs-primary) !important;
            box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
            transform: scale(1.02);
        }

        .gwsidebar .nav-link.active,
        .gwsidebar a.active {
            background-color: #d1d5db !important;
            color: var(--bs-primary) !important;
            border-left: 2px solid #0d6efd !important;
        }

        .gwsidebar .nav-link:focus,
        .gwsidebar a:focus {
            outline: 1px solid var(--bs-primary) !important;
            outline-offset: 1px;
        }

.nav-link.level-3 {
    padding-left: 10px !important;
}

.nav-link.level-4 {
    padding-left: 15px !important;
}

/* --- Main Content & Widgets --- */
.gwmain {
    flex: 1;
    min-width: 0;
    padding: 1rem;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.gwwidget {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gwwidget-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    gap: 0.5rem;
    align-items: center;
}

.gwwidget-header .gw-widget-title {
    font-size: 1.25rem;
    color: var(--bs-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.gwwidget-header .gwwidget-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gwwidget-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: white;
    height: 100% !important;
    min-height: 300px !important;
    max-height: 300px !important;
}

.gwwidget-body-withoutmax {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: white;
    height: 100% !important;
    min-height: 300px !important;
}

/*Form Section Headers*/
.form-section-row {
    margin: 0.25rem;
    padding: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

/* Common column style */
.form-section-col {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border-right: 1px solid #dee2e6;
}

/* Remove right border on last column */
.form-section-col:last-child {
    border-right: none;
}

/* Section header */
.form-section-header {
    color: var(--bs-primary);
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
}

/* Content block spacing */
.form-section-content {
    margin-bottom: 1rem;
}


/* --- Buttons --- */
.custom-btn,
.custom-btn-outline,
.gwes-btn-primary,
.gwes-btn-secondary,
.gwes-btn-primary-outline,
.gwes-btn-secondary-outline {
    transition: all 0.3s ease-in-out;
    font-weight: 500;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 16px;
}

.gwes-btn-primary {
    background-color: #005499;
    color: white;
    border: 1px solid #005499;
}

    .gwes-btn-primary:hover,
    .gwes-btn-primary:focus {
        background-color: white;
        color: #005499;
        border-color: #005499;
    }

.gwes-btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

    .gwes-btn-secondary:hover,
    .gwes-btn-secondary:focus {
        background-color: white;
        color: #6c757d;
        border-color: #6c757d;
    }

.gwes-btn-primary-outline {
    background-color: transparent;
    color: #005499;
    border: 1px solid #005499;
}

    .gwes-btn-primary-outline:hover,
    .gwes-btn-primary-outline:focus {
        background-color: #005499;
        color: white;
    }

.gwes-btn-secondary-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

    .gwes-btn-secondary-outline:hover,
    .gwes-btn-secondary-outline:focus {
        background-color: #6c757d;
        color: white;
    }

.gwes-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    height: 13px !important
}

.gwes-btn-primary-sm {
    background-color: #005499;
    color: white;
    border: 1px solid #005499;
}

    .gwes-btn-primary-sm:hover,
    .gwes-btn-primary-sm:focus {
        background-color: white;
        color: #005499;
        border-color: #005499;
    }

.gwes-btn-secondary-sm {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

    .gwes-btn-secondary-sm:hover,
    .gwes-btn-secondary-sm:focus {
        background-color: white;
        color: #6c757d;
        border-color: #6c757d;
    }

.gwes-btn-primary-outline-sm {
    background-color: transparent;
    color: #005499;
    border: 1px solid #005499;
    padding: 4px 10px;
    font-size: 12px;
}

    .gwes-btn-primary-outline-sm:hover,
    .gwes-btn-primary-outline-sm:focus {
        background-color: #005499;
        color: white;
    }

.gwes-btn-secondary-outline-sm {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 4px 10px;
    font-size: 12px;
}

    .gwes-btn-secondary-outline-sm:hover,
    .gwes-btn-secondary-outline-sm:focus {
        background-color: #6c757d;
        color: white;
    }

.btn-icon-only {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    margin-right: 0.25rem;
    transition: all 0.3s ease;
}

.btngrp {
    border: solid 1px #d1e4ed;
    border-radius: 10px;
}

.gw-widget-btn {
    display: inline-flex;
    align-items: center;
    text-align: center;
    border: 1px solid #e4e4e4;
    padding: 5px;
    background-color: transparent;
    font-size: 12px;
    color: black;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

    .gw-widget-btn:hover {
        background-color: #f5f5f5;
        border-color: #ccc;
    }

    .gw-widget-btn:active {
        background-color: #eee;
        border-color: #bbb;
    }

    .gw-widget-btn svg {
        width: 16px;
        height: 16px;
        color: #333;
    }

    .gw-widget-btn.dropdown::after {
        content: "▼";
        font-size: 12px;
        margin-left: 5px;
        color: #666;
    }

.gw-xs-btn {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

.gw-pagination-btn {
    text-align: center;
}

.gwes-btn-gw-secondary {
    background-color: var(--gw-secondary);
    color: white;
    border: 1px solid var(--gw-secondary);
}

    .gwes-btn-gw-secondary:hover,
    .gwes-btn-gw-secondary:focus {
        background-color: var(--gw-dark-secondary);
        border-color: var(--gw-dark-secondary);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        outline: none;
        color: white;
    }

    .gwes-btn-gw-secondary:active {
        box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    }

    .gwes-btn-gw-secondary:disabled {
        background-color: #adb5bd;
        border-color: #adb5bd;
        color: #f8f9fa;
        cursor: not-allowed;
        opacity: 0.7;
    }

.gwes-btn-gw-secondary-outline {
    background-color: transparent;
    color: var(--gw-secondary);
    border: 1px solid var(--gw-secondary);
}

    .gwes-btn-gw-secondary-outline:hover,
    .gwes-btn-gw-secondary-outline:focus {
        background-color: var(--gw-secondary);
        color: white;
    }

    .gwes-btn-gw-secondary-outline:disabled {
        color: #adb5bd;
        border-color: #dee2e6;
        cursor: not-allowed;
        opacity: 0.7;
    }

/* --- Forms & Inputs --- */
.gwes-input,
.gwes-select {
    border-color: #c0c5ca;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: inherit;
    padding: 0.5rem 0.75rem;
    width: 100%;
}

.gwes-input-right {
    border-color: #c0c5ca;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: inherit;
    padding: 0.5rem 0.75rem;
    width: 100%;
    text-align: right;
}

.gwes-select-sm {
    border-color: #c0c5ca;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: inherit;
    padding: 0.1rem 0.75rem;
    width: 96%;
}

.gwes-input:focus,
.gwes-select:focus {
    border-color: #005499;
    box-shadow: 0 0 6px rgba(0, 84, 153, 0.25);
    outline: none;
}

.gw-xs-input,
.gw-xs-select,
.gw-xs-textarea {
    font-size: 11px;
    padding: 2px 6px;
    height: 24px;
    border-radius: 3px;
}

.gw-xs-file {
    font-size: 11px;
    height: 24px;
    padding: 2px;
}

.gw-xs-select {
    font-size: 11px;
    padding: 2px 6px;
    height: 24px;
}

.gw-xs-check,
.gw-xs-radio {
    transform: scale(0.75);
}

.gw-xs-label {
    font-size: 11px;
}

.gw-xs-inputgroup {
    font-size: 11px;
}

.gw-xs-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Checkbox and Radio Button Styles */
span.form-check-input {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

    span.form-check-input > input[type="checkbox"],
    input[type="checkbox"] {
        all: unset !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        width: .75rem !important;
        height: .75rem !important;
        border: 1px solid #ced4da !important;
        border-radius: 0.25rem !important;
        background-color: #fff !important;
        position: relative !important;
        display: inline-block !important;
        cursor: pointer !important;
        vertical-align: middle !important;
    }

        span.form-check-input > input[type="checkbox"]:checked,
        input[type="checkbox"]:checked {
            background-color: var(--bs-primary) !important;
            border-color: var(--bs-primary) !important;
        }

        span.form-check-input > input[type="checkbox"]::after,
        input[type="checkbox"]::after {
            content: "" !important;
            position: absolute !important;
            display: none !important;
            top: 0.1rem !important;
            left: 0.3rem !important;
            width: 0.25rem !important;
            height: 0.5rem !important;
            border: solid #fff !important;
            border-width: 0 0.15rem 0.15rem 0 !important;
            transform: rotate(45deg) !important;
        }

        span.form-check-input > input[type="checkbox"]:checked::after,
        input[type="checkbox"]:checked::after {
            display: block !important;
        }

        span.form-check-input > input[type="checkbox"]:hover,
        input[type="checkbox"]:hover {
            border-color: var(--bs-primary) !important;
        }

        span.form-check-input > input[type="checkbox"]:focus,
        input[type="checkbox"]:focus {
            outline: 2px solid var(--bs-primary) !important;
            outline-offset: 1px !important;
        }

        span.form-check-input > input[type="checkbox"]:disabled,
        input[type="checkbox"]:disabled {
            background-color: var(--gw-light-gray) !important;
            border-color: #ced4da !important;
            cursor: not-allowed !important;
        }

input[type="radio"] {
    all: unset !important;
    appearance: none !important;
    width: 1rem !important;
    height: 1rem !important;
    border: 2px solid #ced4da !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

    input[type="radio"]::before {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 0.8rem !important;
        height: 0.8rem !important;
        border-radius: 50% !important;
        background-color: var(--bs-primary) !important;
        display: none !important;
    }

    input[type="radio"]:checked::before {
        display: block !important;
    }

.checkbox-label,
.radio-label {
    margin-left: 0.5rem !important;
    margin-bottom: 0 !important;
    user-select: none !important;
    cursor: pointer !important;
    color: var(--gw-text-color);
}

    .checkbox-label:hover,
    .radio-label:hover {
        color: var(--bs-primary);
    }

    .checkbox-label.disabled,
    input[type="checkbox"]:disabled + .checkbox-label,
    .radio-label.disabled,
    input[type="radio"]:disabled + .radio-label {
        color: var(--gw-light-text-color) !important;
        cursor: not-allowed;
    }

/* File Input */
.inputFl[type=file].input_container {
    border: 1px solid blue;
}

.inputFl[type=file]::file-selector-button {
    background-color: #6c757d;
    color: #fff;
    line-height: 1.5;
    border: 1px solid #6c757d;
    padding: 5px 10px;
    margin-right: 20px;
    transition: .3s;
    border-radius: 5px;
}

.inputFl[type=file]:enabled::file-selector-button:hover {
    color: #fff;
    background-color: #5c636a;
    border-color: #6c757d;
}

.inputFl[type=file]:disabled::file-selector-button {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: .65;
}

/* --- Tables --- */
.gw-th {
    background-color: #223035 !important;
    color: white !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .gw-th a {
        color: #f8f9fa;
        text-decoration: none;
    }

        .gw-th a:hover {
            color: #ebf2ae;
            text-decoration: underline;
        }

.SelectRowStyle {
    background-color: rgb(221, 221, 192) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fefefe !important;
}

/* --- Accordions --- */
.internalacc {
    margin: 0;
    padding: 0;
    border: none;
}

.internalacc-toggle {
    background: #f3f3f3;
    border: none;
    text-align: left;
    font-size: 1rem;
    width: 100%;
    padding: 0.5rem 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .internalacc-toggle .internalacc-arrow {
        margin-right: 0.5rem;
        transition: transform 0.2s ease;
    }

    .internalacc-toggle[aria-expanded="true"] .internalacc-arrow {
        transform: rotate(90deg);
    }

.internalacc-body {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #333;
    background-color: transparent;
}

.custom-accordion .accordion-button {
    background-color: #fff;
    color: #005499;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Playfair Display', serif;
}

    .custom-accordion .accordion-button:not(.collapsed) {
        background-color: #005499;
        color: #fff;
    }

.custom-accordion .accordion-body {
    background-color: #f8f9fa;
    color: #333;
}

.gwesh .accordion-button {
    background-color: #ffffff;
    color: #0c71c3;
    border: none;
    border-bottom: 1px solid #e2e2e2;
    padding: 15px 40px;
    text-align: left;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: none;
}

    .gwesh .accordion-button .icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: inherit;
    }

    .gwesh .accordion-button.collapsed .icon .fa-minus {
        display: none;
    }

    .gwesh .accordion-button:not(.collapsed) .icon .fa-plus {
        display: none;
    }

.gwesh .accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.gwesh .accordion-button:not(.collapsed) {
    background-color: #E8EEF1;
    color: #0c71c3;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    list-style: none;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: #005499;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

    .breadcrumb-item a:hover {
        color: #005499;
    }

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* --- Tooltips --- */
.custom-tooltip .tooltip-inner {
    background-color: #000000;
    color: white;
    font-size: inherit;
    border-radius: 4px;
}

.custom-tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #0c71c3;
}

/* --- DTree Styles --- */
.dtree, .dRel {
    text-align: left;
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    white-space: nowrap;
    font-weight: normal;
    width: 100%;
    height: 100%;
    overflow: auto;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

    .dtree i.fa, .dRel i.fa {
        margin-right: 6px;
        font-size: 0.95rem;
    }

    .dtree .fa-folder,
    .dtree .fa-folder-open,
    .dRel .fa-folder,
    .dRel .fa-folder-open {
        color: var(--bs-secondary);
    }

    .dtree .fa-file,
    .dRel .fa-file {
        color: #343a40;
    }

    .dtree .fa-angle-right,
    .dtree .fa-angle-down,
    .dRel .fa-angle-right,
    .dRel .fa-angle-down {
        color: var(--bs-primary);
    }

    .dtree a, .dRel a {
        text-decoration: none;
        color: #333;
        transition: color 0.3s;
    }

        .dtree a:hover, .dRel a:hover {
            color: var(--bs-primary);
            text-decoration: underline;
        }

.dTreeNode {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
}

.node {
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nodeSel {
    background-color: var(--bs-primary);
    color: white !important;
    border-radius: 4px;
    padding: 2px 6px;
}

.node:hover {
    background-color: #e9ecef;
}

/* --- Error Handling --- */
.error-container {
    margin-top: 30px;
    text-align: center;
}

.error-message {
    display: inline-block;
    max-width: 90%;
    background-color: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #721c24;
    font-size: 0.875rem;
    line-height: 1.5;
}

.error-text {
    margin: 0;
    display: block;
}

/* --- Maker Checker Styles --- */
.gw_MCBackColor {
    background-color: #fffde6 !important;
}

.gw_MCBackColorWithBorderColor {
    border: 2px solid #cc3e00 !important;
    background-color: #fffde6 !important;
}

/* --- Utility Classes --- */
.text-gwes {
    color: #005499 !important;
}

.text-gw-secondary {
    color: var(--gw-secondary) !important;
}

    .text-gw-secondary:hover {
        color: var(--bs-primary) !important;
        text-decoration: underline;
    }

.bg-gw-secondary {
    background-color: var(--gw-secondary) !important;
}

.bg-gwes-light-secondary {
    background-color: var(--gw-light-blue) !important;
}

.border-gw-secondary {
    border-color: var(--gw-secondary) !important;
}

.link-gw-secondary {
    color: var(--gw-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .link-gw-secondary:hover,
    .link-gw-secondary:focus {
        color: var(--bs-primary);
        text-decoration: underline;
    }

.badge-gw-secondary {
    color: #fff;
    background-color: var(--gw-secondary);
}

.alert-gw-secondary {
    color: #384d5b;
    background-color: rgba(78, 115, 140, 0.1);
    border-color: rgba(78, 115, 140, 0.2);
}

/*Common Card Header*/
.card-header-custom {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    gap: 0.5rem;
}

.card-header-custom .card-header-title {
    font-size: 1.25rem;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
}

.card-header-pageDescriptions,
.card-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .card-header-custom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .card-header-pageDescriptions,
    .card-header-actions {
        margin-top: 0;
    }
}

.card-gw-secondary {
    border-color: var(--gw-secondary);
}

    .card-gw-secondary .card-header {
        background-color: var(--gw-secondary);
        color: white;
        border-color: var(--gw-secondary);
    }



.gwes-multiCheckbox {
    border: 1px solid #c0c5ca;
    border-radius: 6px;
    background-color: white;
    font-size: inherit;
    padding: 0.5rem 0.75rem;
    width: 100%;
}
