/* Font face declarations */
@font-face {
    font-family: 'UKNumberPlate';
    src: url('../fonts/UKNumberPlate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Note: Perfect DOS VGA 437 and W95FA fonts would need to be added to the fonts directory
   For now, using similar fallback fonts that are commonly available */

/* Core Palette inspired by Solaris late 90s */
:root {
    --corvaxa-blue: #0a3d82;
    --corvaxa-blue-light: #1a5fab;
    --solaris-grey: #c0c0c0;
    --solaris-grey-dark: #8f8f8f;
    --solaris-grey-light: #e0e0e0;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --accent-yellow: #ffd24d;
    --menu-height: 30px;
    --header-height: 30px;
    --status-height: 20px;
    --base-font-size: 16px;
    --font-size-multiplier: 1;
    font-size: var(--base-font-size);
}

/* Dark mode color scheme */
html.color-scheme-dark,
html.color-scheme-dark :root {
    --corvaxa-blue: #0d1f3d;
    --corvaxa-blue-light: #1a3d6b;
    --solaris-grey: #4a4a4a;
    --solaris-grey-dark: #2d2d2d;
    --solaris-grey-light: #1a1a1a;
    --text-light: #e0e0e0;
    --text-dark: #e0e0e0;
    --accent-yellow: #ffd24d;
    --panel-bg: #2d2d2d;
    --panel-titlebar-bg: linear-gradient(to bottom, #2a4a6b, #1a3a5b);
    --input-bg: #3a3a3a;
    --input-border: #4a4a4a;
    --border-color: #4a4a4a;
}

/* Green Screen color scheme - late 80s terminal look */
html.color-scheme-greenscreen,
html.color-scheme-greenscreen :root {
    --corvaxa-blue: #0d3d0d;
    --corvaxa-blue-light: #1a5a1a;
    --solaris-grey: #2d4d2d;
    --solaris-grey-dark: #1a3d1a;
    --solaris-grey-light: #0d2d0d;
    --text-light: #00ff00;
    --text-dark: #00ff00;
    --accent-yellow: #00ff00;
}

/* Font size preference classes - update CSS variable and html/body font-size */
html.font-size-small {
    --base-font-size: 14px;
    --font-size-multiplier: 0.875; /* 14/16 = 0.875 */
    font-size: 14px !important;
}

html.font-size-medium {
    --base-font-size: 16px;
    --font-size-multiplier: 1; /* 16/16 = 1 */
    font-size: 16px !important;
}

html.font-size-large {
    --base-font-size: 18px;
    --font-size-multiplier: 1.125; /* 18/16 = 1.125 */
    font-size: 18px !important;
}

/* Apply font size to body as well */
body.font-size-small {
    font-size: 14px !important;
}

body.font-size-medium {
    font-size: 16px !important;
}

body.font-size-large {
    font-size: 18px !important;
}

/* Global font-size scaling - rem units automatically scale with html font-size */
/* No overrides needed for rem-based sizes - they scale automatically */

*,
*::before,
*::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    font-size: 16px; /* Default base size for rem calculations */
}

/* Apply font size to html element for rem-based sizing */
html.font-size-small {
    font-size: 14px !important;
}

html.font-size-medium {
    font-size: 16px !important;
}

html.font-size-large {
    font-size: 18px !important;
}

/* Era 2000-2010: rounded corners and drop shadows on boxes */
html.era-2000-2010 .panel,
html.era-2000-2010 .subpanel,
html.era-2000-2010 .panel-titlebar,
html.era-2000-2010 .subpanel-titlebar,
html.era-2000-2010 .home-flow-box,
html.era-2000-2010 .home-widget,
html.era-2000-2010 .panel-card,
html.era-2000-2010 .list-column,
html.era-2000-2010 .record-list,
html.era-2000-2010 .table-wrap,
html.era-2000-2010 .function-dropdown,
html.era-2000-2010 .modal,
html.era-2000-2010 .modal .modal-content,
html.era-2000-2010 .subpanel-add-link,
html.era-2000-2010 input[type="text"],
html.era-2000-2010 input[type="email"],
html.era-2000-2010 input[type="password"],
html.era-2000-2010 input[type="number"],
html.era-2000-2010 textarea,
html.era-2000-2010 select,
html.era-2000-2010 button:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn) {
    border-radius: 2px !important;
}

/* Era 2000-2010: glossy Web 2.0-style buttons */
html.era-2000-2010 .task-save-button,
html.era-2000-2010 .note-submit-button,
html.era-2000-2010 button[type="submit"],
html.era-2000-2010 button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn) {
    border: 1px solid #a0b0c0 !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 25%, transparent 40%), linear-gradient(to bottom, #e0e8f0 0%, #c8d8e8 100%) !important;
    color: #304060 !important;
    font-weight: bold !important;
    box-shadow: none !important;
}
html.era-2000-2010 .task-save-button:hover,
html.era-2000-2010 .note-submit-button:hover,
html.era-2000-2010 button[type="submit"]:hover,
html.era-2000-2010 button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn):hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 25%, transparent 40%), linear-gradient(to bottom, #e8f0f8 0%, #d0e0f0 100%) !important;
    border-color: #90a8c0 !important;
}
html.era-2000-2010 .task-save-button:active,
html.era-2000-2010 .note-submit-button:active,
html.era-2000-2010 button[type="submit"]:active,
html.era-2000-2010 button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn):active {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, transparent 30%), linear-gradient(to bottom, #c0d0e0 0%, #b0c4d8 100%) !important;
    border-color: #8098b0 !important;
}
html.era-2000-2010 .subpanel-add-link {
    border-radius: 2px !important;
    border: 1px solid #a0b0c0 !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 25%, transparent 40%), linear-gradient(to bottom, #e0e8f0 0%, #c8d8e8 100%) !important;
    color: #304060 !important;
    font-weight: bold !important;
    box-shadow: none !important;
}
html.era-2000-2010 .subpanel-add-link:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 25%, transparent 40%), linear-gradient(to bottom, #e8f0f8 0%, #d0e0f0 100%) !important;
    border-color: #90a8c0 !important;
}
html.era-2000-2010 .subpanel-add-link:active {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, transparent 30%), linear-gradient(to bottom, #c0d0e0 0%, #b0c4d8 100%) !important;
    border-color: #8098b0 !important;
}
html.era-2000-2010 .function-bar .function-icon {
    border-radius: 2px !important;
    border: 1px solid #a0b0c0 !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 25%, transparent 40%), linear-gradient(to bottom, #e0e8f0 0%, #c8d8e8 100%) !important;
    color: #304060 !important;
    box-shadow: none !important;
}
html.era-2000-2010 .function-bar .function-icon:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 25%, transparent 40%), linear-gradient(to bottom, #e8f0f8 0%, #d0e0f0 100%) !important;
    border-color: #90a8c0 !important;
}
html.era-2000-2010 .function-bar .function-icon:active,
html.era-2000-2010 .function-bar .function-icon.list-toggle-pressed,
html.era-2000-2010 .function-bar .function-icon.active,
html.era-2000-2010 .asset-function-bar-search-wrap #asset-search-btn:active {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, transparent 30%), linear-gradient(to bottom, #c0d0e0 0%, #b0c4d8 100%) !important;
    border-color: #8098b0 !important;
}

/* Era 2000-2010 + dark mode: glossy buttons with dark gradient */
html.era-2000-2010.color-scheme-dark .task-save-button,
html.era-2000-2010.color-scheme-dark .note-submit-button,
html.era-2000-2010.color-scheme-dark button[type="submit"],
html.era-2000-2010.color-scheme-dark button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn),
html.era-2000-2010.color-scheme-dark .subpanel-add-link,
html.era-2000-2010.color-scheme-dark .function-bar .function-icon,
html.era-2000-2010.color-scheme-dark .asset-function-bar-search-wrap #asset-search-btn {
    border: 1px solid #4a5a6a !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 30%), linear-gradient(to bottom, #3a4a5a 0%, #2d3d4d 100%) !important;
    color: #e0e8f0 !important;
}
html.era-2000-2010.color-scheme-dark .task-save-button:hover,
html.era-2000-2010.color-scheme-dark .note-submit-button:hover,
html.era-2000-2010.color-scheme-dark button[type="submit"]:hover,
html.era-2000-2010.color-scheme-dark button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn):hover,
html.era-2000-2010.color-scheme-dark .subpanel-add-link:hover,
html.era-2000-2010.color-scheme-dark .function-bar .function-icon:hover,
html.era-2000-2010.color-scheme-dark .asset-function-bar-search-wrap #asset-search-btn:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 0%, transparent 30%), linear-gradient(to bottom, #4a5a6a 0%, #3a4a5a 100%) !important;
    border-color: #5a6a7a !important;
}
html.era-2000-2010.color-scheme-dark .subpanel-add-link .subpanel-add-label {
    color: #e0e8f0 !important;
}

/* Era 2000-2010 + greenscreen: glossy buttons with green tint */
html.era-2000-2010.color-scheme-greenscreen .task-save-button,
html.era-2000-2010.color-scheme-greenscreen .note-submit-button,
html.era-2000-2010.color-scheme-greenscreen button[type="submit"],
html.era-2000-2010.color-scheme-greenscreen button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn),
html.era-2000-2010.color-scheme-greenscreen .subpanel-add-link,
html.era-2000-2010.color-scheme-greenscreen .function-bar .function-icon,
html.era-2000-2010.color-scheme-greenscreen .asset-function-bar-search-wrap #asset-search-btn {
    border: 1px solid #1a5a1a !important;
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.15) 0%, transparent 30%), linear-gradient(to bottom, #0d4d0d 0%, #0a3d0a 100%) !important;
    color: #00ff00 !important;
}
html.era-2000-2010.color-scheme-greenscreen .task-save-button:hover,
html.era-2000-2010.color-scheme-greenscreen .note-submit-button:hover,
html.era-2000-2010.color-scheme-greenscreen button[type="submit"]:hover,
html.era-2000-2010.color-scheme-greenscreen button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn):hover,
html.era-2000-2010.color-scheme-greenscreen .subpanel-add-link:hover,
html.era-2000-2010.color-scheme-greenscreen .function-bar .function-icon:hover,
html.era-2000-2010.color-scheme-greenscreen .asset-function-bar-search-wrap #asset-search-btn:hover {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.2) 0%, transparent 30%), linear-gradient(to bottom, #0d5a0d 0%, #0d4d0d 100%) !important;
    border-color: #2d7a2d !important;
}
html.era-2000-2010.color-scheme-greenscreen .subpanel-add-link .subpanel-add-label {
    color: #00ff00 !important;
}

html.era-2000-2010 .panel,
html.era-2000-2010 .subpanel,
html.era-2000-2010 .home-flow-box,
html.era-2000-2010 .panel-card,
html.era-2000-2010 .record-list,
html.era-2000-2010 .home-widget,
html.era-2000-2010 .modal .modal-content {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
/* Era 2000-2010: list column – no background, no border, no shadow; record-list floats with its shadow */
html.era-2000-2010 .list-column {
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    box-shadow: none !important;
}
html.era-2000-2010.color-scheme-dark .list-column {
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    box-shadow: none !important;
}
html.era-2000-2010.color-scheme-greenscreen .list-column {
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Era 2000-2010: home screen widgets – subsection heading style, clean box */
html.era-2000-2010 .home-widget {
    border: 1px solid #a0b0c0 !important;
    background: #e8ecf0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
html.era-2000-2010 .home-widget-titlebar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 18%), linear-gradient(to bottom, #1a3a5b 0%, #2a4a6b 50%, #31608a 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #e8ecf0 !important;
}
html.era-2000-2010 .home-widget-titlebar h4,
html.era-2000-2010 .home-widget-titlebar h5,
html.era-2000-2010 .home-widget-titlebar h6 {
    color: #e8ecf0 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6) !important;
}
html.era-2000-2010 .home-widget-body {
    background: #e0e4e8 !important;
}
html.era-2000-2010 .home-widget-link:hover {
    background-color: #d0d8e0 !important;
}
html.era-2000-2010.color-scheme-dark .home-widget {
    border-color: #4a5a6a !important;
    background: #2d2d2d !important;
}
html.era-2000-2010.color-scheme-dark .home-widget-titlebar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, transparent 18%), linear-gradient(to bottom, #1a2a3a 0%, #253545 50%, #2d4055 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.3);
    color: #e0e8f0 !important;
}
html.era-2000-2010.color-scheme-dark .home-widget-titlebar h4,
html.era-2000-2010.color-scheme-dark .home-widget-titlebar h5,
html.era-2000-2010.color-scheme-dark .home-widget-titlebar h6 {
    color: #e0e8f0 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7) !important;
}
html.era-2000-2010.color-scheme-dark .home-widget-body {
    background: #2d2d2d !important;
}
html.era-2000-2010.color-scheme-dark .home-widget-link:hover {
    background-color: #3a3a3a !important;
}
html.era-2000-2010.color-scheme-greenscreen .home-widget {
    border-color: #1a5a1a !important;
    background: #0d2d0d !important;
}
html.era-2000-2010.color-scheme-greenscreen .home-widget-titlebar {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.1) 0%, transparent 18%), linear-gradient(to bottom, #0a2d0a 0%, #0d3d0d 50%, #0f4d0f 100%) !important;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    color: #00ff00 !important;
}
html.era-2000-2010.color-scheme-greenscreen .home-widget-titlebar h4,
html.era-2000-2010.color-scheme-greenscreen .home-widget-titlebar h5,
html.era-2000-2010.color-scheme-greenscreen .home-widget-titlebar h6 {
    color: #00ff00 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.8) !important;
}
html.era-2000-2010.color-scheme-greenscreen .home-widget-body {
    background: #0d2d0d !important;
}
html.era-2000-2010.color-scheme-greenscreen .home-widget-link:hover {
    background-color: #1a5a1a !important;
}

/* Era 2000-2010: subpanel toggle – chevron only, no button */
html.era-2000-2010 .subpanel-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 6px !important;
    min-width: 18px !important;
}
html.era-2000-2010 .subpanel-toggle:hover,
html.era-2000-2010 .subpanel-toggle:focus,
html.era-2000-2010 .subpanel-toggle:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
html.era-2000-2010 .subpanel-toggle .subpanel-toggle-icon {
    color: #ffffff !important;
}
html.era-2000-2010.color-scheme-greenscreen .subpanel-toggle .subpanel-toggle-icon {
    color: #00ff00 !important;
}

/* Era 2000-2010: function bar – wider buttons, left-aligned icons, text labels */
html.era-2000-2010 .function-bar .function-icon {
    width: 200px !important;
    min-width: 200px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 4px 8px !important;
    gap: 8px !important;
}
/* Add buttons use inline style="display: inline-block" which overrides flex - fix so they match others */
html.era-2000-2010 .function-bar .function-icon[style*="inline-block"] {
    display: flex !important;
}
html.era-2000-2010 .function-bar .function-icon .function-icon-label {
    display: inline !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
}
/* Override base display:block on icon-new/save/print so icon + label stay on same line */
html.era-2000-2010 .function-bar .function-icon .icon-new,
html.era-2000-2010 .function-bar .function-icon .icon-save,
html.era-2000-2010 .function-bar .function-icon .icon-add,
html.era-2000-2010 .function-bar .function-icon .icon-edit,
html.era-2000-2010 .function-bar .function-icon .icon-cancel,
html.era-2000-2010 .function-bar .function-icon .icon-funnel,
html.era-2000-2010 .function-bar .function-icon .icon-list-toggle,
html.era-2000-2010 .function-bar .function-icon .icon-print,
html.era-2000-2010 .function-bar .function-icon .icon-history,
html.era-2000-2010 .function-bar .function-icon > span:first-child {
    flex-shrink: 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Era 2000-2010: asset search – button matches function-icon (size, style, icon), input twice width + same height */
html.era-2000-2010 .asset-function-bar-search-wrap #asset-search-btn {
    width: 200px !important;
    min-width: 200px !important;
    height: 36px !important;
    padding: 4px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    border-radius: 2px !important;
    border: 1px solid #a0b0c0 !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 25%, transparent 40%), linear-gradient(to bottom, #e0e8f0 0%, #c8d8e8 100%) !important;
    color: #304060 !important;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}
html.era-2000-2010 .asset-function-bar-search-wrap #asset-search-btn:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 25%, transparent 40%), linear-gradient(to bottom, #e8f0f8 0%, #d0e0f0 100%) !important;
    border-color: #90a8c0 !important;
}
html.era-2000-2010 .asset-function-bar-search-wrap #asset-search-btn:active {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, transparent 30%), linear-gradient(to bottom, #c0d0e0 0%, #b0c4d8 100%) !important;
    border-color: #8098b0 !important;
}
html.era-2000-2010 .asset-function-bar-search-wrap #asset-search-btn::before {
    content: '🔍';
    flex-shrink: 0;
    display: inline-block;
    line-height: 1;
    font-size: 1.3125rem;
}
html.era-2000-2010 .asset-function-bar-search-wrap .asset-function-bar-search-input {
    width: 320px !important;
    height: 36px !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
    background-image: none !important;
}

/* Era 2000-2010: top menu bar – button-like menu items */
html.era-2000-2010 .menu-bar {
    background: linear-gradient(to bottom, #5a9ae8, #3a7ac8) !important;
    border-bottom: 1px solid #2a6ab8 !important;
}
html.era-2000-2010 .menu-item .menu-label {
    background: transparent;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    font-weight: bold !important;
    font-style: normal !important;
}
html.era-2000-2010 .menu-item:first-child .menu-label {
    border-left: none;
}
html.era-2000-2010 .menu-item:not(.disabled):hover .menu-label,
html.era-2000-2010 .menu-item:not(.disabled):focus-within .menu-label {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1)) !important;
}
html.era-2000-2010 .menu-item.open .menu-label {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15)) !important;
}
html.era-2000-2010 .menu-item .menu-underline {
    text-decoration: underline;
}
html.era-2000-2010 .menu-item-right .menu-label {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
}
html.era-2000-2010.color-scheme-greenscreen .menu-bar {
    background: linear-gradient(to bottom, #0d5a0d, #0a4a0a) !important;
}
html.era-2000-2010.color-scheme-greenscreen .menu-item .menu-label {
    color: #00ff00 !important;
}

/* Era 2000-2010: power icon (logoff button) – Unicode ⏻ (U+23FB) */
html.era-2000-2010 .power-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
}
/* Override base 1990-2000 horizontal bar; use Unicode ⏻, centered and bold */
html.era-2000-2010 .power-icon::before {
    content: '\23FB';
    width: auto;
    height: auto;
    background: none;
    font-size: 1em;
    font-weight: bold;
    line-height: 1;
}

/* Era 2000-2010 + dark: menu bar – dark grey to match dark mode */
html.era-2000-2010.color-scheme-dark .menu-bar {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    border-bottom: 1px solid #4a4a4a !important;
}
html.era-2000-2010.color-scheme-dark .menu-item .menu-label {
    color: #e0e0e0 !important;
}
html.era-2000-2010.color-scheme-dark .menu-item:not(.disabled):hover .menu-label,
html.era-2000-2010.color-scheme-dark .menu-item:not(.disabled):focus-within .menu-label {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) !important;
}
html.era-2000-2010.color-scheme-dark .menu-item.open .menu-label {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)) !important;
}

/* Era 2000-2010 + dark: section headings */
html.era-2000-2010.color-scheme-dark .panel-titlebar,
html.era-2000-2010.color-scheme-dark .subpanel-titlebar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, transparent 18%), linear-gradient(to bottom, #1a2a3a 0%, #253545 50%, #2d4055 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.3);
    color: #e0e8f0 !important;
}
html.era-2000-2010.color-scheme-dark .panel-title,
html.era-2000-2010.color-scheme-dark .subpanel-titlebar h4,
html.era-2000-2010.color-scheme-dark .subpanel-titlebar h5,
html.era-2000-2010.color-scheme-dark .subpanel-titlebar h6 {
    color: #e0e8f0 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7) !important;
}

/* Era 2000-2010 + greenscreen: section headings */
html.era-2000-2010.color-scheme-greenscreen .panel-titlebar,
html.era-2000-2010.color-scheme-greenscreen .subpanel-titlebar {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.1) 0%, transparent 18%), linear-gradient(to bottom, #0a2d0a 0%, #0d3d0d 50%, #0f4d0f 100%) !important;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    color: #00ff00 !important;
}
html.era-2000-2010.color-scheme-greenscreen .panel-title,
html.era-2000-2010.color-scheme-greenscreen .subpanel-titlebar h4,
html.era-2000-2010.color-scheme-greenscreen .subpanel-titlebar h5,
html.era-2000-2010.color-scheme-greenscreen .subpanel-titlebar h6 {
    color: #00ff00 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Era 2000-2010: subpanel titlebar – whole bar clickable to collapse/expand */
html.era-2000-2010 .subpanel-titlebar {
    cursor: pointer;
}

/* ========== Era 2010-2020: flat design, word + chevron menu, no top bar ========== */

/* Hide top bar (Corvaxa, user name, logoff) */
html.era-2010-2020 .app-header {
    display: none !important;
}

/* Menu bar – light grey, flat, twice the height */
html.era-2010-2020 .menu-bar {
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8) !important;
    border-bottom: 1px solid #d0d0d0 !important;
    font-style: normal !important;
    height: 60px !important;
    min-height: 60px !important;
}

/* App title link on left – dashboard-style blue, links to home */
html.era-2010-2020 .menu-bar-app-title {
    display: flex !important;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    background: linear-gradient(to bottom, #4a7bc8, #3a6ab8) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    flex-shrink: 0;
}
html.era-2010-2020 .menu-bar-app-title:hover {
    background: linear-gradient(to bottom, #5a8bd8, #4a7bc8) !important;
    color: #ffffff !important;
}
html.era-2010-2020 .menu-bar .menu {
    flex: 1;
    min-width: 0;
}

/* Menu items – flat text + chevron, no borders/buttons */
html.era-2010-2020 .menu-item .menu-label {
    background: transparent !important;
    color: #333333 !important;
    border: none !important;
    padding: 8px 12px !important;
    font-weight: normal !important;
}

/* Remove underline from shortcut letter in 2010-2020 */
html.era-2010-2020 .menu-item .menu-underline {
    text-decoration: none !important;
}

/* Add chevron after each menu label */
html.era-2010-2020 .menu-item .menu-label::after {
    content: '\25BC';
    font-size: 0.6em;
    margin-left: 4px;
    opacity: 0.7;
}

/* Hover – subtle background */
html.era-2010-2020 .menu-item:not(.disabled):hover .menu-label,
html.era-2010-2020 .menu-item:not(.disabled):focus-within .menu-label {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Open state */
html.era-2010-2020 .menu-item.open .menu-label {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Right-aligned user name (Settings) */
html.era-2010-2020 .menu-item-right .menu-label {
    border-left: 1px solid #d0d0d0 !important;
}

/* Dropdown submenu – 2000-2010 aesthetic (larger, shadow, blue hover) */
html.era-2010-2020 .submenu {
    min-width: 280px !important;
    padding: 8px 0 !important;
    font-size: 0.95rem !important;
    font-style: normal !important;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25) !important;
}
html.era-2010-2020 .submenu *,
html.era-2010-2020 .submenu *::before,
html.era-2010-2020 .submenu *::after {
    font-style: normal !important;
}
html.era-2010-2020 .submenu.submenu-main {
    min-width: 280px !important;
}
html.era-2010-2020 .submenu.submenu-wide {
    min-width: 360px !important;
}
html.era-2010-2020 .submenu a,
html.era-2010-2020 .submenu-label,
html.era-2010-2020 .submenu .submenu-button {
    padding: 8px 14px !important;
}
html.era-2010-2020 .submenu a:hover,
html.era-2010-2020 .submenu a:focus,
html.era-2010-2020 .submenu button:hover,
html.era-2010-2020 .submenu button:focus,
html.era-2010-2020 .submenu .active a {
    background: #3a7ac8 !important;
    color: #ffffff !important;
}
html.era-2010-2020 .submenu a:hover .submenu-underline,
html.era-2010-2020 .submenu a:focus .submenu-underline,
html.era-2010-2020 .submenu .active a .submenu-underline,
html.era-2010-2020 .submenu-button:hover .submenu-underline,
html.era-2010-2020 .submenu-button:focus .submenu-underline {
    color: #ffffff !important;
}

/* Log off at bottom of Settings submenu – add separator above */
html.era-2010-2020 .submenu li:has(.submenu-form) {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

/* Era 2010-2020 + dark */
html.era-2010-2020.color-scheme-dark .menu-bar {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    border-bottom-color: #4a4a4a !important;
}
html.era-2010-2020.color-scheme-dark .menu-bar-app-title {
    background: linear-gradient(to bottom, #2a4a6b, #1a3a5b) !important;
}
html.era-2010-2020.color-scheme-dark .menu-bar-app-title:hover {
    background: linear-gradient(to bottom, #3a5a7b, #2a4a6b) !important;
}
html.era-2010-2020.color-scheme-dark .menu-item .menu-label {
    color: #e0e0e0 !important;
}
html.era-2010-2020.color-scheme-dark .menu-item:not(.disabled):hover .menu-label,
html.era-2010-2020.color-scheme-dark .menu-item:not(.disabled):focus-within .menu-label {
    background: rgba(255, 255, 255, 0.08) !important;
}
html.era-2010-2020.color-scheme-dark .menu-item.open .menu-label {
    background: rgba(255, 255, 255, 0.12) !important;
}
html.era-2010-2020.color-scheme-dark .menu-item-right .menu-label {
    border-left-color: #4a4a4a !important;
}
html.era-2010-2020.color-scheme-dark .submenu li:has(.submenu-form) {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #4a4a4a;
}
html.era-2010-2020.color-scheme-dark .submenu a:hover,
html.era-2010-2020.color-scheme-dark .submenu a:focus,
html.era-2010-2020.color-scheme-dark .submenu button:hover,
html.era-2010-2020.color-scheme-dark .submenu button:focus,
html.era-2010-2020.color-scheme-dark .submenu .active a {
    background: #2a5a98 !important;
    color: #ffffff !important;
}
html.era-2010-2020.color-scheme-dark .submenu a:hover .submenu-underline,
html.era-2010-2020.color-scheme-dark .submenu a:focus .submenu-underline,
html.era-2010-2020.color-scheme-dark .submenu .active a .submenu-underline,
html.era-2010-2020.color-scheme-dark .submenu-button:hover .submenu-underline,
html.era-2010-2020.color-scheme-dark .submenu-button:focus .submenu-underline {
    color: #ffffff !important;
}

/* Era 2010-2020 + greenscreen */
html.era-2010-2020.color-scheme-greenscreen .menu-bar {
    background: linear-gradient(to bottom, #0d3d0d, #0a2d0a) !important;
    border-bottom-color: #1a5a1a !important;
}
html.era-2010-2020.color-scheme-greenscreen .menu-bar-app-title {
    background: linear-gradient(to bottom, #0d5a0d, #0a4a0a) !important;
}
html.era-2010-2020.color-scheme-greenscreen .menu-bar-app-title:hover {
    background: linear-gradient(to bottom, #0d6a0d, #0d5a0d) !important;
}
html.era-2010-2020.color-scheme-greenscreen .menu-item .menu-label {
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .menu-item:not(.disabled):hover .menu-label,
html.era-2010-2020.color-scheme-greenscreen .menu-item:not(.disabled):focus-within .menu-label {
    background: rgba(0, 255, 0, 0.08) !important;
}
html.era-2010-2020.color-scheme-greenscreen .menu-item.open .menu-label {
    background: rgba(0, 255, 0, 0.12) !important;
}
html.era-2010-2020.color-scheme-greenscreen .menu-item-right .menu-label {
    border-left-color: #1a5a1a !important;
}
html.era-2010-2020.color-scheme-greenscreen .submenu li:has(.submenu-form) {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #1a5a1a;
}
html.era-2010-2020.color-scheme-greenscreen .submenu a:hover,
html.era-2010-2020.color-scheme-greenscreen .submenu a:focus,
html.era-2010-2020.color-scheme-greenscreen .submenu button:hover,
html.era-2010-2020.color-scheme-greenscreen .submenu button:focus,
html.era-2010-2020.color-scheme-greenscreen .submenu .active a {
    background: #0d5a0d !important;
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .submenu a:hover .submenu-underline,
html.era-2010-2020.color-scheme-greenscreen .submenu a:focus .submenu-underline,
html.era-2010-2020.color-scheme-greenscreen .submenu .active a .submenu-underline,
html.era-2010-2020.color-scheme-greenscreen .submenu-button:hover .submenu-underline,
html.era-2010-2020.color-scheme-greenscreen .submenu-button:focus .submenu-underline {
    color: #00ff00 !important;
}

/* Era 2010-2020: left-hand item list – 2000-2010 design */
html.era-2010-2020 .list-column {
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    box-shadow: none !important;
}
html.era-2010-2020 .record-list {
    border: 1px solid #d0d0d0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
html.era-2010-2020 .split-layout.no-selection .record-list-header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 18%), linear-gradient(to bottom, #1a3a5b 0%, #2a4a6b 50%, #31608a 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #e8ecf0 !important;
    box-shadow: none !important;
}
html.era-2010-2020 .split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 25%), linear-gradient(to bottom, #2a5a8a 0%, #3a6a9a 100%) !important;
}
html.era-2010-2020 .split-layout.no-selection .list-header-id,
html.era-2010-2020 .split-layout.no-selection .list-header-asset-id,
html.era-2010-2020 .split-layout.no-selection .list-header-tag-type,
html.era-2010-2020 .split-layout.no-selection .list-header-company,
html.era-2010-2020 .split-layout.no-selection .list-header-site,
html.era-2010-2020 .split-layout.no-selection .list-header-room,
html.era-2010-2020 .split-layout.no-selection .list-header-type,
html.era-2010-2020 .split-layout.no-selection .list-header-subtype,
html.era-2010-2020 .split-layout.no-selection .list-header-item,
html.era-2010-2020 .split-layout.no-selection .list-header-name,
html.era-2010-2020 .split-layout.no-selection .list-header-status,
html.era-2010-2020 .split-layout.no-selection .list-header-assigned-to,
html.era-2010-2020 .split-layout.no-selection .list-header-due-date,
html.era-2010-2020 .split-layout.no-selection .list-header-title,
html.era-2010-2020 .split-layout.no-selection .list-header-modified {
    border-left-color: rgba(255, 255, 255, 0.2) !important;
}

/* Era 2010-2020: subsections – rounded aesthetic, concept art color scheme (#426189 header) */
html.era-2010-2020 .panel,
html.era-2010-2020 .subpanel {
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
html.era-2010-2020 .panel-titlebar,
html.era-2010-2020 .subpanel-titlebar {
    background: #426189 !important;
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}
html.era-2010-2020 .panel-titlebar .panel-title,
html.era-2010-2020 .panel-titlebar h4,
html.era-2010-2020 .panel-titlebar h5,
html.era-2010-2020 .panel-titlebar h6,
html.era-2010-2020 .subpanel-titlebar h4,
html.era-2010-2020 .subpanel-titlebar h5,
html.era-2010-2020 .subpanel-titlebar h6 {
    color: #ffffff !important;
    text-shadow: none !important;
}
html.era-2010-2020 .panel-titlebar .panel-title-link {
    color: inherit !important;
}
html.era-2010-2020 .panel-body,
html.era-2010-2020 .subpanel-body {
    background: #ffffff !important;
    border-top: 1px solid #e0e0e0 !important;
}
/* Collapsed subpanel – full rounded corners on titlebar */
html.era-2010-2020 .subpanel.collapsed .subpanel-titlebar {
    border-radius: 6px !important;
}
/* Expand/collapse – 2000-2010 methodology: whole titlebar clickable, chevron only */
html.era-2010-2020 .subpanel-titlebar {
    cursor: pointer;
}
html.era-2010-2020 .subpanel-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 6px !important;
}
html.era-2010-2020 .subpanel-toggle:hover,
html.era-2010-2020 .subpanel-toggle:focus,
html.era-2010-2020 .subpanel-toggle:active {
    background: transparent !important;
    border: none !important;
}
html.era-2010-2020 .subpanel-toggle .subpanel-toggle-icon {
    color: #ffffff !important;
}
/* Add new → + icon on right of subsection title */
html.era-2010-2020 .subpanel-add-link {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 28px;
    height: 28px;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
}
html.era-2010-2020 .subpanel-add-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
}
html.era-2010-2020 .subpanel-add-link .subpanel-add-label {
    display: none !important;
}
html.era-2010-2020 .subpanel-add-link::before {
    content: '+';
    font-weight: bold;
}

/* Era 2010-2020: function bar – light gray background, concept-art style */
html.era-2010-2020 .panel .function-bar {
    background: #f5f5f5 !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    padding: 8px 12px !important;
    min-height: 40px !important;
}
html.era-2010-2020 .function-bar .function-icon {
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #4a4a4a !important;
}
html.era-2010-2020 .function-bar .function-icon:hover {
    background: #f0f0f0 !important;
    border-color: #b0b0b0 !important;
}
html.era-2010-2020 .function-bar .function-icon:active,
html.era-2010-2020 .function-bar .function-icon.list-toggle-pressed,
html.era-2010-2020 .function-bar .function-icon.active {
    background: #e8e8e8 !important;
    border-color: #a0a0a0 !important;
}
/* Era 2010-2020: function bar – all buttons: left-aligned content, vertically centered icon & text */
html.era-2010-2020 .function-bar button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}
/* Reinforce display:none for buttons that are meant to be hidden (Save, Cancel when not in edit mode) */
html.era-2010-2020 .function-bar button[style*="display: none"],
html.era-2010-2020 .function-bar button[style*="display:none"] {
    display: none !important;
}
/* Era 2010-2020: function bar – wider buttons, icon left + text label */
html.era-2010-2020 .function-bar .function-icon {
    width: 200px !important;
    min-width: 200px !important;
    height: 36px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 8px 12px !important;
    gap: 8px !important;
}
html.era-2010-2020 .function-bar .function-icon[style*="inline-block"] {
    display: flex !important;
}
html.era-2010-2020 .function-bar .function-icon .function-icon-label {
    display: inline !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-add,
html.era-2010-2020 .function-bar .function-icon .icon-new,
html.era-2010-2020 .function-bar .function-icon .icon-edit,
html.era-2010-2020 .function-bar .function-icon .icon-save,
html.era-2010-2020 .function-bar .function-icon .icon-cancel,
html.era-2010-2020 .function-bar .function-icon .icon-funnel,
html.era-2010-2020 .function-bar .function-icon .icon-list-toggle,
html.era-2010-2020 .function-bar .function-icon .icon-print,
html.era-2010-2020 .function-bar .function-icon .icon-history,
html.era-2010-2020 .function-bar .function-icon .icon-delete,
html.era-2010-2020 .function-bar .function-icon > span:first-child {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}
/* Era 2010-2020: function bar – minimalist line-art icons (hide emoji, show clean symbols) */
html.era-2010-2020 .function-bar .function-icon .icon-add,
html.era-2010-2020 .function-bar .function-icon .icon-new {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-add::before,
html.era-2010-2020 .function-bar .function-icon .icon-new::before {
    content: '+' !important;
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: block !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-edit {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-edit::before {
    content: '\270E' !important; /* ✎ pencil */
    font-size: 1.1rem !important;
    line-height: 1 !important;
    display: block !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-save {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-save::before {
    content: '' !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='12' height='12' fill='none' stroke='%234a4a4a' stroke-width='1.5' rx='1'/%3E%3Cline x1='2' y1='5' x2='14' y2='5' stroke='%234a4a4a' stroke-width='1'/%3E%3Cline x1='2' y1='8' x2='10' y2='8' stroke='%234a4a4a' stroke-width='1'/%3E%3Cline x1='2' y1='11' x2='12' y2='11' stroke='%234a4a4a' stroke-width='1'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-cancel {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-cancel::before {
    content: '\2715' !important; /* ✕ */
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: block !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-funnel {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-funnel::before {
    content: '\25BE' !important; /* ▾ */
    font-size: 0.9rem !important;
    line-height: 1 !important;
    display: block !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-list-toggle,
html.era-2010-2020 .function-bar .function-icon .icon-history {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-list-toggle::before,
html.era-2010-2020 .function-bar .function-icon .icon-history::before {
    content: '' !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='12' height='12' fill='none' stroke='%234a4a4a' stroke-width='1.5' rx='1'/%3E%3Cline x1='4' y1='5' x2='12' y2='5' stroke='%234a4a4a' stroke-width='1'/%3E%3Cline x1='4' y1='8' x2='12' y2='8' stroke='%234a4a4a' stroke-width='1'/%3E%3Cline x1='4' y1='11' x2='10' y2='11' stroke='%234a4a4a' stroke-width='1'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-delete {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-delete::before {
    content: '' !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='2' width='10' height='2' fill='none' stroke='%234a4a4a' stroke-width='1.5'/%3E%3Cpath d='M4 4v9h8V4' fill='none' stroke='%234a4a4a' stroke-width='1.5'/%3E%3Cline x1='2' y1='4' x2='14' y2='4' stroke='%234a4a4a' stroke-width='1'/%3E%3Cline x1='6' y1='7' x2='6' y2='11' stroke='%234a4a4a' stroke-width='1'/%3E%3Cline x1='10' y1='7' x2='10' y2='11' stroke='%234a4a4a' stroke-width='1'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-print {
    font-size: 0 !important;
    line-height: 0 !important;
}
html.era-2010-2020 .function-bar .function-icon .icon-print::before {
    content: '' !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='4' width='10' height='6' fill='none' stroke='%234a4a4a' stroke-width='1.5'/%3E%3Crect x='2' y='10' width='12' height='4' fill='none' stroke='%234a4a4a' stroke-width='1.5'/%3E%3Cline x1='5' y1='7' x2='11' y2='7' stroke='%234a4a4a' stroke-width='1'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
}
/* Era 2010-2020: function dropdowns and text inputs – same height as buttons */
html.era-2010-2020 .function-bar .function-dropdown,
html.era-2010-2020 .function-bar input[type="text"],
html.era-2010-2020 .function-bar input[type="search"] {
    height: 36px !important;
    min-height: 36px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}
html.era-2010-2020 .function-bar select.function-dropdown {
    padding-right: 28px !important;
}
html.era-2010-2020 .function-bar input.function-dropdown {
    background-image: none !important;
}
html.era-2010-2020 .asset-function-bar-search-wrap .asset-function-bar-search-input {
    width: 320px !important;
}
html.era-2010-2020 .asset-function-bar-search-wrap #asset-search-btn {
    height: 36px !important;
    min-height: 36px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px !important;
}
html.era-2010-2020 .asset-function-bar-search-wrap #asset-search-btn::before {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 4px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%234a4a4a' stroke-width='1.5'/%3E%3Cline x1='11' y1='11' x2='14' y2='14' stroke='%234a4a4a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
    vertical-align: middle !important;
}

/* Era 2010-2020 + dark: function bar */
html.era-2010-2020.color-scheme-dark .panel .function-bar {
    background: #3a3a3a !important;
    border-bottom-color: #4a4a4a !important;
}
html.era-2010-2020.color-scheme-dark .function-bar .function-icon {
    background: #4a4a4a !important;
    border-color: #5a5a5a !important;
    color: #e0e0e0 !important;
}
html.era-2010-2020.color-scheme-dark .function-bar .function-icon:hover {
    background: #5a5a5a !important;
}
html.era-2010-2020.color-scheme-dark .function-bar .function-icon:active,
html.era-2010-2020.color-scheme-dark .function-bar .function-icon.list-toggle-pressed,
html.era-2010-2020.color-scheme-dark .function-bar .function-icon.active {
    background: #505050 !important;
}
html.era-2010-2020.color-scheme-dark .function-bar .function-icon .icon-save::before,
html.era-2010-2020.color-scheme-dark .function-bar .function-icon .icon-list-toggle::before,
html.era-2010-2020.color-scheme-dark .function-bar .function-icon .icon-history::before,
html.era-2010-2020.color-scheme-dark .function-bar .function-icon .icon-print::before,
html.era-2010-2020.color-scheme-dark .function-bar .function-icon .icon-delete::before {
    filter: invert(1) brightness(0.9) !important;
}
html.era-2010-2020.color-scheme-dark .asset-function-bar-search-wrap #asset-search-btn::before {
    filter: invert(1) brightness(0.9) !important;
}

/* Era 2010-2020 + greenscreen: function bar */
html.era-2010-2020.color-scheme-greenscreen .panel .function-bar {
    background: #0d2d0d !important;
    border-bottom-color: #1a5a1a !important;
}
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon {
    background: #0a3d0a !important;
    border-color: #1a5a1a !important;
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon:hover {
    background: #0d4d0d !important;
}
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon:active,
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon.list-toggle-pressed,
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon.active {
    background: #0f5d0f !important;
}
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon .icon-save::before,
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon .icon-list-toggle::before,
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon .icon-history::before,
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon .icon-print::before,
html.era-2010-2020.color-scheme-greenscreen .function-bar .function-icon .icon-delete::before {
    filter: invert(1) sepia(1) saturate(100) hue-rotate(90deg) !important;
}
html.era-2010-2020.color-scheme-greenscreen .asset-function-bar-search-wrap #asset-search-btn::before {
    filter: invert(1) sepia(1) saturate(100) hue-rotate(90deg) !important;
}

/* Era 2010-2020: subtle gradient background (except greenscreen) */
html.era-2010-2020 .work-area {
    background: linear-gradient(to bottom, #e5eaf0, #f2f5f8) !important;
}
html.era-2010-2020 .work-area .panel.home-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
html.era-2010-2020.color-scheme-dark .work-area {
    background: linear-gradient(to bottom, #1e2530, #252d3a) !important;
}
html.era-2010-2020.color-scheme-dark .work-area .panel.home-panel {
    background: transparent !important;
}
/* Greenscreen: no gradient, keep solid background */
html.era-2010-2020.color-scheme-greenscreen .work-area {
    background: #0d2d0d !important;
}
html.era-2010-2020.color-scheme-greenscreen .work-area .panel.home-panel {
    background: transparent !important;
}

/* Era 2010-2020: status bar – light grey, concept art style */
html.era-2010-2020 .status-bar {
    background: #e8e8e8 !important;
    border-top: 1px solid #d8d8d8 !important;
    color: #5a5a5a !important;
}
html.era-2010-2020.color-scheme-dark .status-bar {
    background: #3a3a3a !important;
    border-top-color: #4a4a4a !important;
    color: #b0b0b0 !important;
}

/* Era 2010-2020: home page panels – no titlebar, rounded boxes, subtle shadow */
html.era-2010-2020 .home-widget {
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}
html.era-2010-2020 .home-widget-titlebar {
    display: none !important;
}
html.era-2010-2020 .home-widget-body {
    background: #ffffff !important;
    padding: 12px !important;
}
html.era-2010-2020 .home-widget-link {
    color: #333333 !important;
}
html.era-2010-2020 .home-widget-link:hover {
    background-color: #f5f5f5 !important;
}
html.era-2010-2020 .home-widget-icon {
    color: #4a4a4a !important;
}
html.era-2010-2020 .home-widget-gauge-number {
    color: #333333 !important;
}
html.era-1990-2000 .home-widget-gauge-label,
html.era-2000-2010 .home-widget-gauge-label {
    display: none !important;
}
html.era-2010-2020 .home-widget-gauge {
    text-align: center !important;
}
html.era-2010-2020 .home-widget-gauge-list-wrap {
    text-align: left !important;
}
html.era-2010-2020 .home-widget-gauge-label {
    display: block !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    color: #666666 !important;
    margin-top: 4px !important;
    text-align: center !important;
}
html.era-2010-2020 .home-widget-gauge-label-above {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}
html.era-2010-2020 .home-widget-gauge-list th {
    background: #426189 !important;
    color: #ffffff !important;
    border-color: #3a5580 !important;
}
html.era-2010-2020 .home-widget-gauge-list tbody tr:nth-child(even) {
    background: #f8f8f8 !important;
}

/* Era 2010-2020 + dark: home page panels */
html.era-2010-2020.color-scheme-dark .home-widget {
    border-color: #4a4a4a !important;
    background: #2d2d2d !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-body {
    background: #2d2d2d !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-link {
    color: #e0e0e0 !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-link:hover {
    background-color: #3a3a3a !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-icon {
    color: #e0e0e0 !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-gauge-number {
    color: #e0e0e0 !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-gauge-label {
    color: #a0a0a0 !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-gauge-list th {
    background: #2a3d5a !important;
    color: #e0e0e0 !important;
}
html.era-2010-2020.color-scheme-dark .home-widget-gauge-list tbody tr:nth-child(even) {
    background: #353535 !important;
}

/* Era 2010-2020 + greenscreen: home page panels */
html.era-2010-2020.color-scheme-greenscreen .home-widget {
    border-color: #1a5a1a !important;
    background: #0d2d0d !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-body {
    background: #0d2d0d !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-link {
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-link:hover {
    background-color: #1a5a1a !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-icon {
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-gauge-number {
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-gauge-label {
    color: #00cc00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-gauge-list th {
    background: #0a3d0a !important;
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .home-widget-gauge-list tbody tr:nth-child(even) {
    background: #0a3d0a !important;
}

/* Era 2010-2020 + dark: list and subsections */
html.era-2010-2020.color-scheme-dark .list-column {
    background: transparent !important;
}
html.era-2010-2020.color-scheme-dark .split-layout.no-selection .record-list-header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, transparent 18%), linear-gradient(to bottom, #1a2a3a 0%, #253545 50%, #2d4055 100%) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #e0e8f0 !important;
}
html.era-2010-2020.color-scheme-dark .split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 25%), linear-gradient(to bottom, #2d4055 0%, #354555 100%) !important;
}
html.era-2010-2020.color-scheme-dark .panel-titlebar,
html.era-2010-2020.color-scheme-dark .subpanel-titlebar {
    background: #2a3d5a !important;
}
html.era-2010-2020.color-scheme-dark .panel-body,
html.era-2010-2020.color-scheme-dark .subpanel-body {
    background: #2d2d2d !important;
    border-top-color: #4a4a4a !important;
}
html.era-2010-2020.color-scheme-dark .subpanel-add-link {
    color: #e0e0e0 !important;
}

/* Era 2010-2020 + greenscreen: list and subsections */
html.era-2010-2020.color-scheme-greenscreen .list-column {
    background: transparent !important;
}
html.era-2010-2020.color-scheme-greenscreen .split-layout.no-selection .record-list-header {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.1) 0%, transparent 18%), linear-gradient(to bottom, #0a2d0a 0%, #0d3d0d 50%, #0f4d0f 100%) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.15) 0%, transparent 25%), linear-gradient(to bottom, #0d4d0d 0%, #0f5d0f 100%) !important;
}
html.era-2010-2020.color-scheme-greenscreen .panel-titlebar,
html.era-2010-2020.color-scheme-greenscreen .subpanel-titlebar {
    background: #0a3d0a !important;
}
html.era-2010-2020.color-scheme-greenscreen .panel-body,
html.era-2010-2020.color-scheme-greenscreen .subpanel-body {
    background: #0d2d0d !important;
    border-top-color: #1a5a1a !important;
}
html.era-2010-2020.color-scheme-greenscreen .subpanel-add-link {
    color: #00ff00 !important;
}
html.era-2010-2020.color-scheme-greenscreen .subpanel-toggle .subpanel-toggle-icon {
    color: #00ff00 !important;
}

/* Record title heading (company name, contact name, site name, etc.) – base styles */
.company-name-heading,
.record-title-heading {
    background: linear-gradient(to bottom, #4A7BC8, #316AC5);
    color: #ffffff;
    font-weight: bold;
    padding: 6px 12px;
    margin: 0 0 12px 0;
    border: 1px outset #316AC5;
    box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.record-title-heading a {
    color: inherit;
    text-decoration: none;
}

/* Era 2000-2010: company name heading – match subsection headings, keep font size */
html.era-2000-2010 .company-name-heading,
html.era-2000-2010 .record-title-heading {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 18%), linear-gradient(to bottom, #1a3a5b 0%, #2a4a6b 50%, #31608a 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #e8ecf0 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6) !important;
    font-weight: bold !important;
    box-shadow: none !important;
}
html.era-2000-2010.color-scheme-dark .company-name-heading,
html.era-2000-2010.color-scheme-dark .record-title-heading {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, transparent 18%), linear-gradient(to bottom, #1a2a3a 0%, #253545 50%, #2d4055 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    color: #e0e8f0 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7) !important;
}
html.era-2000-2010.color-scheme-greenscreen .company-name-heading,
html.era-2000-2010.color-scheme-greenscreen .record-title-heading {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.1) 0%, transparent 18%), linear-gradient(to bottom, #0a2d0a 0%, #0d3d0d 50%, #0f4d0f 100%) !important;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    color: #00ff00 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Era 2010-2020: record title heading – flat rounded style, matches subsection aesthetic */
html.era-2010-2020 .company-name-heading,
html.era-2010-2020 .record-title-heading {
    background: #426189 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    text-shadow: none !important;
    padding: 14px 18px !important;
    font-size: 1.25em !important;
}
html.era-2010-2020.color-scheme-dark .company-name-heading,
html.era-2010-2020.color-scheme-dark .record-title-heading {
    background: #2a3d5a !important;
}
html.era-2010-2020.color-scheme-greenscreen .company-name-heading,
html.era-2010-2020.color-scheme-greenscreen .record-title-heading {
    background: #0a3d0a !important;
}

/* Era 2000-2010: section headings – dark blue gradient, glossy top, embossed text */
html.era-2000-2010 .panel-titlebar,
html.era-2000-2010 .subpanel-titlebar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 18%), linear-gradient(to bottom, #1a3a5b 0%, #2a4a6b 50%, #31608a 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #e8ecf0 !important;
}
html.era-2000-2010 .panel-title,
html.era-2000-2010 .subpanel-titlebar h4,
html.era-2000-2010 .subpanel-titlebar h5,
html.era-2000-2010 .subpanel-titlebar h6 {
    color: #e8ecf0 !important;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6) !important;
    font-weight: bold !important;
}

/* Era 2000-2010: dropdown menu – larger, no italics, shadow */
html.era-2000-2010 .submenu {
    min-width: 280px !important;
    padding: 8px 0 !important;
    font-size: 0.95rem !important;
    font-style: normal !important;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25) !important;
}
html.era-2000-2010 .submenu *,
html.era-2000-2010 .submenu *::before,
html.era-2000-2010 .submenu *::after {
    font-style: normal !important;
}
html.era-2000-2010 .submenu.submenu-main {
    min-width: 280px !important;
}
html.era-2000-2010 .submenu.submenu-wide {
    min-width: 360px !important;
}
html.era-2000-2010 .submenu a,
html.era-2000-2010 .submenu-label,
html.era-2000-2010 .submenu-button {
    padding: 8px 14px !important;
}
/* Era 2000-2010: dropdown menu – blue highlight instead of yellow */
html.era-2000-2010 .submenu a:hover,
html.era-2000-2010 .submenu a:focus,
html.era-2000-2010 .submenu button:hover,
html.era-2000-2010 .submenu button:focus,
html.era-2000-2010 .submenu .active a {
    background: #3a7ac8 !important;
    color: #ffffff !important;
}
html.era-2000-2010 .submenu a:hover .submenu-underline,
html.era-2000-2010 .submenu a:focus .submenu-underline,
html.era-2000-2010 .submenu .active a .submenu-underline,
html.era-2000-2010 .submenu-button:hover .submenu-underline,
html.era-2000-2010 .submenu-button:focus .submenu-underline {
    color: #ffffff !important;
}
html.era-2000-2010.color-scheme-dark .submenu a:hover,
html.era-2000-2010.color-scheme-dark .submenu a:focus,
html.era-2000-2010.color-scheme-dark .submenu button:hover,
html.era-2000-2010.color-scheme-dark .submenu button:focus,
html.era-2000-2010.color-scheme-dark .submenu .active a {
    background: #2a5a98 !important;
    color: #ffffff !important;
}
html.era-2000-2010.color-scheme-dark .submenu a:hover .submenu-underline,
html.era-2000-2010.color-scheme-dark .submenu a:focus .submenu-underline,
html.era-2000-2010.color-scheme-dark .submenu .active a .submenu-underline,
html.era-2000-2010.color-scheme-dark .submenu-button:hover .submenu-underline,
html.era-2000-2010.color-scheme-dark .submenu-button:focus .submenu-underline {
    color: #ffffff !important;
}
html.era-2000-2010.color-scheme-greenscreen .submenu a:hover,
html.era-2000-2010.color-scheme-greenscreen .submenu a:focus,
html.era-2000-2010.color-scheme-greenscreen .submenu button:hover,
html.era-2000-2010.color-scheme-greenscreen .submenu button:focus,
html.era-2000-2010.color-scheme-greenscreen .submenu .active a {
    background: #0d5a0d !important;
    color: #00ff00 !important;
}
html.era-2000-2010.color-scheme-greenscreen .submenu a:hover .submenu-underline,
html.era-2000-2010.color-scheme-greenscreen .submenu a:focus .submenu-underline,
html.era-2000-2010.color-scheme-greenscreen .submenu .active a .submenu-underline,
html.era-2000-2010.color-scheme-greenscreen .submenu-button:hover .submenu-underline,
html.era-2000-2010.color-scheme-greenscreen .submenu-button:focus .submenu-underline {
    color: #00ff00 !important;
}

/* Era 2000-2010: table headers – blue gradient to match section headings */
html.era-2000-2010 .subpanel-body table thead,
html.era-2000-2010 .panel-body table thead,
html.era-2000-2010 .subpanel-body table th,
html.era-2000-2010 .panel-body table th {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 18%), linear-gradient(to bottom, #1a3a5b 0%, #2a4a6b 50%, #31608a 100%) !important;
    color: #e8ecf0 !important;
    border-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.2) rgba(255, 255, 255, 0.15) !important;
}
html.era-2000-2010 .home-widget-gauge-list th {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 18%), linear-gradient(to bottom, #1a3a5b 0%, #2a4a6b 50%, #31608a 100%) !important;
    color: #e8ecf0 !important;
}
html.era-2000-2010.color-scheme-dark .subpanel-body table thead,
html.era-2000-2010.color-scheme-dark .panel-body table thead,
html.era-2000-2010.color-scheme-dark .subpanel-body table th,
html.era-2000-2010.color-scheme-dark .panel-body table th,
html.era-2000-2010.color-scheme-dark .home-widget-gauge-list th {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, transparent 18%), linear-gradient(to bottom, #1a2a3a 0%, #253545 50%, #2d4055 100%) !important;
    color: #e0e8f0 !important;
}
html.era-2000-2010.color-scheme-greenscreen .subpanel-body table thead,
html.era-2000-2010.color-scheme-greenscreen .panel-body table thead,
html.era-2000-2010.color-scheme-greenscreen .subpanel-body table th,
html.era-2000-2010.color-scheme-greenscreen .panel-body table th,
html.era-2000-2010.color-scheme-greenscreen .home-widget-gauge-list th {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.1) 0%, transparent 18%), linear-gradient(to bottom, #0a2d0a 0%, #0d3d0d 50%, #0f4d0f 100%) !important;
    color: #00ff00 !important;
}

/* Era 2000-2010: record list header (contacts, assets, tasks, etc.) – blue gradient */
html.era-2000-2010 .split-layout.no-selection .record-list-header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 18%), linear-gradient(to bottom, #1a3a5b 0%, #2a4a6b 50%, #31608a 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #e8ecf0 !important;
    box-shadow: none !important;
}
html.era-2000-2010 .split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 25%), linear-gradient(to bottom, #2a5a8a 0%, #3a6a9a 100%) !important;
}
html.era-2000-2010 .split-layout.no-selection .list-header-id,
html.era-2000-2010 .split-layout.no-selection .list-header-asset-id,
html.era-2000-2010 .split-layout.no-selection .list-header-tag-type,
html.era-2000-2010 .split-layout.no-selection .list-header-company,
html.era-2000-2010 .split-layout.no-selection .list-header-site,
html.era-2000-2010 .split-layout.no-selection .list-header-room,
html.era-2000-2010 .split-layout.no-selection .list-header-type,
html.era-2000-2010 .split-layout.no-selection .list-header-subtype,
html.era-2000-2010 .split-layout.no-selection .list-header-item,
html.era-2000-2010 .split-layout.no-selection .list-header-name,
html.era-2000-2010 .split-layout.no-selection .list-header-status,
html.era-2000-2010 .split-layout.no-selection .list-header-assigned-to,
html.era-2000-2010 .split-layout.no-selection .list-header-due-date,
html.era-2000-2010 .split-layout.no-selection .list-header-title,
html.era-2000-2010 .split-layout.no-selection .list-header-modified {
    border-left-color: rgba(255, 255, 255, 0.2) !important;
}
html.era-2000-2010.color-scheme-dark .split-layout.no-selection .record-list-header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, transparent 18%), linear-gradient(to bottom, #1a2a3a 0%, #253545 50%, #2d4055 100%) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #e0e8f0 !important;
}
html.era-2000-2010.color-scheme-dark .split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 25%), linear-gradient(to bottom, #2d4055 0%, #354555 100%) !important;
}
html.era-2000-2010.color-scheme-greenscreen .split-layout.no-selection .record-list-header {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.1) 0%, transparent 18%), linear-gradient(to bottom, #0a2d0a 0%, #0d3d0d 50%, #0f4d0f 100%) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #00ff00 !important;
}
html.era-2000-2010.color-scheme-greenscreen .split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.15) 0%, transparent 25%), linear-gradient(to bottom, #0d4d0d 0%, #0f5d0f 100%) !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Lucida Sans Typewriter', 'Lucida Console', Monaco, monospace;
    background-color: var(--corvaxa-blue);
    color: var(--text-dark);
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    overflow-x: hidden;
}

/* Dark mode specific overrides */
html.color-scheme-dark body {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark .app-shell {
    background-color: #1a1a1a !important;
}

html.color-scheme-dark .work-area {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark .panel-titlebar {
    background: linear-gradient(to bottom, #2a4a6b, #1a3a5b);
}

html.color-scheme-dark .menu-bar {
    background: #2d2d2d;
    border-bottom-color: #4a4a4a;
}

html.color-scheme-dark .submenu {
    background: #2d2d2d;
    border-color: #4a4a4a;
}

html.color-scheme-dark .submenu a,
html.color-scheme-dark .submenu-label,
html.color-scheme-dark .submenu-button {
    color: #e0e0e0;
}

html.color-scheme-dark .submenu .active a {
    background: var(--accent-yellow) !important;
    color: #000000 !important;
}

html.color-scheme-dark .submenu a:hover,
html.color-scheme-dark .submenu a:focus,
html.color-scheme-dark .submenu button:hover,
html.color-scheme-dark .submenu button:focus {
    background: var(--accent-yellow);
    color: #000000;
}

html.color-scheme-dark input[type="text"],
html.color-scheme-dark input[type="email"],
html.color-scheme-dark input[type="password"],
html.color-scheme-dark input[type="number"],
html.color-scheme-dark textarea,
html.color-scheme-dark select {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

/* Dark mode: checkboxes and radios – custom appearance so they are clearly visible */
html.color-scheme-dark input[type="checkbox"],
html.color-scheme-dark input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    accent-color: #6ba3ff;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    border: 2px solid #4a4a4a !important;
    background-color: #3a3a3a !important;
    color: #e0e0e0;
    vertical-align: middle;
}
html.color-scheme-dark input[type="radio"] {
    border-radius: 50%;
}
html.color-scheme-dark input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236ba3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 8 l4 4 8-8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 0.75rem !important;
}
html.color-scheme-dark input[type="radio"]:checked {
    background-color: #6ba3ff !important;
    box-shadow: inset 0 0 0 2px #3a3a3a;
}

html.color-scheme-dark .panel {
    background: #2d2d2d;
    border-color: #4a4a4a;
}

html.color-scheme-dark .detail-grid dt,
html.color-scheme-dark .detail-grid dd {
    color: #e0e0e0;
}

html.color-scheme-dark .function-icon {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d);
    border-color: #4a4a4a;
}

html.color-scheme-dark .panel .function-bar {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d);
    border-bottom-color: #4a4a4a;
}

html.color-scheme-dark .function-dropdown {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

html.color-scheme-dark .function-dropdown:hover {
    background-color: #4a4a4a;
}

html.color-scheme-dark .function-dropdown option {
    background: #3a3a3a;
    color: #e0e0e0;
}

html.color-scheme-dark table {
    background: #2d2d2d !important;
    border-color: #4a4a4a !important;
}

html.color-scheme-dark table td,
html.color-scheme-dark table th {
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
    background: #2d2d2d !important;
}

html.color-scheme-dark table tr {
    background: #2d2d2d !important;
}

html.color-scheme-dark table tr:nth-child(even) {
    background: #3a3a3a !important;
}

html.color-scheme-dark table tr:hover {
    background: #4a4a4a !important;
}

html.color-scheme-dark .panel-body {
    background: #2d2d2d;
    color: #e0e0e0;
}

html.color-scheme-dark .subpanel {
    background: #2d2d2d;
    border-color: #4a4a4a;
}

html.color-scheme-dark .subpanel-titlebar {
    background: linear-gradient(to bottom, #2a4a6b, #1a3a5b);
    color: #e0e0e0;
}

html.color-scheme-dark .subpanel-toggle,
html.color-scheme-dark .subpanel-toggle .subpanel-toggle-icon {
    color: #000000 !important;
}

html.color-scheme-dark .subpanel-add-link,
html.color-scheme-dark .subpanel-add-link .subpanel-add-label {
    color: #000000 !important;
}

html.color-scheme-dark .subpanel-body {
    background: #2d2d2d;
    color: #e0e0e0;
}

html.color-scheme-dark a {
    color: #6ba3ff;
}

html.color-scheme-dark a:hover {
    color: #8bb5ff;
}

html.color-scheme-dark .power-button {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

html.color-scheme-dark .menu-item.disabled .menu-label {
    color: #6a6a6a;
}

/* Fix menu shortcut character color when highlighted in dark mode */
html.color-scheme-dark .submenu a:hover .submenu-underline,
html.color-scheme-dark .submenu a:focus .submenu-underline,
html.color-scheme-dark .submenu .active a .submenu-underline,
html.color-scheme-dark .submenu-button:hover .submenu-underline,
html.color-scheme-dark .submenu-button:focus .submenu-underline {
    color: #000000 !important;
}

/* Additional dark mode overrides for hardcoded colors */
html.color-scheme-dark .panel {
    background: #2d2d2d !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark .split-layout {
    background: #2d2d2d !important;
}

html.color-scheme-dark .detail-grid {
    color: #e0e0e0 !important;
}

html.color-scheme-dark input,
html.color-scheme-dark textarea,
html.color-scheme-dark select {
    background-color: #3a3a3a !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark button:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):not(.funnel-step-btn) {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark button:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):hover {
    background: linear-gradient(to bottom, #4a4a4a, #3a3a3a) !important;
}

/* Links styled as task-save-button (e.g. "Edit home screen") – match Save button in dark mode */
html.color-scheme-dark a.task-save-button,
html.color-scheme-dark .work-area a.task-save-button {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}
html.color-scheme-dark a.task-save-button:hover,
html.color-scheme-dark a.task-save-button:focus,
html.color-scheme-dark .work-area a.task-save-button:hover,
html.color-scheme-dark .work-area a.task-save-button:focus {
    background: linear-gradient(to bottom, #4a4a4a, #3a3a3a) !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark .list-item,
html.color-scheme-dark li {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #4a4a4a !important;
}

html.color-scheme-dark .list-item:hover,
html.color-scheme-dark li:hover {
    background: #3a3a3a !important;
}

html.color-scheme-dark .list-item.selected,
html.color-scheme-dark li.selected {
    background: #1a3d6b !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark h1,
html.color-scheme-dark h2,
html.color-scheme-dark h3,
html.color-scheme-dark h4,
html.color-scheme-dark h5,
html.color-scheme-dark h6,
html.color-scheme-dark p,
html.color-scheme-dark div,
html.color-scheme-dark span {
    color: #e0e0e0 !important;
}

html.color-scheme-dark .panel-title {
    color: #e0e0e0 !important;
}

/* Override any remaining hardcoded white/light backgrounds - be more specific */
html.color-scheme-dark .panel,
html.color-scheme-dark .subpanel,
html.color-scheme-dark table,
html.color-scheme-dark input,
html.color-scheme-dark textarea,
html.color-scheme-dark select {
    border-color: var(--solaris-grey-dark) !important;
}

html.color-scheme-dark .panel-titlebar {
    background: linear-gradient(to bottom, #2a4a6b, #1a3a5b) !important;
}

/* Ensure all text in work area is light in dark mode */
html.color-scheme-dark .work-area,
html.color-scheme-dark .work-area * {
    color: #e0e0e0 !important;
}

/* But allow links to be blue */
html.color-scheme-dark .work-area a {
    color: #6ba3ff !important;
}

html.color-scheme-dark .work-area a:hover {
    color: #8bb5ff !important;
}

/* Override any white backgrounds */
html.color-scheme-dark [style*="background: #ffffff"],
html.color-scheme-dark [style*="background:#ffffff"],
html.color-scheme-dark [style*="background-color: #ffffff"],
html.color-scheme-dark [style*="background-color:#ffffff"] {
    background: #2d2d2d !important;
    background-color: #2d2d2d !important;
}

/* Override any black text */
html.color-scheme-dark [style*="color: #000000"],
html.color-scheme-dark [style*="color:#000000"],
html.color-scheme-dark [style*="color: #000"],
html.color-scheme-dark [style*="color:#000"] {
    color: #e0e0e0 !important;
}

/* Font preference classes */
body.font-boring {
    font-family: Arial, Helvetica, sans-serif;
}

body.font-masochist {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

body.font-classic {
    font-family: 'Lucida Sans Typewriter', 'Lucida Console', Monaco, monospace;
}

body.font-90s {
    font-family: 'Perfect DOS VGA 437', 'Courier New', monospace;
}

body.font-vt323 {
    font-family: 'VT323', monospace;
}

body.font-tahoma {
    font-family: Tahoma, Geneva, sans-serif;
}

body.font-verdana {
    font-family: Verdana, Geneva, sans-serif;
}

body.font-win31 {
    font-family: 'W95FA', 'MS Sans Serif', 'MS Shell Dlg', sans-serif;
}

body.font-segoeui {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure all headings inherit font family */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit !important;
}

/* Ensure work-area and all its children inherit font */
.work-area {
    font-family: inherit !important;
    font-size: inherit !important;
}

.work-area * {
    font-family: inherit !important;
}

/* Exception: Allow UKNumberPlate font to be used */
.work-area .vehicle-name-plate {
    font-family: 'UKNumberPlate', sans-serif !important;
}

/* Force font on common elements that might lose it */
.work-area h1,
.work-area h2,
.work-area h3,
.work-area h4,
.work-area h5,
.work-area h6,
.work-area p,
.work-area div,
.work-area span,
.work-area input,
.work-area textarea,
.work-area select,
.work-area button,
.work-area label,
.work-area dt,
.work-area dd {
    font-family: inherit !important;
}

/* Ensure work-area and all its children inherit font-size for proper scaling */
.work-area *,
.work-area *::before,
.work-area *::after {
    font-size: inherit;
}

/* Ensure panel and its children inherit font-size */
.panel,
.panel *,
.panel *::before,
.panel *::after {
    font-size: inherit;
}

/* Ensure detail-grid and split-layout inherit font-size */
.detail-grid,
.detail-grid *,
.split-layout,
.split-layout * {
    font-size: inherit;
}

body.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--solaris-grey-light);
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    width: 100%;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    background: linear-gradient(90deg, var(--corvaxa-blue), var(--corvaxa-blue-light));
    color: var(--text-light);
    font-style: italic;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    position: relative;
    flex-shrink: 0;
}

.app-header-super-admin {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.app-title {
    padding-left: 12px;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 25px;
    font-style: normal;
    text-transform: none;
    padding-right: 0;
}

.username {
    font-weight: normal;
}

.logout-form {
    margin: 0;
}

.power-button {
    position: relative;
    width: 18px;
    height: var(--header-height);
    border: 2px outset var(--solaris-grey);
    background: var(--solaris-grey);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    margin: 0;
    flex-shrink: 0;
}

.power-button:hover,
.power-button:focus {
    outline: none;
    border-color: var(--solaris-grey-dark);
}

.power-button:active {
    border-style: inset;
    box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
}

.power-icon::before {
    content: '';
    width: 8px;
    height: 2px;
    background: var(--text-dark);
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-bar {
    height: var(--menu-height);
    background: var(--solaris-grey);
    border-bottom: 1px solid var(--solaris-grey-dark);
    font-style: italic;
    font-size: 0.7rem; /* Scales automatically with html font-size */
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    outline: none !important;
    position: relative;
    flex-shrink: 0;
}

/* Ensure menu bar and all children inherit font-size and font-family for proper scaling and user font preference */
.menu-bar,
.menu-bar *,
.menu-bar *::before,
.menu-bar *::after {
    font-size: inherit;
    font-family: inherit !important;
}

.menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0 4px;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}

.menu-item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    padding: 0 23px;
}

.menu-item-right {
    position: absolute;
    right: 6px;
    margin-left: 0;
}

.menu-label {
    cursor: pointer;
    user-select: none;
    outline: none;
    display: inline-block;
    text-align: left;
    padding: 4px 6px;
    white-space: nowrap;
    font-size: inherit !important;
}

.menu-label .menu-underline {
    text-decoration: underline;
}

.menu-label:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: -2px;
}

.menu-item.disabled .menu-label {
    tabindex: -1;
    color: var(--solaris-grey-dark);
}

.menu-item:not(.disabled):hover .submenu,
.menu-item:not(.disabled):focus-within .submenu,
.menu-item.open .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 25px;
    background: var(--solaris-grey-light);
    border: 1px solid var(--solaris-grey-dark);
    list-style: none;
    padding: 4px 0;
    margin: -1px 0 0;
    min-width: 210px;
    z-index: 10;
}

.menu-bar.menu-force-close .submenu,
.menu-bar.menu-force-close .menu-item:not(.disabled):hover .submenu,
.menu-bar.menu-force-close .menu-item.open .submenu {
    display: none !important;
}

.menu-item-right .submenu {
    left: auto;
    right: 0;
}

.submenu.submenu-wide {
    min-width: 300px;
}

.submenu.submenu-main {
    min-width: 210px;
}

.submenu li {
    margin: 0;
}

.submenu a,
.submenu-label {
    display: block;
    padding: 4px 8px;
    color: var(--text-dark);
    text-decoration: none;
    text-align: left;
    font-size: inherit;
}

.submenu a .submenu-underline,
.submenu-button .submenu-underline {
    text-decoration: underline;
}

.submenu-form {
    display: block;
    margin: 0;
    padding: 0;
}

.submenu-button {
    display: block;
    width: 100%;
    padding: 4px 8px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
}

.submenu a:hover,
.submenu a:focus,
.submenu button:hover,
.submenu button:focus,
.submenu .active a {
    background: var(--accent-yellow);
    color: #000000;
    outline: none;
}

.submenu a:focus,
.submenu-button:focus {
    outline: 2px solid var(--corvaxa-blue);
    outline-offset: -2px;
}

.work-area {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px;
    padding-bottom: calc(12px + var(--status-height));
    background: var(--solaris-grey-light);
    position: relative;
}

.panel-titlebar {
    background: linear-gradient(to bottom, #4A7BC8, #316AC5);
    border-bottom: 1px outset #316AC5;
    padding: 6px 12px;
    min-height: 26px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.3),
        inset -1px -1px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset -2px -2px 0 rgba(0, 0, 0, 0.5);
    margin: -2px -2px 0 -2px;
    position: relative;
    z-index: 2;
}

.panel-titlebar:has(+ .function-bar) {
    border-bottom: none;
}

.panel-title-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.panel-title-link:hover .panel-title {
    text-decoration: underline;
}

.panel-title {
    font-weight: bold;
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.panel .function-bar {
    background: linear-gradient(to bottom, #e8e8e8, #d4d0c8);
    border-bottom: 1px solid #808080;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-height: 28px;
    box-shadow: inset 0 1px 0 #ffffff;
    margin: 0 -2px 0 -2px;
    position: relative;
    z-index: 1;
}

.panel .function-bar:empty {
    display: none;
}

.function-icon {
    width: 36px;
    height: 36px;
    border: 1px outset #c0c0c0;
    background: linear-gradient(to bottom, #f0f0f0, #d4d0c8);
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3125rem; /* 50% larger than 0.875rem for icon clarity */
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.function-icon:hover {
    background: linear-gradient(to bottom, #ffffff, #e8e8e8);
    border-color: #808080;
}

.function-icon:active {
    border: 1px inset #c0c0c0;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
    background: linear-gradient(to bottom, #d4d0c8, #c0c0c0);
}

/* Toggle button pressed state */
.function-icon.list-toggle-pressed,
.function-icon.active {
    border: 1px inset #c0c0c0;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
    background: linear-gradient(to bottom, #d4d0c8, #c0c0c0);
}

.function-icon:focus {
    outline: 1px dotted #000000;
    outline-offset: 1px;
}

.function-icon .icon-new,
.function-icon .icon-save,
.function-icon .icon-print {
    display: block;
    line-height: 1;
}

.function-icon .function-icon-label {
    display: none;
}

.function-dropdown {
    height: 24px;
    border: 1px outset #c0c0c0;
    background: #ffffff;
    padding: 2px 20px 2px 6px;
    font-size: 0.75rem; /* 12px / 16px = 0.75rem - scales with html font-size */
    font-family: inherit;
    color: #000000;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-color: #ffffff;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
    min-width: 120px;
}

.function-dropdown:hover {
    background-color: #f0f0f0;
    border-color: #808080;
}

.function-dropdown:focus {
    outline: 1px dotted #000000;
    outline-offset: 1px;
    background-color: #ffffff;
}

.function-dropdown:active {
    border: 1px inset #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    background-color: #f0f0f0;
}

.function-dropdown option {
    background: #ffffff;
    color: #000000;
    padding: 2px 4px;
}

.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--status-height);
    background: var(--solaris-grey);
    border-top: 1px solid var(--solaris-grey-dark);
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    z-index: 20;
    border-radius: 0 !important;
    outline: none !important;
    width: 100%;
    transition: background-color 0.3s ease;
}

.status-bar[data-flash-type="success"] {
    background: #28a745;
    color: #ffffff;
    animation: statusFlash 0.5s ease-in-out 3;
}

.status-bar[data-flash-type="error"] {
    background: #dc3545;
    color: #ffffff;
}

.status-bar[data-flash-type="info"] {
    background: #17a2b8;
    color: #ffffff;
}

@keyframes statusFlash {
    0%, 100% {
        background-color: #28a745;
    }
    50% {
        background-color: #4caf50;
    }
}

.status-text {
    padding-left: 12px;
    text-transform: uppercase;
}

.panel {
    border: 2px solid var(--solaris-grey-dark);
    background: var(--solaris-grey-light);
    box-shadow: inset 1px 1px 0 #ffffff;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.panel-header {
    background: linear-gradient(90deg, var(--solaris-grey-light), #ffffff);
    border-bottom: 2px solid var(--solaris-grey);
    padding: 6px 10px;
}

.panel-header h2 {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* If panel has titlebar, hide the old header */
.panel:has(.panel-titlebar) .panel-header {
    display: none;
}

.panel-body {
    padding: 10px;
    background: #ffffff;
    color: #222222;
    min-height: 200px;
}

/* Align labels and controls in user preferences (Dates/task list, Appearance, etc.) and reporting gauge filters */
.gauge-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gauge-filter-row-label {
    flex: 0 0 auto;
    min-width: 180px;
}
.gauge-filter-row-control {
    flex: 1 1 auto;
    min-width: 0;
}
.gauge-filter-row-control select,
.gauge-filter-row-control input[type="text"],
.gauge-filter-row-control input[type="password"] {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

/* Ensure panel-body connects directly to titlebar when no function bar - extend white background up to cover the border */
.panel-titlebar:not(:has(+ .function-bar)) + .panel-body {
    margin-top: -4px;
    padding-top: 14px;
    position: relative;
    z-index: 1;
}

.panel-titlebar:not(:has(+ .function-bar)) + .panel-body::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: #ffffff;
    z-index: 0;
}

.split-layout {
    display: flex;
    flex-direction: column;
}

.split-layout .function-bar + .panel-body {
    margin-top: -1px;
    padding-top: 11px;
    position: relative;
    z-index: 0;
}

/* Accident Book form layout - side by side on larger screens */
.accident-form-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.accident-form-fieldset {
    border: 1px solid #c0c0c0;
    padding: 15px;
    margin-bottom: 20px;
    background: #f5f5f5;
    flex: 1;
    min-width: 300px;
}

/* On smaller screens, fieldsets stack vertically */
@media (max-width: 768px) {
    .accident-form-layout {
        flex-direction: column;
    }
    
    .accident-form-fieldset {
        min-width: 100%;
    }
}

@media (min-width: 768px) {
    .split-layout .panel-body {
        display: flex;
        gap: 12px;
        padding: 10px;
    }

    .list-column {
        flex: 0 0 220px;
        border-right: 2px inset #c0c0c0;
        padding-right: 10px;
        background: #c0c0c0;
        padding: 8px;
        box-shadow: inset 1px 1px 0 #808080;
    }

    .detail-column {
        flex: 1 1 auto;
        padding-left: 10px;
    }

    /* Hide list when toggle is off */
    .split-layout.list-hidden .list-column {
        display: none;
    }

    .split-layout.list-hidden .detail-column {
        padding-left: 0;
    }
    
    /* Hide detail column when no item is selected (make list full width) */
    .split-layout.no-selection .detail-column {
        display: none !important;
    }
    
    .split-layout.no-selection .list-column {
        flex: 1 1 auto;
        border-right: none;
    }
}

.list-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Windows NT-style record list */
.record-list {
    border: 2px inset #c0c0c0;
    background: #ffffff;
    padding: 2px;
    box-shadow: 
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff;
}

.record-list a {
    display: block;
    padding: 4px 6px;
    border: 1px solid transparent;
    margin: 1px 0;
    font-size: 0.85rem;
    color: #000000;
    text-decoration: none;
    background: #ffffff;
    cursor: default;
}

/* Full-width view: hide toggle button when list is full-width (all eras) */
/* Companies: single-column list – header and items take full width */
.split-layout.no-selection[data-page="companies"] .list-header-company {
    flex: 1 1 auto !important;
    border-left: none !important;
    margin-left: 0 !important;
    padding-left: 16px !important;
}
.split-layout.no-selection[data-page="companies"] .list-item-name {
    flex: 1 1 auto !important;
    border-left: none !important;
    margin-left: 0 !important;
    padding-left: 16px !important;
}

.split-layout.no-selection[data-page="companies"] #list-toggle-btn,
.split-layout.no-selection[data-page="contacts"] #list-toggle-btn,
.split-layout.no-selection[data-page="opportunities"] #list-toggle-btn,
.split-layout.no-selection[data-page="assets"] #list-toggle-btn,
.split-layout.no-selection[data-page="tasks"] #list-toggle-btn {
    display: none !important;
}

/* Full-width view: show column headers */
.split-layout.no-selection .record-list-header {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(to bottom, #e8e8e8, #d4d0c8);
    border: 2px inset #c0c0c0;
    padding: 6px 2px;
    margin-bottom: 2px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #000000;
    box-shadow: 
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080;
}

.split-layout.no-selection .list-header-id {
    flex: 0 0 80px;
    padding-right: 16px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-asset-id {
    flex: 0 0 140px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
    font-weight: bold;
}

.split-layout.no-selection .asset-filter-tag-type {
    flex: 0 0 120px;
    padding-left: 8px;
    padding-right: 8px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-header-tag-type {
    flex: 0 0 120px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-company {
    flex: 0 0 200px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-site {
    flex: 0 0 240px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-room {
    flex: 0 0 200px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-type {
    flex: 0 0 200px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-subtype {
    flex: 0 0 220px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-item {
    flex: 0 0 160px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-name {
    flex: 1 1 auto;
    padding-left: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-status {
    flex: 0 0 200px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-assigned-to {
    flex: 0 0 160px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-due-date {
    flex: 0 0 160px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-title {
    flex: 1 1 auto;
    padding-left: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

.split-layout.no-selection .list-header-modified {
    flex: 0 0 180px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    font-weight: bold;
}

/* Sortable header styles */
.split-layout.no-selection .sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

.split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
}

.split-layout.no-selection .sortable-header::after {
    content: ' ↕';
    position: absolute;
    right: 4px;
    font-size: 0.75em;
    opacity: 0.5;
}

.split-layout.no-selection .sortable-header.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

.split-layout.no-selection .sortable-header.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

/* Hide headers in normal view */
.split-layout:not(.no-selection) .record-list-header {
    display: none;
}

/* Assets page: filter row aligned with list columns (same flex as header) */
.split-layout:not(.no-selection) .asset-list-filters-row {
    display: none;
}

.split-layout.no-selection .asset-list-filters-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 2px;
    margin-bottom: 2px;
    background: linear-gradient(to bottom, #f0f0f0, #e4e4e4);
    border: 2px inset #c0c0c0;
    font-size: 0.85rem;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.split-layout.no-selection .asset-list-filters-row .asset-filter-cell {
    padding: 0 4px;
    min-width: 0;
}

.split-layout.no-selection .asset-filter-asset-id { flex: 0 0 140px; padding-left: 12px; padding-right: 12px; }
.split-layout.no-selection .asset-filter-company { flex: 0 0 200px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .asset-filter-site { flex: 0 0 240px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .asset-filter-room { flex: 0 0 200px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .asset-filter-type { flex: 0 0 200px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .asset-filter-subtype { flex: 0 0 220px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .asset-filter-item { flex: 0 0 160px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .asset-filter-name { flex: 1 1 auto; padding-left: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }

/* Tasks page: filter row aligned with list columns (same flex as header) */
.split-layout:not(.no-selection) .task-list-filters-row {
    display: none;
}

.split-layout.no-selection .task-list-filters-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 2px;
    margin-bottom: 2px;
    background: linear-gradient(to bottom, #f0f0f0, #e4e4e4);
    border: 2px inset #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.split-layout.no-selection .task-list-filters-row .task-filter-cell {
    padding: 0 4px;
    min-width: 0;
}

.split-layout.no-selection .task-filter-id { flex: 0 0 80px; padding-left: 12px; padding-right: 12px; }
.split-layout.no-selection .task-filter-company { flex: 0 0 200px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .task-filter-asset-id { flex: 0 0 140px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .task-filter-site { flex: 0 0 240px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .task-filter-status { flex: 0 0 200px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .task-filter-assigned-to { flex: 0 0 160px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .task-filter-due-date { flex: 0 0 160px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .task-filter-modified { flex: 0 0 180px; padding-left: 12px; padding-right: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }
.split-layout.no-selection .task-filter-title { flex: 1 1 auto; padding-left: 12px; border-left: 1px solid #d0d0d0; margin-left: 8px; }

/* Dark mode styles for column headers */
html.color-scheme-dark .split-layout.no-selection .record-list-header {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
    box-shadow: 
        inset 1px 1px 0 #4a4a4a,
        inset -1px -1px 0 #1a1a1a !important;
}

html.color-scheme-dark .split-layout.no-selection .sortable-header:hover {
    background: linear-gradient(to bottom, #4a4a4a, #3a3a3a) !important;
}

html.color-scheme-dark .split-layout.no-selection .list-header-status,
html.color-scheme-dark .split-layout.no-selection .list-header-assigned-to,
html.color-scheme-dark .split-layout.no-selection .list-header-due-date,
html.color-scheme-dark .split-layout.no-selection .list-header-title,
html.color-scheme-dark .split-layout.no-selection .list-header-modified {
    border-left-color: #4a4a4a !important;
}

/* Green screen mode styles for column headers */
html.color-scheme-greenscreen .split-layout.no-selection .record-list-header {
    background: #0d3d0d !important;
    background-image: none !important;
    border: 1px solid #1a5a1a !important;
    border-style: solid !important;
    color: #00ff00 !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .split-layout.no-selection .sortable-header:hover {
    background: #1a5a1a !important;
    background-image: none !important;
}

html.color-scheme-greenscreen .split-layout.no-selection .list-header-status,
html.color-scheme-greenscreen .split-layout.no-selection .list-header-assigned-to,
html.color-scheme-greenscreen .split-layout.no-selection .list-header-due-date,
html.color-scheme-greenscreen .split-layout.no-selection .list-header-title,
html.color-scheme-greenscreen .split-layout.no-selection .list-header-modified {
    border-left-color: #1a5a1a !important;
}

html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    border-color: #4a4a4a !important;
}

html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row .asset-filter-company,
html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row .asset-filter-site,
html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row .asset-filter-room,
html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row .asset-filter-type,
html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row .asset-filter-subtype,
html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row .asset-filter-item,
html.color-scheme-dark .split-layout.no-selection .asset-list-filters-row .asset-filter-name {
    border-left-color: #4a4a4a !important;
}

html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row {
    background: #0d3d0d !important;
    border: 1px solid #1a5a1a !important;
}

html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row .asset-filter-company,
html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row .asset-filter-site,
html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row .asset-filter-room,
html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row .asset-filter-type,
html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row .asset-filter-subtype,
html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row .asset-filter-item,
html.color-scheme-greenscreen .split-layout.no-selection .asset-list-filters-row .asset-filter-name {
    border-left-color: #1a5a1a !important;
}

html.color-scheme-dark .split-layout.no-selection .task-list-filters-row {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    border-color: #4a4a4a !important;
}

html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-company,
html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-asset-id,
html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-site,
html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-status,
html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-assigned-to,
html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-due-date,
html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-modified,
html.color-scheme-dark .split-layout.no-selection .task-list-filters-row .task-filter-title {
    border-left-color: #4a4a4a !important;
}

html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row {
    background: #0d3d0d !important;
    border: 1px solid #1a5a1a !important;
}

html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-company,
html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-asset-id,
html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-site,
html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-status,
html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-assigned-to,
html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-due-date,
html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-modified,
html.color-scheme-greenscreen .split-layout.no-selection .task-list-filters-row .task-filter-title {
    border-left-color: #1a5a1a !important;
}

/* Full-width view: show columns */
.split-layout.no-selection .record-list a {
    display: flex;
    align-items: center;
    gap: 0;
}

.split-layout.no-selection .list-item-id {
    flex: 0 0 80px;
    font-weight: bold;
    color: #316AC5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
}

.split-layout.no-selection .list-item-company {
    flex: 0 0 200px;
    font-weight: bold;
    color: #316AC5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-site {
    flex: 0 0 240px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-room {
    flex: 0 0 200px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-type {
    flex: 0 0 200px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-subtype {
    flex: 0 0 220px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-item {
    flex: 0 0 160px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-asset-id {
    flex: 0 0 140px;
    font-weight: bold;
    color: #316AC5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
}

.split-layout.no-selection .list-item-tag-type {
    flex: 0 0 120px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-status {
    flex: 0 0 200px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-assigned-to {
    flex: 0 0 160px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-title {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
}

.split-layout.no-selection .list-item-due-date {
    flex: 0 0 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    color: #666;
}

.split-layout.no-selection .list-item-modified {
    flex: 0 0 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 1px solid #d0d0d0;
    margin-left: 8px;
    color: #666;
}

/* Normal view: hide company and status columns, show only title */
.split-layout:not(.no-selection) .list-item-id,
.split-layout:not(.no-selection) .list-item-company,
.split-layout:not(.no-selection) .list-item-status,
.split-layout:not(.no-selection) .list-item-assigned-to,
.split-layout:not(.no-selection) .list-item-due-date,
.split-layout:not(.no-selection) .list-item-modified,
.split-layout:not(.no-selection) .list-item-type,
.split-layout:not(.no-selection) .list-item-subtype,
.split-layout:not(.no-selection) .list-item-item,
.split-layout:not(.no-selection) .list-item-asset-id,
.split-layout:not(.no-selection) .list-item-name,
.split-layout:not(.no-selection) .list-item-site,
.split-layout:not(.no-selection) .list-item-room {
    display: none;
}

.split-layout:not(.no-selection) .list-item-title {
    display: inline;
}

.split-layout.no-selection #assets-list .list-item-title {
    display: none;
}

.split-layout.no-selection #companies-list .list-item-title {
    display: none;
}

.record-list a:hover,
.record-list a:focus {
    border: 1px outset #c0c0c0;
    background: linear-gradient(to bottom, #f0f0f0, #e8e8e8);
    color: #000000;
    box-shadow: 
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080;
}

.record-list a.active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #d4d0c8, #c0c0c0);
    color: #000000;
    box-shadow: 
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff;
    font-weight: bold;
}

/* Dark mode styles for left panel lists */
html.color-scheme-dark .list-column {
    background: #2d2d2d !important;
    border-right-color: #4a4a4a !important;
}

html.color-scheme-dark .record-list {
    background: #2d2d2d !important;
    border-color: #4a4a4a !important;
}

html.color-scheme-dark .record-list a {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: transparent !important;
}

html.color-scheme-dark .record-list a:hover,
html.color-scheme-dark .record-list a:focus {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d) !important;
    color: #e0e0e0 !important;
    border-color: #4a4a4a !important;
}

html.color-scheme-dark .record-list a.active {
    background: linear-gradient(to bottom, #1a3d6b, #0d1f3d) !important;
    color: #e0e0e0 !important;
    border-color: #4a4a4a !important;
}

/* Green Screen color scheme styles */
html.color-scheme-greenscreen body {
    background-color: #0d2d0d !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .app-shell {
    background-color: #0d2d0d !important;
}

html.color-scheme-greenscreen .work-area {
    background: #0d2d0d !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .app-header {
    background: #0d3d0d !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .panel-titlebar {
    background: #0d3d0d !important;
    background-image: none !important;
    color: #00ff00 !important;
    box-shadow: none !important;
    border: 1px solid #1a5a1a !important;
    border-bottom: 1px solid #1a5a1a !important;
    border-style: solid !important;
}

html.color-scheme-greenscreen .panel-titlebar .panel-title {
    color: #00ff00 !important;
    text-shadow: none !important;
}

/* Override inline styles on h3 title elements (company name, person name, etc.) */
html.color-scheme-greenscreen .detail-column h3,
html.color-scheme-greenscreen .panel-body h3 {
    background: #0d3d0d !important;
    background-image: none !important;
    color: #00ff00 !important;
    border: 1px solid #1a5a1a !important;
    border-style: solid !important;
    border-width: 1px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.color-scheme-greenscreen .menu-bar {
    background: #0d3d0d !important;
    border-bottom-color: #1a5a1a !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .submenu {
    background: #0d3d0d !important;
    border-color: #1a5a1a !important;
}

html.color-scheme-greenscreen .submenu a,
html.color-scheme-greenscreen .submenu-label,
html.color-scheme-greenscreen .submenu-button {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .submenu a:hover,
html.color-scheme-greenscreen .submenu a:focus,
html.color-scheme-greenscreen .submenu button:hover,
html.color-scheme-greenscreen .submenu button:focus {
    background: #1a5a1a !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen input[type="text"],
html.color-scheme-greenscreen input[type="email"],
html.color-scheme-greenscreen input[type="password"],
html.color-scheme-greenscreen input[type="number"],
html.color-scheme-greenscreen textarea,
html.color-scheme-greenscreen select {
    background-color: #004401 !important;
    border: 1px solid #1a5a1a !important;
    color: #22FF4E !important;
    box-shadow: none !important;
}

/* Greenscreen: checkboxes and radios – custom appearance so they are clearly visible */
html.color-scheme-greenscreen input[type="checkbox"],
html.color-scheme-greenscreen input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    accent-color: #00ff00;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    border: 2px solid #00ff00 !important;
    background-color: #0d2d0d !important;
    background-image: none !important;
    color: #00ff00;
    vertical-align: middle;
}
html.color-scheme-greenscreen input[type="radio"] {
    border-radius: 50%;
}
html.color-scheme-greenscreen input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 8 l4 4 8-8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 0.75rem !important;
}
html.color-scheme-greenscreen input[type="radio"]:checked {
    background-color: #00ff00 !important;
    box-shadow: inset 0 0 0 2px #0d2d0d;
}

html.color-scheme-greenscreen input::placeholder,
html.color-scheme-greenscreen textarea::placeholder {
    color: #2f7f2f !important;
}

html.color-scheme-greenscreen .panel {
    background: #0d2d0d !important;
    border: 1px solid #1a5a1a !important;
    color: #00ff00 !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .panel .function-bar {
    background: #0d3d0d !important;
    border-bottom: 1px solid #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .function-icon {
    background: #0d3d0d !important;
    border: 1px solid #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .function-icon:hover {
    background: #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .function-dropdown {
    background-color: #0d2d0d !important;
    border: 1px solid #1a5a1a !important;
    color: #00ff00 !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .function-dropdown:hover {
    border: 1px solid #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .function-dropdown:active {
    border: 1px solid #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .function-dropdown option {
    background: #0d2d0d !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen table {
    background: #0d2d0d !important;
    border: 1px solid #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen table td,
html.color-scheme-greenscreen table th {
    border: 1px solid #1a5a1a !important;
    color: #00ff00 !important;
    background: #0d2d0d !important;
}

html.color-scheme-greenscreen .panel-body {
    background: #0d2d0d !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .subpanel {
    background: #0d2d0d !important;
    border: 1px solid #1a5a1a !important;
    border-top-color: #1a5a1a !important;
    border-left-color: #1a5a1a !important;
    border-right-color: #1a5a1a !important;
    border-bottom-color: #1a5a1a !important;
    border-style: solid !important;
    border-width: 1px !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .subpanel-titlebar {
    background: #0d3d0d !important;
    color: #00ff00 !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .subpanel-body {
    background: #0d2d0d !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen a {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen a:hover {
    color: #66ff66 !important;
}

html.color-scheme-greenscreen .list-column {
    background: #0d3d0d !important;
    border-right: 1px solid #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .record-list {
    background: #0d2d0d !important;
    border: 1px solid #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .record-list a {
    background: #0d2d0d !important;
    color: #00ff00 !important;
    border: none !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .record-list a:hover,
html.color-scheme-greenscreen .record-list a:focus {
    background: #1a5a1a !important;
    color: #00ff00 !important;
    border: 1px solid #2d7a2d !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .record-list a.active {
    background: #1a5a1a !important;
    color: #00ff00 !important;
    border: 1px solid #2d7a2d !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .detail-grid dt,
html.color-scheme-greenscreen .detail-grid dd {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .power-button {
    background: #0d3d0d !important;
    border: 1px solid #1a5a1a !important;
    color: #00ff00 !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .power-button:hover {
    background: #1a5a1a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .menu-item.disabled .menu-label {
    color: #1a5a1a !important;
}

html.color-scheme-greenscreen .list-item,
html.color-scheme-greenscreen li {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen h1,
html.color-scheme-greenscreen h2,
html.color-scheme-greenscreen h3,
html.color-scheme-greenscreen h4,
html.color-scheme-greenscreen h5,
html.color-scheme-greenscreen h6,
html.color-scheme-greenscreen p,
html.color-scheme-greenscreen div,
html.color-scheme-greenscreen span,
html.color-scheme-greenscreen label {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .panel-title {
    color: #00ff00 !important;
    text-shadow: none !important;
}

html.color-scheme-greenscreen table tbody tr:nth-child(even) {
    background-color: #1a3d1a !important;
}

html.color-scheme-greenscreen table tbody tr:hover {
    background-color: #1a5a1a !important;
}

html.color-scheme-greenscreen .submenu a:hover .submenu-underline,
html.color-scheme-greenscreen .submenu a:focus .submenu-underline,
html.color-scheme-greenscreen .submenu .active a {
    background: #00ff00 !important;
    color: #000000 !important;
}

html.color-scheme-greenscreen .submenu .active a:hover,
html.color-scheme-greenscreen .submenu .active a:focus {
    background: #00ff00 !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .submenu .active a .submenu-underline {
    color: #000000 !important;
    background: #00ff00 !important;
}

html.color-scheme-greenscreen .submenu .active a:hover .submenu-underline,
html.color-scheme-greenscreen .submenu .active a:focus .submenu-underline {
    color: #00ff00 !important;
    background: #00ff00 !important;
}

html.color-scheme-greenscreen .submenu-button:hover .submenu-underline,
html.color-scheme-greenscreen .submenu-button:focus .submenu-underline {
    color: #00ff00 !important;
    background: #1a5a1a !important;
}

html.color-scheme-greenscreen .status-bar {
    border-top: 1px solid #1a5a1a !important;
    background: #0d3d0d !important;
    color: #00ff00 !important;
    box-shadow: none !important;
}

/* Disable all 3D effects for green screen */
html.color-scheme-greenscreen * {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Remove all gradients */
html.color-scheme-greenscreen * {
    background-image: none !important;
}

html.color-scheme-greenscreen .panel-titlebar,
html.color-scheme-greenscreen .subpanel-titlebar,
html.color-scheme-greenscreen .app-header,
html.color-scheme-greenscreen .menu-bar,
html.color-scheme-greenscreen .function-bar,
html.color-scheme-greenscreen .function-icon,
html.color-scheme-greenscreen .function-dropdown,
html.color-scheme-greenscreen button,
html.color-scheme-greenscreen input,
html.color-scheme-greenscreen select,
html.color-scheme-greenscreen textarea,
html.color-scheme-greenscreen .record-list a,
html.color-scheme-greenscreen .power-button {
    background-image: none !important;
    background: #004401 !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #22FF4E !important;
    color: #22FF4E !important;
}

html.color-scheme-greenscreen .record-list a,
html.color-scheme-greenscreen .panel-body,
html.color-scheme-greenscreen .subpanel-body,
html.color-scheme-greenscreen .work-area,
html.color-scheme-greenscreen body,
html.color-scheme-greenscreen .app-shell {
    background-image: none !important;
    background: #0d2d0d !important;
}

/* Override white backgrounds in green screen mode */
html.color-scheme-greenscreen [style*="background: #ffffff"],
html.color-scheme-greenscreen [style*="background:#ffffff"],
html.color-scheme-greenscreen [style*="background-color: #ffffff"],
html.color-scheme-greenscreen [style*="background-color:#ffffff"] {
    background: #0d2d0d !important;
    background-color: #0d2d0d !important;
    border-color: #1a5a1a !important;
    color: #00ff00 !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .record-list a:hover,
html.color-scheme-greenscreen .record-list a:focus,
html.color-scheme-greenscreen .record-list a.active,
html.color-scheme-greenscreen .function-icon:hover,
html.color-scheme-greenscreen .power-button:hover,
html.color-scheme-greenscreen .submenu a:hover,
html.color-scheme-greenscreen .submenu a:focus {
    background-image: none !important;
    background: #004401 !important;
    border-color: #22FF4E !important;
    color: #22FF4E !important;
}

html.color-scheme-greenscreen h1,
html.color-scheme-greenscreen h2,
html.color-scheme-greenscreen h3,
html.color-scheme-greenscreen h4,
html.color-scheme-greenscreen h5,
html.color-scheme-greenscreen h6,
html.color-scheme-greenscreen p,
html.color-scheme-greenscreen div,
html.color-scheme-greenscreen span,
html.color-scheme-greenscreen label,
html.color-scheme-greenscreen dt,
html.color-scheme-greenscreen dd {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .panel-title {
    color: #00ff00 !important;
    text-shadow: none !important;
}

.placeholder {
    font-style: italic;
    color: var(--solaris-grey-dark);
}

.detail-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 6px 12px;
    margin: 0 0 12px;
    font-size: 0.85rem;
}

/* Wider first column for custom fields to avoid label wrapping */
.subpanel .detail-grid {
    grid-template-columns: 260px 1fr;
}

.detail-grid dt {
    font-weight: bold;
    text-transform: uppercase;
    color: #000000;
}

.detail-grid dd {
    margin: 0;
}

.detail-grid dd a {
    color: #0000ff;
    text-decoration: underline;
}

.detail-grid dd a:hover,
.detail-grid dd a:focus {
    color: #ff0000;
    text-decoration: underline;
}

/* Custom field type: file (view mode) – single button */
.custom-field-file-view {
    display: inline-flex;
}
/* Override .detail-grid dd a underline so file button and icon are never underlined */
.detail-grid dd .custom-field-file-link,
.detail-grid dd .custom-field-file-link:hover,
.detail-grid dd .custom-field-file-link:focus {
    text-decoration: none;
}
.custom-field-file-link {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    align-content: start;
    gap: 4px 10px;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    padding: 10px 14px;
    border: 2px outset #c0c0c0;
    background: linear-gradient(to bottom, #f4f4f4, #e8e8e8);
    border-radius: 6px;
    cursor: pointer;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4), inset -1px -1px 0 rgba(0, 0, 0, 0.1);
}
.custom-field-file-link:hover,
.custom-field-file-link:focus {
    color: #0000ff;
    text-decoration: none;
    background: linear-gradient(to bottom, #e8e8e8, #e0e0e0);
    border-color: #a0a0a0;
}
.custom-field-file-link:active {
    border-style: inset;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.custom-field-file-icon {
    font-size: 3.7em;
    line-height: 1;
    grid-row: 1 / -1;
    grid-column: 1;
    text-decoration: none;
}
.custom-field-file-link:hover .custom-field-file-icon,
.custom-field-file-link:focus .custom-field-file-icon {
    text-decoration: none;
}
.custom-field-file-name {
    font-weight: 500;
    grid-column: 2;
    grid-row: 1;
}
.custom-field-file-label {
    font-size: 0.9em;
    color: #666;
    grid-column: 2;
    grid-row: 2;
}
html.color-scheme-dark .custom-field-file-label {
    color: #aaa;
}
/* Dark mode: darker button background so text is readable */
html.color-scheme-dark .custom-field-file-link {
    background: linear-gradient(to bottom, #3a3a3a, #2d2d2d);
    border-color: #4a4a4a;
    color: #e0e0e0;
}
html.color-scheme-dark .custom-field-file-link:hover,
html.color-scheme-dark .custom-field-file-link:focus {
    background: linear-gradient(to bottom, #4a4a4a, #3a3a3a);
    border-color: #5a5a5a;
    color: #e0e0e0;
}
html.color-scheme-dark .custom-field-file-link .custom-field-file-label {
    color: #aaa;
}
/* Greenscreen: bright green border */
html.color-scheme-greenscreen .custom-field-file-link {
    border-color: #00ff00;
    background: #0d2d0d;
    color: #00ff00;
}
html.color-scheme-greenscreen .custom-field-file-link:hover,
html.color-scheme-greenscreen .custom-field-file-link:focus {
    border-color: #00ff00;
    background: #0d3d0d;
    color: #00ff00;
}
html.color-scheme-greenscreen .custom-field-file-link .custom-field-file-label {
    color: #00cc00;
}
.custom-field-file-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.custom-field-file-edit .custom-field-file-name {
    margin-right: 4px;
}
.custom-field-file-edit .custom-field-file-label {
    margin-right: 0;
}

.sub-panel {
    border-top: 1px solid var(--solaris-grey);
    padding-top: 10px;
}

.sub-panel header h4 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--corvaxa-blue);
}

/* Windows 3.1 style subpanel component */
.subpanel {
    border-width: 2px;
    border-style: solid;
    border-top-color: #ffffff;
    border-left-color: var(--solaris-grey-light);
    border-right-color: var(--solaris-grey-dark);
    border-bottom-color: var(--solaris-grey-dark);
    background: #ffffff;
    margin: 12px 0;
    box-shadow: 
        inset -1px -1px 0 var(--solaris-grey),
        inset 1px 1px 0 var(--solaris-grey-light);
}

.subpanel.collapsed .subpanel-body {
    display: none;
}

.subpanel-titlebar {
    background: var(--corvaxa-blue);
    color: var(--text-light);
    padding: 4px 8px 4px 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--corvaxa-blue-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 18px;
}

.subpanel-titlebar h4,
.subpanel-titlebar h5,
.subpanel-titlebar h6 {
    flex: 1;
    margin: 0;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-light);
}

.subpanel-add-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 18px;
    margin-left: auto;
    padding: 2px 8px;
    border: 1px outset #c0c0c0;
    background: linear-gradient(to bottom, #f0f0f0, #d4d0c8);
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    font-size: 0.75rem; /* Scales with html font-size */
    line-height: 1;
    font-weight: normal;
}

.subpanel-add-link:hover {
    background: linear-gradient(to bottom, #ffffff, #e8e8e8);
    border-color: #808080;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.subpanel-add-link:active {
    border: 1px inset #c0c0c0;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
    background: linear-gradient(to bottom, #d4d0c8, #c0c0c0);
}

.subpanel-add-link:focus {
    outline: 1px dotted #000000;
    outline-offset: 1px;
}

.subpanel-add-label {
    display: inline-block;
    line-height: 1;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subpanel-toggle {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    color: #000000;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 4px;
    margin-right: 8px;
    font-size: 0.7rem;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080;
    font-weight: bold;
}

.subpanel-toggle:hover,
.subpanel-toggle:focus {
    background: #d4d0c8;
    border: 2px outset #c0c0c0;
    outline: none;
    box-shadow: 
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080;
}

.subpanel-toggle:active {
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    box-shadow: 
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff;
}

.subpanel-toggle-icon {
    display: inline-block;
    font-weight: bold;
}

.subpanel-toggle-icon.down::before {
    content: '▼';
}

.subpanel-toggle-icon.up::before {
    content: '▲';
}

.subpanel-body {
    padding: 8px;
    background: #ffffff;
}

.subpanel-body.scrollable {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.subpanel-body.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.subpanel-body.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.subpanel-body.columns-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* GEV Home: Flowchart layout - three phases with connecting arrows */
.home-main {
    padding: 10px;
}
.home-main .panel {
    max-width: 100%;
}
.home-flow-section-body {
    padding: 10px;
}
.home-flow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    justify-content: center;
}
.home-phase-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}
.home-flow-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    min-height: 160px;
    padding: 2rem 3rem;
    border: 3px solid var(--solaris-grey-dark);
    background: var(--solaris-grey);
    box-shadow: inset 2px 2px 0 var(--solaris-grey-light), inset -2px -2px 0 var(--solaris-grey-dark);
    text-decoration: none;
    color: inherit;
    gap: 0.5rem;
}
.home-flow-box:hover,
.home-flow-box:focus {
    background: var(--solaris-grey-light);
    border-color: var(--corvaxa-blue);
    outline: 3px solid var(--corvaxa-blue);
    outline-offset: 3px;
}
.home-flow-label {
    font-size: 1.75rem;
    font-weight: 500;
    text-align: center;
}
.home-flow-number {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
}
.home-flow-box-hubs .home-flow-number {
    font-size: inherit;
    font-weight: 500;
}
.home-flow-box-hubs {
    font-size: 1.75rem;
}
.home-flow-connector {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 6rem;
    min-width: 5rem;
    margin: 0 2.5rem;
    position: relative;
}
.home-flow-connector-double {
    width: 6rem;
}
.home-flow-connector-double .home-flow-line {
    height: 4px;
    width: 100%;
    background: var(--solaris-grey-dark);
    margin: 4px 0;
}
.home-flow-connector:not(.home-flow-connector-double) .home-flow-line {
    height: 4px;
    width: 100%;
    background: var(--solaris-grey-dark);
}
.home-flow-line {
    position: relative;
}
.home-flow-line::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: var(--solaris-grey-dark);
    border-width: 10px 0 10px 16px;
    margin-left: 0.5rem;
}
.home-flow-connector-double .home-flow-line::after {
    right: -0.75rem;
}

html.color-scheme-dark .home-flow-box {
    background: #2d2d2d;
    border-color: #4a4a4a;
}
html.color-scheme-dark .home-flow-box:hover,
html.color-scheme-dark .home-flow-box:focus {
    background: #3a3a3a;
}
html.color-scheme-dark .home-flow-connector .home-flow-line,
html.color-scheme-dark .home-flow-connector-double .home-flow-line {
    background: #4a4a4a;
}
html.color-scheme-dark .home-flow-line::after {
    border-left-color: #4a4a4a;
}
html.color-scheme-greenscreen .home-flow-box {
    background: #0d2d0d;
    border-color: #1a5a1a;
}
html.color-scheme-greenscreen .home-flow-box:hover,
html.color-scheme-greenscreen .home-flow-box:focus {
    background: #1a5a1a;
}
html.color-scheme-greenscreen .home-flow-connector .home-flow-line,
html.color-scheme-greenscreen .home-flow-connector-double .home-flow-line {
    background: #1a5a1a;
}
html.color-scheme-greenscreen .home-flow-line::after {
    border-left-color: #1a5a1a;
}

/* Square widget component (based on subpanel, but fixed size and not collapsible) */
.home-widgets-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 12px 0;
}

/* Grid layout for dashboard (7×3 large, 14×6 small): fixed height per widget, not % of section. */
.home-widgets-container.home-widgets-grid {
    display: grid;
    align-content: start;
    margin: 12px 0;
}

/* Home panel: variable height based on content (allow smaller than default 200px, but not collapse) */
.home-panel .panel-body {
    min-height: min-content;
}
/* Fixed height per widget type - link/number = 200px, gauge list = 240px, large = 340px */
.home-widgets-container.home-widgets-grid .home-widget {
    width: 100%;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.home-widgets-container.home-widgets-grid .home-widget .home-widget-titlebar {
    flex-shrink: 0;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
}
.home-widgets-container.home-widgets-grid .home-widget .home-widget-body {
    flex: 1;
    min-height: 0;
    min-width: 100%;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.home-widgets-container.home-widgets-grid .home-widget .home-widget-body > .home-widget-link {
    flex: 1;
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.home-widgets-container.home-widgets-grid .home-widget.home-widget-link,
.home-widgets-container.home-widgets-grid .home-widget.home-widget-gauge:not(.home-widget-gauge-list) {
    height: 200px;
}
.home-widgets-container.home-widgets-grid .home-widget.home-widget-gauge-list {
    height: 240px;
}
.home-widgets-container.home-widgets-grid .home-widget-wide {
    width: 100%;
}
.home-widgets-container.home-widgets-grid .home-widget-wide.home-widget-link,
.home-widgets-container.home-widgets-grid .home-widget-wide.home-widget-gauge:not(.home-widget-gauge-list) {
    height: 200px;
}
.home-widgets-container.home-widgets-grid .home-widget-wide.home-widget-gauge-list {
    height: 240px;
}
.home-widgets-container.home-widgets-grid .home-widget-large {
    width: 100%;
    height: 340px;
}

.home-widget {
    width: 250px;
    height: 250px;
    border-width: 2px;
    border-style: solid;
    border-top-color: #ffffff;
    border-left-color: var(--solaris-grey-light);
    border-right-color: var(--solaris-grey-dark);
    border-bottom-color: var(--solaris-grey-dark);
    background: #C0C0C0;
    box-shadow: 
        inset -1px -1px 0 var(--solaris-grey),
        inset 1px 1px 0 var(--solaris-grey-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    container-type: size;
    container-name: home-widget;
}

/* Wide = 2 panels + gap (250 + 12 + 250) */
.home-widget-wide {
    width: 512px;
}

/* Large = 2 wide × 2 tall (512 × 512) */
.home-widget-large {
    width: 512px;
    height: 512px;
}

.home-widget-titlebar {
    background: var(--corvaxa-blue);
    color: var(--text-light);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--corvaxa-blue-light);
    min-height: 32px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.home-widget-titlebar h4,
.home-widget-titlebar h5,
.home-widget-titlebar h6 {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-light);
}

.home-widget-body {
    padding: 8px;
    background: #C0C0C0;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* List gauges: align to top of box, list area fills remaining space */
.home-widget-body:has(.home-widget-gauge-list-wrap) {
    align-items: stretch;
    justify-content: flex-start;
}
.home-widget-body:has(.home-widget-gauge-list-wrap) .home-widget-gauge {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.home-widget-body:has(.home-widget-gauge-list-wrap) .home-widget-gauge-list-wrap {
    flex: 1;
    min-height: 0;
}

.home-widget-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.home-widget-link:hover {
    background-color: #f0f0f0;
}

.home-widget-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 8px;
    color: #000000;
}
.home-widget-icon img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

html.color-scheme-dark .home-widget-icon {
    color: #e0e0e0 !important;
}

html.color-scheme-greenscreen .home-widget-icon {
    filter: grayscale(100%) brightness(0.8) sepia(100%) hue-rotate(70deg) saturate(500%) brightness(1.2);
}

html.color-scheme-dark .home-widget-body {
    background: #2d2d2d !important;
}

html.color-scheme-greenscreen .home-widget-body {
    background: #0d2d0d !important;
}

html.color-scheme-dark .home-widget {
    background: #2d2d2d !important;
    border-color: #4a4a4a !important;
    box-shadow: none !important;
}

html.color-scheme-greenscreen .home-widget {
    background: #0d2d0d !important;
    border: 1px solid #1a5a1a !important;
    border-top-color: #1a5a1a !important;
    border-left-color: #1a5a1a !important;
    border-right-color: #1a5a1a !important;
    border-bottom-color: #1a5a1a !important;
    border-style: solid !important;
    border-width: 1px !important;
    box-shadow: none !important;
}

html.color-scheme-dark .home-widget-label {
    color: #e0e0e0 !important;
}

html.color-scheme-greenscreen .home-widget-label {
    color: #00ff00 !important;
}

html.color-scheme-dark .home-widget-link {
    color: #e0e0e0 !important;
}

html.color-scheme-greenscreen .home-widget-link {
    color: #00ff00 !important;
}

html.color-scheme-dark .home-widget-link:hover {
    background-color: #3a3a3a !important;
}

html.color-scheme-greenscreen .home-widget-link:hover {
    background-color: #1a5a1a !important;
}

.home-widget-label {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: #000000;
}

/* Gauge widget: number fills available space */
.home-widget-link-gauge {
    min-height: 0;
}
.home-widget-gauge-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    font-size: 4.9rem;
    font-weight: bold;
    line-height: 1;
    color: #000000;
    overflow: hidden;
    box-sizing: border-box;
}
/* Scale down font by digit count so 4+ digit numbers fit without horizontal scroll */
.home-widget-gauge-number[data-digits="4"] { font-size: 3.8rem; }
.home-widget-gauge-number[data-digits="5"] { font-size: 3rem; }
.home-widget-gauge-number[data-digits="6"] { font-size: 2.4rem; }
.home-widget-gauge-number[data-digits="7"] { font-size: 2rem; }
.home-widget-gauge-number[data-digits="8"],
.home-widget-gauge-number[data-digits="9"],
.home-widget-gauge-number[data-digits="10"] { font-size: 1.7rem; }
@supports (font-size: 45cqh) {
    .home-widget-gauge-number {
        font-size: 45cqh;
    }
    .home-widget-gauge-number[data-digits="4"] { font-size: 35cqh; }
    .home-widget-gauge-number[data-digits="5"] { font-size: 28cqh; }
    .home-widget-gauge-number[data-digits="6"] { font-size: 23cqh; }
    .home-widget-gauge-number[data-digits="7"] { font-size: 19cqh; }
    .home-widget-gauge-number[data-digits="8"],
    .home-widget-gauge-number[data-digits="9"],
    .home-widget-gauge-number[data-digits="10"] { font-size: 16cqh; }
}
html.color-scheme-dark .home-widget-gauge-number {
    color: #e0e0e0;
}
html.color-scheme-greenscreen .home-widget-gauge-number {
    color: #00ff00;
}

/* Gauge widget: list as scrollable table */
.home-widget-gauge-list-wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.home-widget-gauge-list {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.65rem;
}
.home-widget-gauge-list th,
.home-widget-gauge-list td {
    padding: 2px 4px;
    text-align: left;
    border: 1px solid #808080;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-widget-gauge-list th {
    background: #c0c0c0;
    font-weight: bold;
    position: sticky;
    top: 0;
}
.home-widget-gauge-list tbody tr:nth-child(even) {
    background: #e8e8e8;
}
html.color-scheme-dark .home-widget-gauge-list th,
html.color-scheme-dark .home-widget-gauge-list td {
    border-color: #4a4a4a;
}
html.color-scheme-dark .home-widget-gauge-list th {
    background: #3a3a3a;
}
html.color-scheme-dark .home-widget-gauge-list tbody tr:nth-child(even) {
    background: #353535;
}
html.color-scheme-greenscreen .home-widget-gauge-list th,
html.color-scheme-greenscreen .home-widget-gauge-list td {
    border-color: #1a5a1a;
}
html.color-scheme-greenscreen .home-widget-gauge-list th {
    background: #0d4d0d;
}
html.color-scheme-greenscreen .home-widget-gauge-list tbody tr:nth-child(even) {
    background: #0a3d0a;
}

/* Windows 95 style tabs – theme-aware via CSS variables */
.tab-container {
    border: 1px solid var(--tab-border, #808080);
    background: var(--tab-bg, var(--solaris-grey));
    margin: 12px 0;
    padding: 2px;
}

.tab-header {
    display: flex;
    background: var(--tab-bg, var(--solaris-grey));
    padding: 0;
    margin: 0;
    gap: 0;
    border-bottom: 1px solid var(--tab-border, #808080);
}

.tab-button {
    background: var(--tab-bg, var(--solaris-grey));
    border: 1px outset var(--tab-bg, var(--solaris-grey));
    border-bottom: none;
    padding: 4px 16px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--tab-text, var(--text-dark));
    text-transform: none;
    position: relative;
    margin: 2px 1px 0 1px;
    min-width: 100px;
    text-align: center;
    font-family: 'MS Sans Serif', 'MS Shell Dlg', sans-serif;
}

.tab-button:hover {
    background: var(--tab-hover, var(--solaris-grey-light));
}

.tab-button:active {
    border: 1px inset var(--tab-bg, var(--solaris-grey));
    background: var(--tab-bg, var(--solaris-grey));
}

.tab-button.active {
    background: var(--tab-content-bg, #ffffff);
    border: 1px inset var(--tab-border, #808080);
    border-bottom: 1px solid var(--tab-content-bg, #ffffff);
    margin: 0 1px -1px 1px;
    padding: 5px 16px 6px 16px;
    z-index: 1;
    position: relative;
    font-weight: normal;
}

.tab-content {
    display: none;
    padding: 12px;
    background: var(--tab-content-bg, #ffffff);
    border-top: 1px solid var(--tab-border, #808080);
    margin-top: -1px;
}

.tab-content.active {
    display: block;
}

/* Dark mode: tab area matches panel/subpanel theme */
html.color-scheme-dark .tab-container,
html.color-scheme-dark .tab-header {
    background: #2d2d2d;
    border-color: #4a4a4a;
}

html.color-scheme-dark .tab-button {
    background: #2d2d2d;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

html.color-scheme-dark .tab-button:hover {
    background: #3a3a3a;
}

html.color-scheme-dark .tab-button:active {
    background: #2d2d2d;
}

html.color-scheme-dark .tab-button.active {
    background: #2d2d2d;
    border-color: #4a4a4a;
    border-bottom-color: #2d2d2d;
    color: #e0e0e0;
}

html.color-scheme-dark .tab-content {
    background: #2d2d2d;
    border-top-color: #4a4a4a;
    color: #e0e0e0;
}

/* Greenscreen: tab area matches terminal theme */
html.color-scheme-greenscreen .tab-container,
html.color-scheme-greenscreen .tab-header {
    background: #0d2d0d;
    border-color: #1a5a1a;
}

html.color-scheme-greenscreen .tab-button {
    background: #0d2d0d;
    border-color: #1a5a1a;
    color: #00ff00;
}

html.color-scheme-greenscreen .tab-button:hover {
    background: #0d3d0d;
}

html.color-scheme-greenscreen .tab-button:active {
    background: #0d2d0d;
}

html.color-scheme-greenscreen .tab-button.active {
    background: #0d2d0d;
    border-color: #1a5a1a;
    border-bottom-color: #0d2d0d;
    color: #00ff00;
}

html.color-scheme-greenscreen .tab-content {
    background: #0d2d0d;
    border-top-color: #1a5a1a;
    color: #00ff00;
}

.subpanel-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px outset #c0c0c0;
    background: #ffffff;
    font-size: 0.85rem;
    box-shadow: 
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff;
}

.subpanel-body table thead {
    background: #c0c0c0;
}

.subpanel-body table thead tr {
    border-bottom: 2px inset #808080;
    box-shadow: inset 0 -1px 0 #808080;
}

.subpanel-body table th {
    text-align: left;
    padding: 4px 8px;
    font-weight: bold;
    background: linear-gradient(to bottom, #d4d0c8, #c0c0c0);
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.3),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2);
}

.subpanel-body table th:last-child {
    border-right: none;
}

.subpanel-body table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #c0c0c0;
}

.subpanel-body table tbody tr:hover {
    background: #e8e8e8;
}

.subpanel-body table tbody tr:last-child {
    border-bottom: none;
}

.subpanel-body table td {
    padding: 4px 8px;
    border-right: 1px solid #c0c0c0;
    background: inherit;
}

.subpanel-body table td:last-child {
    border-right: none;
}

/* Windows NT-style table for incident lists */
.panel-body table.nt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px outset #c0c0c0;
    background: #ffffff;
    font-size: 0.85rem;
    box-shadow: 
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff;
}

.panel-body table.nt-table thead {
    background: #c0c0c0;
}

.panel-body table.nt-table thead tr {
    border-bottom: 2px inset #808080;
    box-shadow: inset 0 -1px 0 #808080;
}

.panel-body table.nt-table th {
    padding: 6px 10px;
    text-align: left;
    font-weight: bold;
    background: linear-gradient(to bottom, #d4d0c8, #c0c0c0);
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.3),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2);
}

.panel-body table.nt-table th:last-child {
    border-right: none;
}

.panel-body table.nt-table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #c0c0c0;
}

.panel-body table.nt-table tbody tr:hover {
    background: #e8e8e8;
}

.panel-body table.nt-table tbody tr:last-child {
    border-bottom: none;
}

.panel-body table.nt-table td {
    padding: 6px 10px;
    border-right: 1px solid #c0c0c0;
    background: inherit;
}

.panel-body table.nt-table td:last-child {
    border-right: none;
}

.panel-body table.nt-table tbody tr td {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #c0c0c0;
}

.panel-body table.nt-table tbody tr:first-child td {
    border-top: none;
}

.panel-body table.nt-table a {
    color: #0000ff;
    text-decoration: underline;
}

.panel-body table.nt-table a:hover {
    color: #ff0000;
}

/* Table wrapper for horizontal scroll (GEV and other wide tables) */
.panel-body .table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

/* GEV subsystem embedded: remove white wrapper so content blends with work-area */
.work-area > main.dashboard-main.panel-body {
    background: transparent;
}

/* GEV subsystem: table modifiers and row types (use nt-table base) */
.panel-body .table-wrap table.nt-table {
    min-width: 100%;
}
.panel-body table.nt-table.nt-table-auto {
    table-layout: auto;
}
.panel-body table.nt-table.nt-table-auto th,
.panel-body table.nt-table.nt-table-auto th:nth-child(n) {
    width: auto;
}
.panel-body table.nt-table tr.job-row-test-data {
    opacity: 0.5;
}
.panel-body table.nt-table tr.job-row-test-data td {
    color: #808080;
}
.panel-body table.nt-table tr.job-row-test-data:hover {
    opacity: 0.85;
}
.panel-body table.nt-table tr.day-separator {
    background: #e8e8e8;
    border-top: 1px solid #c0c0c0;
}
.panel-body table.nt-table tr.day-separator td {
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #404040;
}
.panel-body table.nt-table .our-status-select {
    min-width: 8rem;
    padding: 2px 4px;
    font-size: 0.9rem;
}
.panel-body table.nt-table td:last-child,
.panel-body table.nt-table th:last-child {
    text-align: right;
}

/* GEV Report List: expandable rows */
.panel-body table.nt-table .report-expand-col {
    width: 2rem;
    padding: 4px 8px !important;
}
.panel-body table.nt-table .report-row {
    cursor: pointer;
}
.panel-body table.nt-table .report-expand-icon {
    display: inline-block;
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.panel-body table.nt-table .report-row-expanded .report-expand-icon {
    transform: rotate(-90deg);
}
.panel-body .report-lifecycle-cell {
    padding: 0 !important;
    background: #f0f0f0;
    border-left: 3px solid #808080;
}
.panel-body .report-lifecycle {
    padding: 8px 12px;
}
.panel-body .report-lifecycle-table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border: 1px solid #c0c0c0;
}
.panel-body .report-lifecycle-table th,
.panel-body .report-lifecycle-table td {
    padding: 4px 8px;
    text-align: left;
}
.panel-body .report-lifecycle-table th:nth-child(1),
.panel-body .report-lifecycle-table td:nth-child(1) { width: 200px; min-width: 200px; }
.panel-body .report-lifecycle-table th:nth-child(2),
.panel-body .report-lifecycle-table td:nth-child(2) { width: 200px; min-width: 200px; }
.panel-body .report-lifecycle-table th:nth-child(3),
.panel-body .report-lifecycle-table td:nth-child(3) { width: 500px; min-width: 500px; text-align: left !important; }

/* GEV Client Hubs: table cell padding and View Reports button width */
.client-hubs-table th,
.client-hubs-table td {
    padding: 2px;
}
.btn-view-reports {
    display: inline-block;
    width: 10rem;
    min-width: 10rem;
    max-width: 10rem;
    text-align: center;
    box-sizing: border-box;
}
.panel-body .report-lifecycle-table th {
    background: #e0e0e0;
    font-weight: 600;
}

/* GEV Client Hubs: report count link and spinner */
.panel-body .report-count-cell {
    position: relative;
}
.panel-body .report-count-link {
    color: #0000ff;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
}
.panel-body .report-count-link:hover {
    color: #ff0000;
}
.panel-body .report-count-spinner,
.panel-body .media-count-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}
.panel-body .report-count-value {
    margin-left: 0.25rem;
}

/* GEV Client Hub Reports: Media/Serial status cells - tooltip on whole cell, red/green bold */
.media-cell.media-match-ok,
.serial-cell.serial-check-ok {
    color: #16a34a;
    font-weight: 700;
}
.media-cell.media-match-x,
.serial-cell.serial-check-x {
    color: #dc2626;
    font-weight: 700;
}
.media-cell,
.serial-cell {
    cursor: help;
    min-width: 2.5rem;
    text-align: center;
}
.media-cell .status-icon,
.serial-cell .status-icon {
    display: block;
    font-weight: 700;
}

/* GEV Uploader: Two-column layout – narrow fields left, PDF right */
.uploader-main-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}
.uploader-fields-column {
    flex: 0 0 calc(34% - 0.75rem);
    min-width: 0;
}
.uploader-fields-column .subpanel .detail-grid {
    grid-template-columns: 160px 1fr;
}
.uploader-pdf-column {
    flex: 0 0 calc(66% - 0.75rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.uploader-pdf-column .subpanel {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.uploader-pdf-column .subpanel-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.uploader-pdf-column .uploader-drop-area {
    flex: 1;
    min-height: 200px;
    width: 100%;
}
.uploader-pdf-column .uploader-drop-area .drop-label {
    width: 100%;
    height: 100%;
    min-height: 160px;
}
.uploader-pdf-column .uploader-drop-area.home-widget {
    flex: 1 1 auto;
}

/* GEV Uploader: PDF drop zone uses home-widget (same as home page) */
.panel-body .uploader-drop-area.home-widget {
    flex-shrink: 0;
}
.panel-body .uploader-drop-area .home-widget-body form {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
}
.panel-body .uploader-drop-area {
    position: relative;
}
/* When PDF is dropped: show inline PDF preview */
.panel-body .uploader-drop-area.has-pdf {
    display: flex;
}
.panel-body .uploader-drop-area.has-pdf .drop-label,
.panel-body .uploader-drop-area.has-pdf .home-widget-body form,
.panel-body .uploader-drop-area.has-pdf .drop-zone-file-message {
    display: none !important;
}
.panel-body .uploader-drop-area .pdf-upload-preview-wrap {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}
.panel-body .uploader-drop-area.has-pdf .pdf-upload-preview-wrap {
    display: flex;
}
.panel-body .uploader-drop-area.has-pdf .pdf-upload-preview-wrap.hidden {
    display: none;
}
.panel-body .uploader-drop-area .pdf-upload-preview-wrap .pdf-upload-preview-pages {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.panel-body .uploader-drop-area .file-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.panel-body .uploader-drop-area .home-widget-body .drop-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    padding: 1rem;
    box-sizing: border-box;
    border: 2px dashed #808080;
    background: #f5f5f5;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.panel-body .uploader-drop-area .home-widget-body .drop-label:hover,
.panel-body .uploader-drop-area .home-widget-body .drop-label.drop-over {
    border-color: #316AC5;
    background: #e8f0fa;
}
.panel-body .uploader-drop-area.drop-over {
    border-color: #316AC5 !important;
}
.panel-body .uploader-drop-area.drop-over .home-widget-body {
    background: #e8f0fa;
}
.panel-body .uploader-drop-area .drop-text {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}
/* GEV Uploader: Image drop zone + thumbnails */
.panel-body .image-drop-and-thumbs {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.panel-body .image-drop-zone {
    position: relative;
    flex: 0 0 280px;
    width: 280px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px dashed #808080;
    background: #f5f5f5;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.panel-body .image-drop-zone:hover,
.panel-body .image-drop-zone.drop-over {
    border-color: #316AC5;
    background: #e8f0fa;
}
.panel-body .image-drop-zone .drop-text {
    color: #666;
    font-size: 0.9rem;
}
.panel-body .image-drop-zone .file-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.panel-body .image-thumb-list {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.panel-body .image-thumb-item {
    flex: 0 0 auto;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px outset #c0c0c0;
    background: #ffffff;
    padding: 8px;
}
.panel-body .image-thumb-item.image-thumb-item-primary {
    border-color: #316AC5;
    background: #e8f0fa;
}
.panel-body .image-thumb-placeholder {
    align-items: center;
    justify-content: center;
    min-height: 100px;
}
.panel-body .image-thumb-placeholder-text {
    font-size: 0.85rem;
    color: #666;
}
.panel-body .image-thumb-placeholder-text.error {
    color: #b91c1c;
}
.panel-body .image-thumb-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #f0f0f0;
    cursor: pointer;
}
.panel-body .image-thumb-filename {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    word-break: break-all;
    max-width: 100%;
}
.panel-body .image-thumb-name {
    width: 100%;
    padding: 2px 4px;
    font-size: 0.85rem;
    margin-top: 4px;
}
.panel-body .uploader-field-error {
    display: none;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 4px;
}
.panel-body .uploader-field-error:not(:empty) {
    display: block;
}
.panel-body .hidden {
    display: none !important;
}

/* ========== GEV / Subsystem Modals (Corvaxa Windows NT style) ========== */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal.hidden {
    display: none !important;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}
.modal-content {
    position: relative;
    background: #ffffff;
    border: 2px outset #c0c0c0;
    padding: 16px 20px;
    max-width: 32rem;
    width: 90%;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080,
        4px 4px 12px rgba(0, 0, 0, 0.4);
}
.modal-content h2,
.modal-content h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    background: #c0c0c0;
    color: #000000;
    padding: 6px 10px;
    margin: -16px -20px 12px -20px;
    border-bottom: 2px inset #808080;
}
.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #c0c0c0;
    border: 2px outset #808080;
    padding: 4px 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    z-index: 1;
}
.modal-close:hover {
    background: #d4d0c8;
}

/* PDF preview modal */
.pdf-preview-modal-content {
    max-width: 90vw;
    width: 56rem;
    max-height: 90vh;
    height: 80vh;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
}
.pdf-preview-embed,
.pdf-preview-iframe {
    flex: 1;
    min-height: 400px;
    width: 100%;
    border: 2px inset #c0c0c0;
}
.pdf-preview-pages {
    flex: 1;
    min-height: 400px;
    overflow: auto;
    background: #525659;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.pdf-preview-page {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.pdf-preview-page canvas {
    display: block;
}

/* Workflo+ import progress modal */
.workflo-import-modal-content h2 {
    margin: -16px -20px 12px -20px;
    padding: 8px 20px;
    font-size: 1rem;
}
.workflo-import-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.workflo-import-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
}
.workflo-import-status {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    display: inline-block;
}
.workflo-import-status-pending {
    position: relative;
}
.workflo-import-status-pending::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #316AC5;
    border-top-color: transparent;
    border-radius: 50%;
    animation: modal-spinner 0.7s linear infinite;
}
@keyframes modal-spinner {
    to { transform: rotate(360deg); }
}
.workflo-import-status-done {
    color: #228b22;
    font-weight: bold;
    line-height: 1;
}
.workflo-import-status-done::before {
    content: '✓';
}

/* Image modal */
.image-modal-content {
    max-width: 90vw;
    width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.image-modal-content h2,
.image-modal-content h3 {
    margin: -16px -20px 12px -20px;
}
.image-modal-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.image-modal-prev,
.image-modal-next {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px outset #c0c0c0;
    background: #d4d0c8;
    color: #000000;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.image-modal-prev:hover:not(:disabled),
.image-modal-next:hover:not(:disabled) {
    background: #e8e8e8;
    border-color: #808080;
}
.image-modal-nav .image-modal-prev:disabled,
.image-modal-nav .image-modal-next:disabled {
    opacity: 0.45 !important;
    background: #c0c0c0 !important;
    border-color: #a0a0a0 !important;
    color: #666666 !important;
    cursor: not-allowed !important;
}
.image-modal-preview {
    flex: 1 1 auto;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px inset #c0c0c0;
    padding: 12px;
}
.image-modal-preview-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 60vh;
}
.image-modal-img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    cursor: pointer;
    transform-origin: center center;
}
.image-modal-content label {
    display: block;
    margin: 12px 0 4px;
    font-size: 0.9rem;
    font-weight: bold;
}
.image-modal-content label:first-of-type {
    margin-top: 12px;
}
.image-modal-content .form-input {
    width: 100%;
    margin-bottom: 8px;
}
.image-modal-content .image-modal-textarea {
    min-height: 4rem;
    resize: vertical;
}
.image-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.image-modal-rotate-left,
.image-modal-rotate-right {
    min-width: 10rem;
}
.image-modal-actions-spacer {
    flex: 1 1 auto;
    min-width: 2rem;
}
.image-modal-primary-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}
.image-modal-primary-wrap input {
    margin: 0;
}
.image-modal-delete {
    margin-left: 8px;
}
.btn-delete {
    padding: 6px 12px;
    background: #c0c0c0;
    border: 2px outset #808080;
    color: #000000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.9rem;
}
.btn-delete:hover {
    background: #d4d0c8;
}
.btn-delete .icon-trash {
    width: 1.1rem;
    height: 1.1rem;
}

/* Send to QC Hub progress modal */
.send-to-qc-hub-modal-content {
    max-width: 52rem;
    max-height: 90vh;
}
.send-to-qc-hub-modal-content h2 {
    margin: -16px -20px 12px -20px;
    padding: 8px 20px;
}
.send-to-qc-hub-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}
.send-to-qc-hub-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #c0c0c0;
}
.send-to-qc-hub-step:last-child {
    border-bottom: none;
}
.send-to-qc-hub-detail {
    width: 100%;
    flex: 0 0 100%;
    font-size: 0.85rem;
    color: #666;
    margin-left: 2rem;
}
.send-to-qc-hub-status {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
    line-height: 1.5rem;
    font-size: 1rem;
    color: #666;
}
.send-to-qc-hub-status-done {
    color: #228b22;
    font-weight: bold;
}
.send-to-qc-hub-status-running {
    color: #316AC5;
    position: relative;
}
.send-to-qc-hub-status-running::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #316AC5;
    border-top-color: transparent;
    border-radius: 50%;
    animation: modal-spinner 0.7s linear infinite;
}
.send-to-qc-hub-status-fail {
    color: #b91c1c;
    font-weight: bold;
}
.send-to-qc-hub-detail-error {
    color: #b91c1c;
}
.send-to-qc-hub-label {
    flex: 1 1 auto;
    font-size: 0.95rem;
}
.send-to-qc-hub-run {
    flex: 0 0 auto;
}
.modal-content .muted {
    color: #666;
    font-size: 0.9rem;
}
/* GEV button styles (Corvaxa aesthetic) */
.btn-primary {
    padding: 6px 16px;
    background: linear-gradient(to bottom, #4A7BC8, #316AC5);
    border: 2px outset #808080;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover {
    background: linear-gradient(to bottom, #5a8bd8, #417ad5);
}
.btn-secondary {
    padding: 6px 16px;
    background: #d4d0c8;
    border: 2px outset #808080;
    color: #000000;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}
.btn-secondary:hover {
    background: #e8e8e8;
}

.subpanel-body table td {
    padding: 4px 8px;
}

.subpanel-body table td a {
    color: #0000ff;
    text-decoration: underline;
}

.subpanel-body table td a:hover {
    color: #ff0000;
}

/* Windows NT-style form inputs */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    border: 2px inset #c0c0c0;
    background: #ffffff;
    padding: 3px 4px;
    font-family: inherit;
    font-size: inherit;
    color: #000000;
    box-shadow: 
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: 1px dotted #000000;
    outline-offset: -1px;
    border-color: #000000;
}

input[type="text"]:disabled,
input[type="url"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
input[type="time"]:disabled,
textarea:disabled,
select:disabled {
    background: #c0c0c0;
    color: #808080;
    border: 2px inset #c0c0c0;
}

/* Windows NT-style buttons */
.task-save-button,
.note-submit-button,
button[type="submit"],
button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button) {
    border: 2px outset #c0c0c0;
    background: linear-gradient(to bottom, #f0f0f0, #d4d0c8);
    padding: 4px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    color: #000000;
    cursor: pointer;
    box-shadow: 
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080;
    font-weight: normal;
    text-transform: none;
    white-space: normal;
}

.task-save-button:hover,
.note-submit-button:hover,
button[type="submit"]:hover,
button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):hover {
    background: linear-gradient(to bottom, #ffffff, #e8e8e8);
    border-color: #808080;
}

.task-save-button:active,
.note-submit-button:active,
button[type="submit"]:active,
button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):active {
    border: 2px inset #c0c0c0;
    box-shadow: 
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff;
    background: linear-gradient(to bottom, #d4d0c8, #c0c0c0);
}

.task-save-button:focus,
.note-submit-button:focus,
button[type="submit"]:focus,
button[type="button"]:not(.function-icon):not(.subpanel-toggle):not(.submenu-button):focus {
    outline: 1px dotted #000000;
    outline-offset: 1px;
}

.permission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.permission-list > li {
    margin-bottom: 10px;
    border: 1px solid var(--solaris-grey);
    padding: 6px 8px;
    background: #f9f9f9;
}

.permission-flags {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    font-size: 0.8rem;
}

.permission-flags li {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.note-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.note-list li {
    border-bottom: 1px dashed var(--solaris-grey);
    padding: 6px 0;
}

.note-list li:last-child {
    border-bottom: none;
}

.task-notes-scroll {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.task-notes-scroll .note-text {
    line-height: 0.7;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--solaris-grey-dark);
    margin-bottom: 4px;
}

.note-add-form {
    margin: 0;
    padding: 0;
}

.task-edit-form {
    margin: 0;
    padding: 0;
}

.task-field-edit {
    width: 100%;
}

.task-field-edit select {
    cursor: pointer;
}

/* Funnel Steps - Illuminated Status Lights */
.funnel-steps-container {
    margin-bottom: 16px;
}

.funnel-steps-row {
    display: flex;
    gap: 3px;
    width: 100%;
    padding: 0;
}

.funnel-step-btn {
    flex: 1;
    padding: 8px 8px !important;
    border: 2px solid #808080 !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    min-width: 0;
    background: #c0c0c0 !important;
}

.funnel-step-label {
    line-height: 1.2;
}

.funnel-step-count {
    font-size: 1.1em;
    line-height: 1;
    font-weight: normal;
}

.funnel-step-inactive {
    background: linear-gradient(to bottom, #a0a0a0, #808080) !important;
    color: #505050 !important;
    border-color: #606060 !important;
    box-shadow: 
        inset 1px 1px 2px rgba(0, 0, 0, 0.3),
        inset -1px -1px 2px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
}

.funnel-step-inactive:hover {
    background: linear-gradient(to bottom, #b0b0b0, #909090) !important;
    border-color: #707070 !important;
    color: #606060 !important;
}

.funnel-step-active {
    background: linear-gradient(to bottom, #1a5fab, #0a3d82) !important;
    color: #ffffff !important;
    border-color: #0a3d82 !important;
    box-shadow: 
        inset 0 0 18px rgba(26, 95, 171, 0.9),
        inset 0 0 30px rgba(10, 61, 130, 0.7),
        0 0 12px rgba(10, 61, 130, 0.6),
        0 0 25px rgba(10, 61, 130, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    z-index: 1;
    position: relative;
}

.funnel-step-active:hover {
    background: linear-gradient(to bottom, #2a6fbb, #1a5fab) !important;
    box-shadow: 
        inset 0 0 20px rgba(42, 111, 187, 1),
        inset 0 0 35px rgba(26, 95, 171, 0.8),
        0 0 15px rgba(26, 95, 171, 0.7),
        0 0 30px rgba(26, 95, 171, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.funnel-step-btn:active {
    transform: scale(0.99);
}

.funnel-step-btn.disabled,
.funnel-step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #cccccc !important;
    color: #666666 !important;
    border-color: #999999 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.funnel-step-btn.disabled:hover,
.funnel-step-btn:disabled:hover {
    background: #cccccc !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Dark mode styles for funnel-step buttons - use same as light mode */
html.color-scheme-dark .funnel-step-active {
    background: linear-gradient(to bottom, #1a5fab, #0a3d82) !important;
    color: #ffffff !important;
    border-color: #0a3d82 !important;
    box-shadow: 
        inset 0 0 18px rgba(26, 95, 171, 0.9),
        inset 0 0 30px rgba(10, 61, 130, 0.7),
        0 0 12px rgba(10, 61, 130, 0.6),
        0 0 25px rgba(10, 61, 130, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    z-index: 1;
    position: relative;
}

html.color-scheme-dark .funnel-step-active:hover {
    background: linear-gradient(to bottom, #2a6fbb, #1a5fab) !important;
    box-shadow: 
        inset 0 0 20px rgba(42, 111, 187, 1),
        inset 0 0 35px rgba(26, 95, 171, 0.8),
        0 0 15px rgba(26, 95, 171, 0.7),
        0 0 30px rgba(26, 95, 171, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

html.color-scheme-dark .funnel-step-inactive {
    background: linear-gradient(to bottom, #a0a0a0, #808080) !important;
    color: #505050 !important;
    border-color: #606060 !important;
    box-shadow: 
        inset 1px 1px 2px rgba(0, 0, 0, 0.3),
        inset -1px -1px 2px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
}

html.color-scheme-dark .funnel-step-inactive:hover {
    background: linear-gradient(to bottom, #b0b0b0, #909090) !important;
    border-color: #707070 !important;
    color: #606060 !important;
}

/* Green screen mode styles for funnel-step buttons */
html.color-scheme-greenscreen .funnel-step-active {
    background: linear-gradient(to bottom, #7bff7b, #5af25a) !important;
    color: #0d3d0d !important;
    border-color: #2ea42e !important;
    box-shadow: 
        inset 0 0 18px rgba(123, 255, 123, 0.9),
        inset 0 0 30px rgba(90, 242, 90, 0.7),
        0 0 12px rgba(90, 242, 90, 0.6),
        0 0 25px rgba(90, 242, 90, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
    text-shadow: none !important;
}

html.color-scheme-greenscreen .funnel-step-active:hover {
    background: linear-gradient(to bottom, #8bff8b, #6aff6a) !important;
    box-shadow: 
        inset 0 0 20px rgba(139, 255, 139, 1),
        inset 0 0 35px rgba(106, 255, 106, 0.8),
        0 0 15px rgba(106, 255, 106, 0.7),
        0 0 30px rgba(106, 255, 106, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

html.color-scheme-greenscreen .funnel-step-inactive {
    background: linear-gradient(to bottom, #1a5a1a, #0d3d0d) !important;
    color: #00ff00 !important;
    border-color: #1a5a1a !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.color-scheme-greenscreen .funnel-step-inactive:hover {
    background: linear-gradient(to bottom, #2a7a2a, #1a5a1a) !important;
    border-color: #2a7a2a !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .funnel-step-btn {
    border-color: #1a5a1a !important;
}

/* Green screen mode: system notes background */
html.color-scheme-greenscreen li[style*="background: #d0d0d0"],
html.color-scheme-greenscreen li[style*="background:#d0d0d0"],
html.color-scheme-greenscreen li[style*="background-color: #d0d0d0"],
html.color-scheme-greenscreen li[style*="background-color:#d0d0d0"] {
    background: #0d3d0d !important;
    background-color: #0d3d0d !important;
    color: #00ff00 !important;
}

/* Dark mode styles for accident form fieldsets - placed after other rules to ensure override */
html.color-scheme-dark .accident-form-fieldset,
html.color-scheme-dark .subpanel-body .accident-form-fieldset,
html.color-scheme-dark .panel-body .accident-form-fieldset {
    background: #2d2d2d !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark .accident-form-fieldset legend,
html.color-scheme-dark .subpanel-body .accident-form-fieldset legend,
html.color-scheme-dark .panel-body .accident-form-fieldset legend {
    color: #e0e0e0 !important;
}

/* Green screen mode styles for accident form fieldsets - placed after other rules to ensure override */
html.color-scheme-greenscreen .accident-form-fieldset,
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset,
html.color-scheme-greenscreen .panel-body .accident-form-fieldset {
    background: #0d3d0d !important;
    border-color: #1a5a1a !important;
    border-style: solid !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .accident-form-fieldset legend,
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset legend,
html.color-scheme-greenscreen .panel-body .accident-form-fieldset legend {
    color: #00ff00 !important;
}

/* Override hardcoded background colors inside fieldsets - dark mode */
html.color-scheme-dark .accident-form-fieldset [style*="background: #f5f5f5"],
html.color-scheme-dark .accident-form-fieldset [style*="background:#f5f5f5"],
html.color-scheme-dark .accident-form-fieldset [style*="background-color: #f5f5f5"],
html.color-scheme-dark .accident-form-fieldset [style*="background-color:#f5f5f5"],
html.color-scheme-dark .subpanel-body .accident-form-fieldset [style*="background: #f5f5f5"],
html.color-scheme-dark .subpanel-body .accident-form-fieldset [style*="background:#f5f5f5"],
html.color-scheme-dark .subpanel-body .accident-form-fieldset [style*="background-color: #f5f5f5"],
html.color-scheme-dark .subpanel-body .accident-form-fieldset [style*="background-color:#f5f5f5"] {
    background: #2d2d2d !important;
    background-color: #2d2d2d !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark .accident-form-fieldset [style*="color: #666"],
html.color-scheme-dark .accident-form-fieldset [style*="color:#666"],
html.color-scheme-dark .subpanel-body .accident-form-fieldset [style*="color: #666"],
html.color-scheme-dark .subpanel-body .accident-form-fieldset [style*="color:#666"] {
    color: #b0b0b0 !important;
}

/* Override hardcoded background colors inside fieldsets - green screen mode */
html.color-scheme-greenscreen .accident-form-fieldset [style*="background: #f5f5f5"],
html.color-scheme-greenscreen .accident-form-fieldset [style*="background:#f5f5f5"],
html.color-scheme-greenscreen .accident-form-fieldset [style*="background-color: #f5f5f5"],
html.color-scheme-greenscreen .accident-form-fieldset [style*="background-color:#f5f5f5"],
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset [style*="background: #f5f5f5"],
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset [style*="background:#f5f5f5"],
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset [style*="background-color: #f5f5f5"],
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset [style*="background-color:#f5f5f5"] {
    background: #0d3d0d !important;
    background-color: #0d3d0d !important;
    border-color: #1a5a1a !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen .accident-form-fieldset [style*="color: #666"],
html.color-scheme-greenscreen .accident-form-fieldset [style*="color:#666"],
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset [style*="color: #666"],
html.color-scheme-greenscreen .subpanel-body .accident-form-fieldset [style*="color:#666"] {
    color: #00ff00 !important;
}

/* Modules page – Available modules fieldset theme overrides */
html.color-scheme-dark .available-modules-fieldset {
    background: #2d2d2d !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}
html.color-scheme-dark .available-modules-fieldset legend {
    color: #e0e0e0 !important;
}
html.color-scheme-dark .available-modules-fieldset .module-row {
    background: #3a3a3a !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}
html.color-scheme-dark .available-modules-fieldset .module-row strong,
html.color-scheme-dark .available-modules-fieldset .module-row p {
    color: #e0e0e0 !important;
}
html.color-scheme-dark .available-modules-fieldset .module-row [style*="color: #2e7d32"],
html.color-scheme-dark .available-modules-fieldset .module-row [style*="color:#2e7d32"] {
    color: #7cb87e !important;
}
html.color-scheme-dark .available-modules-fieldset .module-row [style*="color: #d32f2f"],
html.color-scheme-dark .available-modules-fieldset .module-row [style*="color:#d32f2f"] {
    color: #e88a8a !important;
}
html.color-scheme-dark .available-modules-fieldset .module-row [style*="color: #666"],
html.color-scheme-dark .available-modules-fieldset .module-row [style*="color:#666"] {
    color: #b0b0b0 !important;
}
html.color-scheme-dark .available-modules-fieldset > p.placeholder {
    color: #aaa !important;
}
html.color-scheme-dark .available-modules-fieldset > p[style*="background: #fff3cd"],
html.color-scheme-dark .available-modules-fieldset > p[style*="background:#fff3cd"],
html.color-scheme-dark .available-modules-fieldset > p[style*="fff3cd"] {
    background: #3a3a3a !important;
    border-color: #4a4a4a !important;
    color: #c0c0c0 !important;
}

html.color-scheme-greenscreen .available-modules-fieldset {
    background: #0d2d0d !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
}
html.color-scheme-greenscreen .available-modules-fieldset legend {
    color: #00ff00 !important;
}
html.color-scheme-greenscreen .available-modules-fieldset .module-row {
    background: #0d1a0d !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
}
html.color-scheme-greenscreen .available-modules-fieldset .module-row strong,
html.color-scheme-greenscreen .available-modules-fieldset .module-row p {
    color: #00ff00 !important;
}
html.color-scheme-greenscreen .available-modules-fieldset .module-row [style*="color: #2e7d32"],
html.color-scheme-greenscreen .available-modules-fieldset .module-row [style*="color:#2e7d32"],
html.color-scheme-greenscreen .available-modules-fieldset .module-row [style*="color: #d32f2f"],
html.color-scheme-greenscreen .available-modules-fieldset .module-row [style*="color:#d32f2f"] {
    color: #00ff00 !important;
}
html.color-scheme-greenscreen .available-modules-fieldset .module-row [style*="color: #666"],
html.color-scheme-greenscreen .available-modules-fieldset .module-row [style*="color:#666"] {
    color: #00cc00 !important;
}
html.color-scheme-greenscreen .available-modules-fieldset > p.placeholder {
    color: #00ff00 !important;
}
html.color-scheme-greenscreen .available-modules-fieldset > p[style*="background: #fff3cd"],
html.color-scheme-greenscreen .available-modules-fieldset > p[style*="background:#fff3cd"],
html.color-scheme-greenscreen .available-modules-fieldset > p[style*="fff3cd"] {
    background: #0d2d0d !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
}

/* Instructional task wizard styles */
.wizard-step.step-completed {
    border-left: 4px solid #28a745;
    background-color: #f0f9f0;
}

.wizard-step.step-completed .step-input:disabled,
.wizard-step.step-completed .step-checkbox:disabled,
.wizard-step.step-completed .step-photo-input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}


.flash-message {
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid var(--solaris-grey-dark);
    font-weight: bold;
    font-size: 0.85rem;
    width: 100%;
    flex-shrink: 0;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Login screen */
.login-screen {
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height on mobile to account for browser UI */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0, var(--solaris-grey-light) 60%, var(--solaris-grey) 100%);
    overflow: hidden; /* Prevent scrolling */
    margin: 0;
    padding: 0;
}

.login-panel {
    width: 320px;
    max-width: 90vw; /* Prevent overflow on small screens */
    padding: 20px;
    border: 2px solid var(--solaris-grey-dark);
    background: #ffffff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    font-family: 'Lucida Sans Typewriter', 'Lucida Console', Monaco, monospace;
    box-sizing: border-box; /* Include padding in width calculation */
}

.login-panel h1 {
    margin-top: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--corvaxa-blue);
}

.login-panel label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-panel input {
    width: 100%;
    padding: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--solaris-grey-dark);
    background: var(--solaris-grey-light);
    font-family: inherit;
}

.login-panel button {
    width: 100%;
    padding: 8px;
    background: var(--corvaxa-blue);
    color: var(--text-light);
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-panel button:hover,
.login-panel button:focus {
    background: var(--corvaxa-blue-light);
}

.form-error {
    color: #000000;
    padding: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

/* Status Indicator Lights - Illuminated Style */
.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #808080 !important;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.status-indicator.status-active {
    background: linear-gradient(to bottom, #6bb6ff, #4a90e2) !important;
    border-color: #2e6da4 !important;
    box-shadow: 
        inset 0 0 12px rgba(107, 182, 255, 0.9),
        inset 0 0 20px rgba(74, 144, 226, 0.7),
        0 0 8px rgba(74, 144, 226, 0.6),
        0 0 16px rgba(74, 144, 226, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
    animation: pulse-indicator 2s ease-in-out infinite;
}

.status-indicator.status-inactive {
    background: linear-gradient(to bottom, #a0a0a0, #808080) !important;
    border-color: #606060 !important;
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.4),
        inset -1px -1px 2px rgba(255, 255, 255, 0.1) !important;
}

@keyframes pulse-indicator {
    0%, 100% {
        box-shadow: 
            inset 0 0 12px rgba(107, 182, 255, 0.9),
            inset 0 0 20px rgba(74, 144, 226, 0.7),
            0 0 8px rgba(74, 144, 226, 0.6),
            0 0 16px rgba(74, 144, 226, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 
            inset 0 0 15px rgba(123, 198, 255, 1),
            inset 0 0 25px rgba(90, 160, 242, 0.8),
            0 0 12px rgba(90, 160, 242, 0.7),
            0 0 20px rgba(90, 160, 242, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* Asset Photo Modal Metadata Styling */
#asset-photo-modal > div {
    background: #ffffff !important;
}

html.color-scheme-dark #asset-photo-modal > div {
    background: #2d2d2d !important;
    border-color: #4a4a4a !important;
}

html.color-scheme-dark #asset-photo-metadata {
    background: #3a3a3a !important;
    border-color: #4a4a4a !important;
    color: #e0e0e0 !important;
}

html.color-scheme-dark #asset-photo-metadata-content {
    color: #e0e0e0 !important;
}

html.color-scheme-dark #asset-photo-metadata-content dt {
    color: #e0e0e0 !important;
}

html.color-scheme-dark #asset-photo-metadata-content dd {
    color: #c0c0c0 !important;
}

html.color-scheme-greenscreen #asset-photo-modal > div {
    background: #0d3d0d !important;
    border-color: #1a5a1a !important;
}

html.color-scheme-greenscreen #asset-photo-metadata {
    background: #0d2d0d !important;
    border-color: #1a5a1a !important;
    color: #00ff00 !important;
}

html.color-scheme-greenscreen #asset-photo-metadata-content {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen #asset-photo-metadata-content dt {
    color: #00ff00 !important;
}

html.color-scheme-greenscreen #asset-photo-metadata-content dd {
    color: #00cc00 !important;
}

/* Asset page photo panel (view + edit) – "No photo" area theme overrides */
html.color-scheme-dark #asset-photo-container,
html.color-scheme-dark #asset-photo-container-edit {
    background: #3a3a3a !important;
    border-color: #4a4a4a !important;
    box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.3), inset -1px -1px 0 rgba(255, 255, 255, 0.05) !important;
}
html.color-scheme-dark #asset-photo-container > div,
html.color-scheme-dark #asset-photo-container-edit > div {
    color: #aaa !important;
}
html.color-scheme-greenscreen #asset-photo-container,
html.color-scheme-greenscreen #asset-photo-container-edit {
    background: #0d2d0d !important;
    border: 2px solid #00ff00 !important;
    box-shadow: none !important;
}
html.color-scheme-greenscreen #asset-photo-container > div,
html.color-scheme-greenscreen #asset-photo-container-edit > div {
    color: #00ff00 !important;
}

/* Empty custom field subsections - slightly greyscale to indicate no fields */
.subsection-empty {
    filter: grayscale(0.4);
    opacity: 0.9;
}
.subsection-empty .placeholder {
    color: #888;
}
