/* Greenshield design tokens and shared Bootstrap, DataTables and Select2 surfaces. */
:root {
    --gs-green: #08764f;
    --gs-green-dark: #06543e;
    --gs-green-light: #dff5ea;
    --gs-teal: #0f766e;
    --gs-page: #f5f8f7;
    --gs-panel: #fff;
    --gs-ink: #142c27;
    --gs-muted: #50685f;
    --gs-line: #dbe6e1;
    --gs-input-line: #a7bcb3;
    --gs-radius: .75rem;
    --gs-space: 1rem;
    --gs-shadow: 0 6px 20px rgba(15, 49, 39, .07);
    --gs-font: Inter, "Segoe UI", system-ui, sans-serif;
    --brand-primary: var(--gs-green);
    --brand-primary-hover: var(--gs-green-dark);
    --brand-primary-dark: var(--gs-green-dark);
    --brand-secondary: var(--gs-teal);
    --brand-secondary-hover: #115e59;
    --brand-tertiary: #8ed3b0;
    --brand-tertiary-hover: #72bb97;
    --brand-primary-rgb: 8, 118, 79;
    --brand-secondary-rgb: 15, 118, 110;
    --brand-tertiary-rgb: 142, 211, 176;
    --brand-background: var(--gs-page);
    --brand-surface: var(--gs-panel);
    --brand-text: var(--gs-ink);
    --brand-muted: var(--gs-muted);
    --brand-border: var(--gs-line);
    --primary: var(--gs-green);
    --primary-600: var(--gs-green-dark);
    --primary-700: #084131;
    --primary-light: var(--gs-green-light);
    --secondary: var(--gs-teal);
    --secondary-600: #115e59;
    --secondary-light: #e5f4f2;
    --tertiary: var(--brand-tertiary);
    --tertiary-600: var(--brand-tertiary-hover);
    --tertiary-light: #eff9f3;
    --accent: var(--brand-tertiary);
    --surface: var(--gs-panel);
    --surface-2: var(--gs-page);
    --surface-3: #ebf2ef;
    --border: var(--gs-line);
    --text: var(--gs-ink);
    --text-muted: var(--gs-muted);
}
.gs-portal {
    background: var(--gs-page);
    color: var(--gs-ink);
    font-family: var(--gs-font);
}
.gs-portal :focus-visible {
    outline: 2px solid var(--gs-green);
    outline-offset: 3px;
}
.gs-portal a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):not(.profile-menu-item) {
    text-underline-offset: .18em;
}
.gs-portal .text-primary, .gs-portal .btn-link { color: var(--gs-green) !important; }
.gs-portal .btn-primary, .gs-portal .badge-primary, .gs-portal .bg-primary,
.gs-portal .page-item.active .page-link, .gs-portal .nav-pills .nav-link.active,
.gs-portal .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--gs-green) !important;
    border-color: var(--gs-green) !important;
    color: #fff !important;
}
.gs-portal .btn-primary:hover, .gs-portal .btn-primary:focus,
.gs-portal .btn-primary:not(:disabled):active {
    background-color: var(--gs-green-dark) !important;
    border-color: var(--gs-green-dark) !important;
}
.gs-portal .btn-outline-primary, .gs-portal .page-link {
    color: var(--gs-green-dark);
    border-color: var(--gs-input-line);
}
.gs-portal .btn-outline-primary:hover {
    color: #fff;
    background: var(--gs-green-dark);
}
.gs-portal .btn { border-radius: .5rem; font-weight: 600; }
.gs-portal .btn-light, .gs-portal .btn-default {
    border-color: var(--gs-line);
    color: var(--gs-ink);
}
.gs-portal .card, .gs-portal .panel, .gs-portal .modal-content {
    border-color: var(--gs-line);
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow);
}
.gs-portal .card-header:not([class*="bg-"]), .gs-portal .panel-heading {
    background: #f4faf7;
    border-bottom: 1px solid var(--gs-line);
    color: var(--gs-green-dark);
}
.gs-portal .form-group { margin-bottom: var(--gs-space); }
.gs-portal .form-group label, .gs-portal .col-form-label {
    color: var(--gs-ink);
    font-weight: 600;
}
.gs-portal .form-control, .gs-portal .custom-select,
.gs-portal .select2-container--default .select2-selection,
.gs-portal .dataTables_filter input, .gs-portal .dataTables_length select {
    border-color: var(--gs-input-line);
    border-radius: .5rem;
    color: var(--gs-ink);
}
.gs-portal .form-control:focus, .gs-portal .custom-select:focus,
.gs-portal .select2-container--focus .select2-selection,
.gs-portal .dataTables_filter input:focus {
    border-color: var(--gs-green);
    box-shadow: 0 0 0 .2rem rgba(8, 118, 79, .15);
}
.gs-portal .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--gs-green);
    color: #fff;
}
.gs-portal .field-validation-error, .gs-portal .invalid-feedback { color: #a52429; }
.gs-portal .modal-header, .gs-portal .modal-footer { border-color: var(--gs-line); }
.gs-portal .modal-title { color: var(--gs-ink); font-weight: 700; }
.gs-portal .modal-dialog-scrollable .modal-body { overscroll-behavior: contain; }
.gs-portal .modal-footer { background: #f6faf8; border-radius: 0 0 var(--gs-radius) var(--gs-radius); }
.gs-portal .table-responsive, .gs-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
.gs-table-scroll > table { margin-bottom: 0; }
.gs-portal .table { color: var(--gs-ink); }
.gs-portal .table thead th, .gs-portal table.dataTable thead th {
    background-color: #edf6f1;
    color: var(--gs-green-dark);
    border-color: var(--gs-line);
    font-weight: 700;
    vertical-align: middle;
}
.gs-portal .table td, .gs-portal table.dataTable td {
    border-color: var(--gs-line);
    vertical-align: middle;
}
.gs-portal .table-hover tbody tr:hover, .gs-portal table.dataTable.display tbody tr:hover {
    background-color: #eff8f3;
}
.gs-portal .table .text-right { font-variant-numeric: tabular-nums; }
.gs-portal .dataTables_wrapper { min-width: 0; max-width: 100%; }
.gs-portal .dataTables_filter label, .gs-portal .dataTables_length label,
.gs-portal .dataTables_info { color: var(--gs-muted); font-size: .875rem; }
.gs-portal .dataTables_filter input { max-width: 100%; }
.gs-portal .dataTables_paginate .pagination { flex-wrap: wrap; }
.gs-portal .dataTables_empty, .gs-portal .dataTables_processing { color: var(--gs-muted); }
.gs-portal .badge { padding: .38em .65em; border-radius: 2rem; }
.gs-portal .badge-success { background: #d8f3e4; color: #155537; }
.gs-portal .badge-warning { background: #fff1c9; color: #75460a; }
.gs-portal .badge-danger { background: #fbe3e4; color: #8b1e23; }
.gs-portal .badge-info { background: #dceefa; color: #174e70; }
.gs-portal .badge-secondary { background: #e7eeeb; color: #3c5148; }
.gs-portal .alert, .gs-portal .toast, .gs-portal .swal2-popup { border-radius: var(--gs-radius); }
.gs-portal .progress-bar { background-color: var(--gs-green); }

.gs-admin .sidebar, .gs-admin .sidebar-header {
    background: #103f32;
    color: #fff;
}
.gs-admin .sidebar { box-shadow: 6px 0 24px rgba(16, 63, 50, .12); }
.gs-admin .sidebar-header { gap: .5rem; }
.gs-admin .sidebar-logo, .gs-brand-logo {
    display: block;
    flex: none;
    width: auto;
    height: 2.5rem;
    object-fit: contain;
    padding: .23rem;
    border-radius: .6rem;
    background: white;
}
.gs-admin .logo-text { font-size: 1rem; letter-spacing: -.02em; }
.gs-admin .logo-text small { display: block; font-size: .7rem; color: #c9e4d9; }
.gs-admin .sidebar .nav-link.active, .gs-admin .sidebar .dropdown-parent.active,
.gs-admin .sidebar .submenu a.active {
    background: #29624f;
    box-shadow: inset 3px 0 #a4e3be;
    color: white;
}
.gs-admin .sidebar :focus-visible { outline-color: #b7f3d3; outline-offset: -3px; }
.gs-admin .sidebar.collapsed .submenu { background: #123d32; }
.gs-admin .sidebar.collapsed .nav-item:focus-within > .submenu,
.gs-admin .sidebar.collapsed .nav-item.open > .submenu { display: block; opacity: 1; visibility: visible; }
.gs-admin .main-header { background: #fff; border-bottom: 1px solid var(--gs-line); }
.gs-admin .header-left { min-width: 0; gap: .75rem; }
.gs-admin .header-mark { height: 2.25rem; border: 1px solid var(--gs-line); }
.gs-breadcrumb { min-width: 0; font-size: .73rem; line-height: 1.3; color: var(--gs-muted); }
.gs-breadcrumb a { color: var(--gs-green-dark); }
.gs-current-page { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; color: var(--gs-ink); }
.gs-admin .profile-toggle { border: 0; background: transparent; color: inherit; }
.gs-admin .user-avatar { background: var(--gs-green-dark); }
.gs-admin .notification-badge { background: #a62832; color: #fff; }
.gs-admin .main-content { min-width: 0; }
.gs-admin .main-content > :is(.container, .container-fluid) { min-width: 0; }
.gs-menu-search { padding: .8rem 1.2rem .3rem; }
.gs-menu-search input {
    width: 100%;
    padding: .54rem .7rem;
    border: 1px solid #7ea89a;
    border-radius: .5rem;
    background: #205244;
    color: #fff;
}
.gs-menu-search input::placeholder { color: #d2e7de; }
.gs-admin .sidebar.collapsed .gs-menu-search { display: none; }
.gs-admin .sidebar-nav [hidden] { display: none !important; }
.gs-menu-search-status { margin: .35rem 1.2rem; color: #e0f2e9; font-size: .8rem; }
.gs-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gs-line);
    color: var(--gs-muted);
    font-size: .82rem;
    line-height: 1.5;
    text-align: center;
}
.gs-footer a { color: var(--gs-green-dark); font-weight: 600; }
.gs-footer span { display: inline-block; margin-inline: .25rem; }
.gs-skip {
    position: fixed;
    z-index: 1200;
    top: .5rem;
    left: .5rem;
    padding: .6rem 1rem;
    background: white;
    color: var(--gs-green-dark);
    transform: translateY(-150%);
}
.gs-skip:focus { transform: translateY(0); }
.gs-report-logo { width: auto; height: 3.25rem; object-fit: contain; }
.gs-report-brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 700; color: var(--gs-green-dark); }
.gs-legacy .navbar { background: var(--gs-panel); border-bottom: 1px solid var(--gs-line); }
.gs-legacy .navbar-brand.gs-brand-logo { max-width: 4rem; }
.gs-legacy .sidebar .sidebar-logo .logo img { width: auto; height: 2.5rem; object-fit: contain; }
.gs-legacy #main-container, .gs-legacy .page-container { min-width: 0; }
.gs-dashboard-intro { padding: clamp(1rem, 3vw, 2rem); margin: 0 0 1.15rem; border: 1px solid #cee6da; border-radius: var(--gs-radius); background: #e9f6ef; }
.gs-dashboard-intro p { color: var(--gs-muted); margin: .35rem 0 0; }
.gs-dashboard-intro h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.035em; }
.gs-dashboard-intro img { width: auto; height: 3rem; }
@media (max-width: 1023.98px) {
    .gs-admin .main-header, .gs-admin .main-content { transition: none; }
    .gs-admin .sidebar:not(.mobile-open) { visibility: hidden; }
    .gs-admin .sidebar.mobile-open { visibility: visible; }
}
@media (max-width: 575.98px) {
    .gs-admin .main-header { padding-inline: .75rem; gap: .4rem; }
    .gs-admin .header-mark { display: none; }
    .gs-admin .header-left, .gs-admin .topbar-actions { gap: .35rem; }
    .gs-admin .notification-panel { position: fixed; top: 4rem; right: .5rem; width: min(22rem, calc(100vw - 1rem)); }
    .gs-portal .dataTables_filter input { margin-left: .25rem; width: min(12rem, 60vw); }
    .gs-portal .modal-dialog { margin: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gs-admin :is(.sidebar, .sidebar-overlay, .main-content, .main-header, .nav-link) { transition: none !important; }
}
@media print {
    .gs-skip, .gs-admin .main-header, .gs-admin .sidebar, .gs-admin .sidebar-overlay { display: none !important; }
    .gs-admin .main-content { margin: 0 !important; padding: 0 !important; }
    .gs-footer { color: #111; border-color: #aaa; }
}

.gs-admin .dropdown-parent { border: 0; }
.gs-admin .sidebar.collapsed .dropdown-parent .fa-chevron-right { display: none; }
.gs-admin .sidebar.collapsed .nav-link, .gs-admin .sidebar.collapsed .dropdown-parent { width: calc(100% - 1rem); }
.gs-admin .nav-item:not(.open):not(.gs-search-match) > .submenu { visibility: hidden; }
.gs-admin .sidebar.collapsed .nav-item:hover > .submenu,
.gs-admin .sidebar.collapsed .nav-item:focus-within > .submenu { visibility: visible; pointer-events: auto; }
.gs-admin .sidebar-nav [data-gs-search-hidden] { display: none !important; }
.gs-admin .gs-search-match > .submenu { max-height: none; visibility: visible; }
.gs-admin .sidebar-nav .submenu a { white-space: normal; }
.gs-admin .gs-logout { border: 0; width: 100%; background: transparent; text-align: left; }
.gs-portal .dataTables_wrapper .row > :is(.col-sm-12, .col-12):has(> table.dataTable),
.gs-portal :is(.card-body, .modal-body, .table-wrap):has(> table):not(:has(> .dropdown-menu)) {
    max-width: 100%;
    overflow-x: auto;
}

.gs-portal #loader .gs-loading-logo {
    position: absolute;
    top: calc(50% - 4.4rem);
    left: 50%;
    width: auto;
    height: 3.25rem;
    transform: translateX(-50%);
}
.gs-portal #loader .spinner { background: var(--gs-green); }
.gs-dashboard .stat-card, .gs-dashboard .card { border: 1px solid var(--gs-line); box-shadow: var(--gs-shadow); }
.gs-dashboard .stat-value, .gs-dashboard .card-title { font-variant-numeric: tabular-nums; }
.gs-dashboard .stat-label { color: var(--gs-muted); font-weight: 600; }
.gs-dashboard .chart-container, .gs-dashboard .chart-wrapper { min-width: 0; }
.gs-dashboard .card-body.row { margin-inline: 0; }
.gs-print-footer { margin-top: .4rem; color: var(--gs-muted); font-size: .75rem; }
.gs-print-footer span { display: block; }
.gs-print-footer a { color: var(--gs-green-dark); }
.gs-admin .nav-item.open > .submenu { max-height: min(70vh, 800px); overflow-y: auto; }
.gs-admin .gs-search-match > .submenu { max-height: none; }
@media (max-width: 767.98px) {
    .gs-dashboard .row > [class*="col"] { min-width: 0; }
    .gs-dashboard .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .gs-dashboard .stats-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .gs-portal #loader .spinner { animation: none; }
}

.gs-page-heading { min-width: 0; padding-block: .25rem; }
.gs-page-heading h1 { margin: 0; color: var(--gs-ink); font-size: clamp(1.25rem, 2.8vw, 1.9rem); letter-spacing: -.035em; font-weight: 700; }
.gs-page-heading p { margin: .3rem 0 0; color: var(--gs-muted); font-size: .875rem; }
.gs-profile .profile-card, .gs-profile .stat-card { border: 1px solid var(--gs-line); border-radius: var(--gs-radius); box-shadow: var(--gs-shadow); }
.gs-portal .dataTables_filter input[type="search"] {
    padding-inline-start: 1.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350685f' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
    background-position: .52rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
}
.gs-portal .dataTables_scrollBody { overscroll-behavior-inline: contain; }
.gs-portal .dataTables_wrapper .dt-buttons { display: flex; flex-wrap: wrap; gap: .3rem; }
.gs-portal .filter-bar { gap: .85rem; }
@media (max-width: 575.98px) {
    .gs-portal .gs-page-heading p { font-size: .82rem; }
    .gs-portal .dataTables_wrapper .row { row-gap: .5rem; }
}

.gs-admin .connection-banner {
    inset: auto 1rem 1rem auto;
    width: auto;
    max-width: calc(100% - 2rem);
    gap: 1rem;
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow);
}
.gs-admin .connection-banner button {
    border: 0;
    padding: .15rem .4rem;
    border-radius: .3rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.gs-dashboard .stat-card { padding: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 1280px) {
    .gs-dashboard .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gsh-public .gsh-public-header { background: white; border-bottom: 1px solid var(--gs-line); }
.gsh-public-nav { max-width: 1360px; margin: auto; padding: 20px 30px; }
.gsh-public-brand { display: flex; align-items: center; gap: 10px; color: #275541 !important; text-decoration: none !important; font-size: 18px; }
.gsh-public-brand img { width: 32px; height: 35px; object-fit: contain; }
.gsh-public .nav-link { color: #83988c; font-size: 12px; padding-inline: 14px !important; }
.gsh-public-main { min-height: calc(100dvh - 150px); max-width: 1300px; padding: 32px 26px; margin: auto; }
.gsh-public-form { padding: 26px; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); background: white; }
.gsh-provider-stats .container { max-width: none; padding: 0; }
.gsh-provider-stats .stats-container { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 18px; margin-bottom: 23px; }
.gsh-provider-stats .stat-card { padding: 23px; border: 1px solid var(--gs-line); border-radius: 12px; background: white; }
.gsh-provider-stats .stat-number { font-size: 30px; font-weight: 700; color: #204c3b; }
.gsh-provider-stats .charts-container { display: grid; grid-template-columns: 1fr; gap: 20px; }
.gsh-provider-stats .chart-card { padding: 22px; border: 1px solid var(--gs-line); border-radius: 13px; background: white; }
.gsh-provider-stats .chart-container { position: relative; height: 360px; }
.gsh-help .container { max-width: none; padding: 0; }
.gsh-help .video-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; margin-top: 24px; }
.gsh-help :is(.video-card,.tutorial-card) { padding: 22px; border: 1px solid var(--gs-line); border-radius: 13px; background: white; }
.gsh-help iframe, .gsh-help video { width: 100%; max-width: 100%; border-radius: 9px; }
.gsh-help h1 { margin-bottom: 15px; }.gsh-help h2 { font-size: 18px; }.gsh-help p { color: #8295a3; font-size: 13px; }
.gsh-table-workspace .table .btn-sm { padding: 5px 7px !important; gap: 4px; }
.gsh-table-workspace .table .gsh-icon-host { margin-right: 0 !important; }
.gsh-content .gsh-filter-panel .gsh-filter-fields { box-shadow: none; border: 0; padding: 0; margin: 0; background: transparent; }
@media(max-width:767px) { .gsh-public-nav { padding: 16px; } .gsh-public-main { padding: 20px 15px; } .gsh-public-form { padding: 18px; } }


.gsh-insight-title { font-size: 14px; font-weight: 600; color: #2f4d61; margin: 0; }
.gsh-workspace .quick-actions { display: grid; gap: 10px; }
.gsh-workspace .quick-action-btn { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid #e8eeeb; border-radius: 10px; color: #718e7d; font-size: 12px; text-decoration: none; }
.gsh-workspace .quick-action-btn .icon { padding: 9px; border-radius: 9px; }
.gsh-workspace .activity-list { padding: 15px 22px; }
.gsh-workspace .gsh-insight-card .table-container { max-width: 100%; overflow-x: auto; }
.gsh-workspace .gsh-filter-body > .filter-bar { display: flex; flex-wrap: wrap; gap: 15px; }


.gsh-workspace .nav-group + .nav-group { margin-top: 22px; }
.gsh-workspace .nav-group.gsh-section-empty { display: none; }

/* Administration workspace */
.gsh-icon { display: inline-block; width: 1.125rem; height: 1.125rem; flex: none; vertical-align: middle; }
.gsh-icon-host::before { display: none; }
.gsh-workspace { --gsh-sidebar-width: 258px; --gsh-header-height: 66px; --gsh-rail-ink: #29413a; background: #f4f7f6; }
.gsh-workspace.gsh-sidebar-compact { --gsh-sidebar-width: 76px; }
.gsh-workspace [hidden] { display: none !important; }
.gsh-workspace .gsh-skip { position: fixed; top: 8px; left: 8px; z-index: 1300; padding: 10px 16px; border-radius: 8px; background: white; transform: translateY(-160%); }
.gsh-workspace .gsh-skip:focus { transform: none; }
.gsh-workspace #sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1031; display: flex; flex-direction: column;
    width: var(--gsh-sidebar-width); height: 100dvh; padding: 0 14px; overflow: visible;
    visibility: visible; background: white; color: var(--gsh-rail-ink); border-right: 1px solid #dfe9e3; box-shadow: none; transform: none; transition: none;
}
.gsh-workspace #sidebar :focus-visible { outline-color: var(--gs-green); outline-offset: -2px; }
.gsh-brand { display: flex; align-items: center; gap: 10px; min-height: 75px; padding: 10px 8px; color: #173e30; font-size: 19px; font-weight: 800; letter-spacing: -.055em; text-decoration: none !important; }
.gsh-brand img { width: 32px; height: 35px; object-fit: contain; }
.gsh-brand small { display: block; margin-top: -2px; color: #517567; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.gsh-collapse, .gsh-icon-button, .gsh-search-clear {
    display: inline-grid; place-items: center; flex: none; width: 37px; height: 37px; padding: 0;
    border: 1px solid #dbe7e0; border-radius: 9px; background: #fff; color: #30574a; cursor: pointer;
}
.gsh-collapse:hover, .gsh-icon-button:hover, .gsh-search-clear:hover { background: #eaf5ee; color: #07543a; }
.gsh-collapse { position: absolute; top: 23px; right: -13px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; }
.gsh-collapse .gsh-icon { width: 14px; height: 14px; transform: rotate(180deg); }
.gsh-workspace-label { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px; border: 1px solid #dce9e1; border-radius: 10px; background: #f8fbf9; font-size: 12px; font-weight: 700; }
.gsh-workspace-label small { display: block; color: #5c756a; font-size: 10px; font-weight: 500; }
.gsh-workspace-label > .gsh-icon { margin-left: auto; width: 13px; }
.gsh-workspace-symbol, .gsh-avatar { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 9px; background: #dff1e7; color: #096648; font-size: 13px; font-weight: 800; }
.gsh-nav-search, .gsh-command-trigger, .gsh-command-field { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border: 1px solid #dfe9e4; border-radius: 9px; background: #f5f9f7; color: #385d50; font-size: 12px; }
.gsh-nav-search { margin: 12px 0 8px; }
.gsh-nav-search input, .gsh-command-field input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: #193b30; }
.gsh-workspace kbd { flex: none; padding: 2px 4px; border: 1px solid #dbe7e0; border-radius: 4px; background: white; color: #4e6e62; font: inherit; font-size: 10px; }
.gsh-menu-status { margin: 4px 2px; color: var(--gs-muted); font-size: 12px; }
.gsh-workspace #sidebar .sidebar-nav { flex: 1; min-height: 0; padding: 10px 0; overflow: auto; scrollbar-width: thin; }
.gsh-workspace .nav-group-label { padding: 0 9px 6px; color: #536f63; font-size: 10px; font-weight: 750; letter-spacing: .085em; }
.gsh-workspace .sidebar-nav ul { padding: 0; margin: 0; list-style: none; }
.gsh-workspace .sidebar-nav .nav-item { position: relative; margin: 2px 0; }
.gsh-workspace #sidebar :is(.nav-link,.dropdown-parent) {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 37px; margin: 0; padding: 8px 9px;
    border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #314e43; font-size: 12px; font-weight: 600; text-align: left;
}
.gsh-workspace .dropdown-parent > svg:last-child { margin-left: auto; width: 13px; height: 13px; }
.gsh-workspace .nav-item.open > .dropdown-parent > svg:last-child, .gsh-workspace .nav-item.search-open > .dropdown-parent > svg:last-child { transform: rotate(90deg); }
.gsh-workspace #sidebar :is(.nav-link,.dropdown-parent):hover, .gsh-workspace #sidebar :is(.nav-link,.dropdown-parent).active, .gsh-workspace #sidebar .nav-item.open > .dropdown-parent { background: #e8f5ee; color: #096348; }
.gsh-workspace #sidebar .submenu { display: none; position: static; max-height: none; margin: 3px 0 5px 17px; padding: 2px 0 2px 11px; border-left: 1px solid #dce9e1; background: transparent; }
.gsh-workspace #sidebar .nav-item:is(.open,.search-open) > .submenu { display: block; visibility: visible; overflow: visible; }
.gsh-workspace #sidebar .submenu a { display: block; padding: 6px 8px; border-radius: 6px; color: #38594d; font-size: 12px; text-decoration: none; }
.gsh-workspace #sidebar .submenu a:is(:hover,.active) { background: #edf7f1; color: #08734d; box-shadow: none; }
.gsh-workspace .sidebar-nav [data-gsh-filtered] { display: none !important; }
.gsh-sidebar-end { padding: 12px 0; border-top: 1px solid #edf2ef; }
.gsh-sidebar-end a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; color: #38594d; font-size: 12px; font-weight: 650; text-decoration: none; }
.gsh-sidebar-end a:hover { background: #edf7f1; }
.gsh-sidebar-end a > svg:last-child { margin-left: auto; width: 12px; }
.gsh-brand-signature { padding: 5px 8px 0; color: #557468; font-size: 10px; }
.gsh-workspace #sidebar.collapsed { padding: 0 12px; }
.gsh-workspace #sidebar.collapsed :is(.gsh-brand > span,.gsh-workspace-label > span:nth-child(2),.gsh-workspace-label > svg,.gsh-nav-search,.nav-group-label,.nav-link > span,.dropdown-parent > span,.dropdown-parent > svg:last-child,.gsh-sidebar-end a > span,.gsh-sidebar-end a > svg:last-child,.gsh-brand-signature,.submenu) { display: none; }
.gsh-workspace #sidebar.collapsed :is(.nav-link,.dropdown-parent,.gsh-sidebar-end a,.gsh-brand,.gsh-workspace-label) { justify-content: center; }
.gsh-workspace #sidebar.collapsed .gsh-collapse .gsh-icon { transform: none; }
.gsh-workspace .gsh-app { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; margin-left: var(--gsh-sidebar-width); }
.gsh-workspace .main-header {
    position: sticky; inset: 0 0 auto; z-index: 1030; display: flex; justify-content: space-between; align-items: center;
    gap: 12px; width: auto; min-width: 0; min-height: var(--gsh-header-height); height: auto;
    margin: 0; padding: 10px clamp(14px, 2.4vw, 34px); border-bottom: 1px solid #e2ebe6; background: white; box-shadow: none;
}
.gsh-header-context, .gsh-header-actions, .gsh-header-context nav { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gsh-header-context nav { color: #577367; font-size: 12px; }
.gsh-header-context nav strong { overflow: hidden; color: #213f34; text-overflow: ellipsis; white-space: nowrap; }
.gsh-header-context nav a { color: #426b5b; }
.gsh-header-actions { flex: none; }
.gsh-command-trigger { min-height: 37px; min-width: 154px; text-align: left; }
.gsh-command-trigger kbd { margin-left: auto; }
.gsh-mobile-toggle { display: none; }
.gsh-popover-owner, .gsh-workspace .profile-dropdown { position: relative; }
.gsh-notification-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #bd3e44; }
.gsh-profile-trigger { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: #274739; text-align: left; }
.gsh-avatar { width: 35px; height: 35px; border-radius: 50%; }
.gsh-user-info { display: grid; max-width: 140px; font-size: 12px; line-height: 1.3; }
.gsh-user-info > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsh-user-info small { color: #536f62; font-size: 10px; }
.gsh-workspace :is(.profile-menu,.notification-panel) { position: absolute; top: calc(100% + 9px); right: 0; display: block; width: max-content; max-width: calc(100vw - 24px); padding: 6px; border: 1px solid #dce9e1; border-radius: 12px; background: white; box-shadow: 0 14px 36px #173b2728; }
.gsh-workspace .profile-menu :is(a,button) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 7px; background: none; color: #2d4f42; font-size: 13px; text-decoration: none; }
.gsh-workspace .profile-menu :is(a,button):hover { background: #edf7f1; }
.gsh-workspace .notification-panel { width: min(330px, calc(100vw - 24px)); }
.gsh-popover-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px; border-bottom: 1px solid #edf2ef; }
.gsh-popover-heading h2 { margin: 0; font-size: 15px; font-weight: 700; }
.gsh-popover-heading button, .gsh-filter-reset, .gsh-report-error button { padding: 4px 6px; border: 0; background: transparent; color: #096348; font-size: 12px; font-weight: 650; }
.gsh-workspace #notificationList { max-height: 60vh; margin: 0; padding: 8px; overflow: auto; list-style: none; font-size: 13px; }
.gsh-workspace .main-content { display: flex; flex: 1; flex-direction: column; min-width: 0; width: auto; min-height: 0; margin: 0; padding: 0; }
.gsh-content { flex: 1; width: 100%; min-width: 0; max-width: 1660px; margin: 0 auto; padding: clamp(14px, 2.4vw, 34px); }
.gsh-content .gsh-module { padding-inline: 0; }
.gsh-content .gsh-module :is(.card,.panel,.table-container) { min-width: 0; }
.gsh-command { width: min(520px, calc(100vw - 26px)); max-height: min(610px, 84vh); padding: 18px; border: 1px solid #d9e6df; border-radius: 15px; color: var(--gs-ink); box-shadow: 0 22px 72px #153b3440; }
.gsh-command::backdrop { background: #173c345f; }
.gsh-command-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gsh-command-header h2 { margin: 0; font-size: 18px; font-weight: 750; }
.gsh-command-field { padding: 10px; margin-bottom: 10px; }
.gsh-command ul { max-height: 48vh; margin: 0; padding: 0; overflow: auto; list-style: none; }
.gsh-command ul a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px; border-radius: 7px; color: #294e40; font-size: 13px; text-decoration: none; }
.gsh-command ul a:is(:hover,:focus-visible) { background: #e9f5ee; }
.gsh-command-hint, .gsh-empty { padding: 9px; margin: 0; color: #537166; font-size: 12px; }
.gsh-connection { position: fixed; right: 12px; bottom: 12px; z-index: 1090; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #dce9e1; border-radius: 10px; background: white; color: #294e40; font-size: 13px; }

/* Analytics, forms and records */
.gsh-dashboard-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: clamp(17px, 3vw, 34px); border: 1px solid #d3e8dc; border-radius: 17px; background: linear-gradient(110deg,#f9fcfa,#e4f3eb); }
.gsh-eyebrow { color: #126f52; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.gsh-dashboard-header h1 { margin: 5px 0 4px; color: #17392e; font-size: clamp(23px, 3vw, 36px); font-weight: 800; letter-spacing: -.045em; }
.gsh-dashboard-header p { margin: 0; color: #45695b; font-size: 13px; }
.gsh-date-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #355d4d; font-size: 12px; }
.gsh-date-controls :is(input,select) { min-width: 0; min-height: 37px; padding: 6px 8px; border: 1px solid #cadfd3; border-radius: 8px; background: white; color: #284c3d; }
.gsh-date-controls label { margin: 0; }
.gsh-dashboard-tabs { display: flex; align-items: center; gap: 14px; margin: 14px 0; border-bottom: 1px solid #dde9e3; }
.gsh-dashboard-tabs > span { padding: 8px 0; border-bottom: 2px solid #0c8b63; color: #09684a; font-size: 13px; font-weight: 750; }
.gsh-period-note { color: #506f61; font-size: 12px; }
.gsh-kpi-grid, .gsh-dashboard-grid { display: grid; gap: 14px; margin-bottom: 16px; }
.gsh-kpi-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.gsh-dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.gsh-kpi, .gsh-insight-card { min-width: 0; border: 1px solid #dfe9e3; border-radius: 13px; background: white; box-shadow: 0 3px 10px #1d543008; }
.gsh-kpi { display: grid; gap: 8px; padding: 15px; }
.gsh-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gsh-kpi-label { color: #345c4b; font-size: 12px; font-weight: 650; }
.gsh-kpi-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #e3f4eb; color: #087551; }
.gsh-kpi:nth-child(4n + 2) .gsh-kpi-icon { background: #e5f1f8; color: #236681; }
.gsh-kpi:nth-child(4n + 3) .gsh-kpi-icon { background: #f3ecfc; color: #6c4aa2; }
.gsh-kpi:nth-child(4n) .gsh-kpi-icon { background: #fbf1df; color: #8b631e; }
.gsh-kpi-value { overflow-wrap: anywhere; color: #183a2e; font-size: clamp(18px, 2vw, 29px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.15; }
.gsh-kpi-foot { color: #526f62; font-size: 11px; }
.gsh-insight-card { padding: 16px; }
.gsh-insight-heading h2 { margin: 0 0 3px; color: #254739; font-size: 15px; font-weight: 750; }
.gsh-insight-heading p { margin: 0 0 12px; color: #547366; font-size: 12px; }
.gsh-chart-box { position: relative; width: 100%; min-width: 0; height: 252px; }
.gsh-chart-box .gsh-empty { display: grid; place-items: center; height: 100%; }
.gsh-skeleton { display: block; min-height: 15px; border-radius: 7px; background: #eaf1ed; }
.gsh-kpi .gsh-skeleton:nth-child(2) { width: 65%; }
.gsh-report-error { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 8px 12px; border: 1px solid #efd7d8; border-radius: 8px; background: #fff2f2; color: #873438; font-size: 13px; }
.gsh-filter-panel { margin: 0 0 15px; padding: 12px 15px; border: 1px solid #dfe9e3; border-radius: 12px; background: white; }
.gsh-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gsh-filter-toggle { display: flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; color: #294e40; font-size: 13px; font-weight: 750; }
.gsh-filter-body { min-width: 0; padding-top: 10px; }
.gsh-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.gsh-filter-chips:empty { margin: 0; }
.gsh-filter-chip, .gsh-record-count { padding: 3px 7px; border-radius: 999px; background: #e8f4ed; color: #255c47; font-size: 11px; font-weight: 650; }
.gsh-filter-feedback { margin: 6px 0 0; color: #962b34; font-size: 12px; }
.gsh-table-workspace { border: 1px solid #dfe9e3; border-radius: 12px; background: white; }
.gsh-table-toolbar, .gsh-table-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; padding: 12px 15px; }
.gsh-table-toolbar { border-bottom: 1px solid #e4eee8; }
.gsh-table-footer { border-top: 1px solid #e4eee8; }
.gsh-table-title, .gsh-table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.gsh-table-title h2 { margin: 0; color: #294f40; font-size: 15px; font-weight: 750; }
.gsh-table-workspace .gsh-table-search { position: relative; float: none; }
.gsh-table-workspace .gsh-table-search label, .gsh-table-footer label, .gsh-table-footer .pagination { margin: 0; }
.gsh-table-workspace .gsh-table-search input { padding-right: 29px; margin: 0; }
.gsh-search-clear { position: absolute; inset: 4px 3px auto auto; width: 25px; height: 25px; border: 0; }
.gsh-export-options { position: relative; }
.gsh-export-options summary { display: flex; align-items: center; gap: 5px; min-height: 37px; padding: 6px 8px; border: 1px solid #dbe7e0; border-radius: 9px; color: #315747; font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.gsh-export-options .dt-buttons { position: absolute; z-index: 5; inset: calc(100% + 5px) 0 auto auto; width: max-content; max-width: 65vw; padding: 6px; border: 1px solid #dbe7e0; border-radius: 8px; background: white; box-shadow: 0 10px 24px #183b2c24; }
.gsh-workspace .dataTables_scroll, .gsh-workspace .gsh-table-workspace .table-responsive { min-width: 0; max-width: 100%; }
.gsh-workspace .modal-content { border-radius: 15px; }
.gsh-workspace .modal-header { align-items: center; background: #f3f9f5; border-radius: 15px 15px 0 0; }
.gsh-workspace .modal-body { padding: clamp(15px, 2.5vw, 24px); }

@media (max-width: 1199px) { .gsh-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 767px) {
    .gsh-workspace { --gsh-sidebar-width: 0px; }
    .gsh-workspace #sidebar { width: min(280px, calc(100vw - 32px)); visibility: hidden; transform: translateX(-100%); }
    .gsh-workspace #sidebar.mobile-open { z-index: 1041; visibility: visible; transform: none; }
    .gsh-workspace #sidebarOverlay { position: fixed; inset: 0; z-index: 1040; display: block; visibility: visible; opacity: 1; background: #15392f66; }
    .gsh-workspace.gsh-drawer-open { overflow: hidden; }
    .gsh-collapse { right: 12px; }
    .gsh-mobile-toggle { display: inline-grid; }
    .gsh-header-actions { gap: 6px; }
    .gsh-header-context nav :is(a,span) { display: none; }
    .gsh-command-trigger { display: grid; place-items: center; width: 37px; min-width: 0; padding: 0; }
    .gsh-command-trigger :is(span,kbd), .gsh-profile-trigger .gsh-icon, .gsh-user-info { display: none; }
    .gsh-workspace .notification-panel { position: fixed; top: var(--gsh-header-height); right: 12px; }
    .gsh-content { padding-inline: 16px; }
    .gsh-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .gsh-dashboard-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .gsh-kpi { padding: 10px; }
    .gsh-table-toolbar, .gsh-table-footer { padding-inline: 9px; }
    .gsh-workspace .gsh-table-workspace { overflow-x: clip; }
}
@media print { .gsh-workspace .gsh-app { margin: 0; } .gsh-content { padding: 0; } }

.gsh-role-shell .sidebar { background: white; border-right: 1px solid var(--gs-line); box-shadow: none; }
.gsh-role-shell .gsh-role-sidebar-inner { height: 100dvh; display: flex; flex-direction: column; }
.gsh-role-shell .sidebar-logo { padding: 22px; border-bottom: 1px solid var(--gs-line); }
.gsh-role-shell .sidebar-logo img { width: 36px; height: 40px; object-fit: contain; }
.gsh-role-navigation { overflow-y: auto; padding: 20px 12px; }
.gsh-role-shell .sidebar-menu { list-style: none; margin: 0; padding: 0; }
.gsh-role-shell .sidebar-menu a { display: flex; gap: 12px; padding: 12px; border-radius: 9px; font-size: 13px; color: #718a9a; text-decoration: none; }
.gsh-role-shell .sidebar-menu a:hover { background: #edf9f2; color: #087f5b; }
.gsh-role-header { background: white; border-bottom: 1px solid var(--gs-line); box-shadow: none; }
.gsh-role-content { background: var(--gs-page); padding: 30px; }

