/*
 *  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 *  project.
 *
 *  Copyright (C) 1998-2025 OpenLink Software
 *
 *  This project is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License as published by the
 *  Free Software Foundation; only version 2 of the License, dated June 1991.
 *
 *  This program is distributed in the hope that it will be useful, but
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *  General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 *
 */

:root {
  --ui-bg: #f2f4f8;
  --ui-bg-alt: #e7edf5;
  --ui-surface: #ffffff;
  --ui-surface-2: #f6f8fb;
  --ui-text: #1f2d3a;
  --ui-muted: #5b6b7a;
  --ui-border: #d6dde4;
  --ui-accent: #2b6fdd;
  --ui-accent-hover: #245fc4;
  --ui-accent-2: #2aa198;
  --ui-shadow: 0 6px 16px rgba(8, 21, 34, 0.08);
  --btn-font-size: 12px;
  --btn-pad-y: 4px;
  --btn-pad-x: 10px;
  --btn-radius: 6px;
  --btn-min-height: 26px;
}

body {
  padding: 0px;
  margin: 0px;
  background: linear-gradient(180deg, var(--ui-bg) 0%, var(--ui-bg-alt) 100%);
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Verdana, sans-serif;
  font-size: 80%;
}

body.dark,
body.theme-dark,
body[data-theme="dark"] {
  --ui-bg: #0b1016;
  --ui-bg-alt: #0f141a;
  --ui-surface: #0f141a;
  --ui-surface-2: #111a23;
  --ui-text: #dfe7ef;
  --ui-muted: #a9b7c6;
  --ui-border: #293241;
  --ui-accent: #3a7be3;
  --ui-accent-hover: #2f6fd4;
  --ui-accent-2: #36c1b7;
  --ui-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

table {
  font-family: inherit;
  font-size: 10pt;
}

form {
  margin-bottom: 0px;
}

input[type="text"], input[type="password"], textarea {
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  background-color: var(--ui-surface);
  color: var(--ui-text);
}

select {
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid var(--ui-border);
  background-color: var(--ui-surface);
  color: var(--ui-text);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font-size: var(--btn-font-size);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  min-height: var(--btn-min-height);
  line-height: 1.2;
}

/* Main page segments */

/* Main banner */

div.heading {
  background-color: var(--ui-surface);
  width: 100%;
  height: 45px;
  background-image: url(../images/slvnav3.gif);
  background-repeat: repeat-x;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 10px;
  box-shadow: var(--ui-shadow);
  position: relative;
  z-index: 20;
}

.con-logo {
  display: block;
  height: 40px;
  max-height: 40px;
  width: auto;
}

.con-logo-link {
  display: inline-flex;
  align-items: center;
}

.con-logo--dark {
  display: none;
}

body.dark .con-logo--light,
body.theme-dark .con-logo--light,
body[data-theme="dark"] .con-logo--light {
  display: none;
}

body.dark .con-logo--dark,
body.theme-dark .con-logo--dark,
body[data-theme="dark"] .con-logo--dark {
  display: block;
}

div.heading_left {
  float: none;
  display: flex;
  align-items: center;
}

div.heading_right {
  float: none;
  text-align: right;
  padding-right: 4px;
  padding-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 25;
}

.auth-label {
  font-size: 12px;
}

/* connection / auth status badge (SPASQL-derived) */
.conn-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4a5568;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #c9d3e1;
  background: #f5f8fc;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  max-width: clamp(180px, 34vw, 460px);
  margin-right: 2px;
}

.conn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa0a6;
  flex-shrink: 0;
}

.conn-status[data-state="ok"]      .conn-dot { background: #22c55e; }
.conn-status[data-state="error"]   .conn-dot { background: #ef4444; }
.conn-status[data-state="pending"] .conn-dot { background: #f59e0b; }

/* identity IRI hyperlink inside conn-status */
.conn-identity-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.25);
  text-underline-offset: 2px;
}

.conn-identity-link:hover {
  text-decoration-color: currentColor;
}

body[data-theme="dark"] .conn-identity-link {
  text-decoration-color: rgba(255,255,255,0.25);
}

/* open-link dialog only (avoid collisions with existing OAT overlays) */
#link-dialog.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#link-dialog.modal[hidden] {
  display: none;
}

#link-dialog .modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.link-dialog {
  min-width: 360px;
  max-width: 520px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.link-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.link-dialog-head-copy {
  min-width: 0;
}

.link-dialog-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.2px;
}

.link-dialog-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.link-dialog-url {
  font-size: 12px;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  word-break: break-all;
  margin-bottom: 12px;
}

.link-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.link-dialog .btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.link-dialog .btn-primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border-color: #1e40af;
}

.link-dialog .btn-outline {
  background: #fff;
  color: #1f2937;
  border-color: #d1d5db;
}

.link-dialog .btn-ghost {
  background: transparent;
  color: #6b7280;
  border-color: transparent;
}

.link-dialog-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.link-dialog-close:hover {
  background: #f3f4f6;
}

/* auth-toggle button — SPASQL conn-toggle style */
.auth-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #3b82f6;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

.auth-toggle:hover {
  filter: brightness(1.12);
}

.auth-toggle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.auth-toggle .icon-logout {
  display: none;
}

/* logged in — red, show logout icon
   data-state="ok"       used by folder.vspx (popup DAV browser)
   data-auth-state="in"  used by yacutia_decor.vspx (all main Conductor pages) */
.auth-toggle[data-state="ok"],
.auth-toggle[data-auth-state="in"] {
  border-color: #b91c1c;
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

.auth-toggle[data-state="ok"] .icon-login,
.auth-toggle[data-auth-state="in"] .icon-login  { display: none; }
.auth-toggle[data-state="ok"] .icon-logout,
.auth-toggle[data-auth-state="in"] .icon-logout { display: inline-flex; }

/* pending (data-state="pending") — amber */
.auth-toggle[data-state="pending"] {
  border-color: #9a3412;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
}

div.container {
  position: relative;
  min-height: 255px;
  margin: 0 auto;
  width: 100%;
  font-size: 10pt;
}

div.container.layout-modern {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  padding: 8px 10px 0 10px;
}

div.left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 165px;
  min-height: 250px;
  font-size: 11px;
  background-color: var(--ui-surface-2);
  padding-bottom: 5px;
}

div.container.layout-modern div.left {
  position: sticky;
  top: auto;
  bottom: auto;
  left: auto;
  width: 180px;
  flex: 0 0 190px;
  max-width: 200px;
  min-height: 0;
  border-radius: 10px;
  box-shadow: var(--ui-shadow);
  overflow: hidden;
  align-self: flex-start;
  top: 10px;
  z-index: 5;
}

div.content {
  margin-left: 165px;
  padding: 3px;
}

div.container.layout-modern div.content {
  margin-left: 0;
  padding: 0 6px 16px 6px;
  flex: 1 1 auto;
  min-width: 0;
}

@media screen and (max-width: 980px) {
  div.heading {
    height: auto;
    min-height: 45px;
    padding: 6px 10px;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  div.heading_right {
    width: 100%;
    justify-content: flex-end;
  }

  div.container.layout-modern {
    flex-direction: column;
  }

  div.container.layout-modern div.left {
    width: 100%;
  }
}
div.footer {
  font-size: 0.9em;
  text-align: right;
  padding-top: 3px;
  padding-right: 5px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted);
}

#MB2 {
  background-color: var(--ui-surface);
  width: 100%;
  height: 45px;
  background-image: url(../images/slvnav3.gif);
  background-repeat: repeat-x;
  text-align: right;
  vertical-align: middle;
}

.lc_box table.login_fm_ctr {
  background-color: var(--ui-surface-2);
}

div.login_fm_ctr, table.login_fm_ctr {
  width: 158px;
  margin: 3px;
  padding: 5px;
  /* background-image: url('../images/stl_blu1_grad.gif'); */
  background-repeat: repeat-x;
  border-top: 1px solid var(--ui-border);
  border-right: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  border-left: 1px solid var(--ui-border);
}

table.login_fm_ctr {
  vertical-align: top;
}

table.login_fm_ctr label {
  text-align: right;
  font-weight: bold;
}

table.login_fm_ctr th {
  color: var(--ui-text);
}

#t_login_usr {
  width: 8.5pc;
}

#t_login_pwd {
  width: 8.5pc;
}

ul.left_toolbox {
  /*float: left;
  clear: both;*/
  width: 146px;
  padding: 5px;
  margin: 3px;
  list-style-type: none;
  background-repeat: repeat-x;
  border-top: 1px solid #FFFFFF;
  border-right: 1px solid #ADC9E0;
  border-bottom: 1px solid #7F94A5;
  border-left: 1px solid #7F94A5;
  background-image: url('../images/stl_blu1_grad.gif');
}

ul.left_toolbox li {
  margin: 0;
  padding: 0;
}

ul.left_toolbox li img {
  margin-right: 3px;
}

ul.left_toolbox li a {
  text-decoration: none;
}

ul.left_toolbox li a:hover {
  text-decoration: underline;
}

ul li a {
  color: #0d0d0d;
}

ul li a:visited {
  color: #0d0d0d;
}

ul li a:active {
  color: yellow;
}

div.lmenu_ctr {
  /*float: left;
  clear: both;*/
  width: 146px;
  padding: 5px;
  margin: 3px;
  color: #f0f0f0;
  background-image: url(../images/stl_blu1_grad.gif);
  background-repeat: repeat-x;
  border-top: 1px solid #FFFFFF;
  border-right: 1px solid #ADC9E0;
  border-bottom: 1px solid #7F94A5;
  border-left: 1px solid #7F94A5;
  font-size: 11px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

ul.lmenu {
  list-style-type: none;
  padding: 5px;
}

ul.lmenu li {
  margin: 0;
  padding: 2px;
}

ul.left_nav {
  /*float: left;
  clear: both;*/
  width: 146px;
  padding: 5px;
  margin: 3px;
  list-style-type: none;
  padding: 5px;
  border-top: 1px solid #F1F1F1;
  border-right: 1px solid #ADC9E0;
  border-bottom: 1px solid #7F94A5;
  border-left: 1px solid #7F94A5;
  background-image: url(../images/stl_blu1_grad.gif);
  background-repeat: repeat-x;
}

ul.left_nav li {
  margin: 0;
  padding: 2px;
}

ul.left_id {
  /*float: left;
  clear: both;*/
  width: 146px;
  padding: 5px;
  margin: 3px;
  list-style-type: none;
  padding: 5px;
  font-size: x-small;
  background-image: url(../images/stl_blu1_grad.gif);
  background-repeat: repeat-x;
  border-top: 1px solid #FFFFFF;
  border-right: 1px solid #ADC9E0;
  border-bottom: 1px solid #7F94A5;
  border-left: 1px solid #7F94A5;
}

/* Left navigation modernization */
div.container.layout-modern ul.left_toolbox,
div.container.layout-modern ul.left_nav,
div.container.layout-modern ul.left_id,
div.container.layout-modern div.lmenu_ctr {
  width: auto;
  margin: 8px;
  border-radius: 10px;
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow);
  background-color: var(--ui-surface);
  background-image: none;
}

div.container.layout-modern ul.left_toolbox li,
div.container.layout-modern ul.left_nav li,
div.container.layout-modern ul.left_id li,
div.container.layout-modern ul.lmenu li {
  padding: 4px 2px;
}

ul.left_id li {
  margin: 0;
  padding: 2px;
}

a.xtern {
  text-decoration: none;
  margin-left: -7px;
}

table.cvs_id {
  display: none;
}

div.cvs_id {
  display: none;
}

div.page_help {
  text-align: right;
}

#dav_list {
  right: 0px;
  min-width: 400px;
  height: 300px;
  top: 0px;
}

a {
  font-family: Verdana, Arial, Sans-Serif;
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

th {
  text-align: left
}

.clear {
  clear: both;
}

span.note {
  font-style: italic;
  font-size: x-small;
}

.system_info {
  font-size: 75%
}

h1.page_title {
  white-space: nowrap;
  margin-bottom: 5px;
  margin-top: 0;
  margin-left: 5px;
  padding-bottom: 0;
  font-size: 22px;
  font-weight: bold;
  color: var(--ui-text);
  width: 80%;
  float: left;
}

td.page_title img {
  padding-left: 0;
  padding-bottom: 0;
  padding-right: 10px;
}

div.main_page_area {
  height: calc(100vh - 240px);
  min-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Pages that already wrap content in .page_scroll — prevent double padding */
div.main_page_area > div.page_scroll {
  padding-left: 0;
  padding-right: 0;
}

/* 3-level nav sections (e.g. Other Services, Web Services) add ~40px extra height;
   detect via 3+ sibling nav_separator1 rows and compensate the calc offset */
div#LC.content > form[name="navbar1"]:has(.nav_separator1 ~ .nav_separator1 ~ .nav_separator1) ~ .main_page_area {
  height: calc(100vh - 280px);
}

div.main_page_area table {
  clear: left;
}

.page_scroll {
  height: calc(100vh - 240px);
  min-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 6px 0 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page_scroll .splash {
  margin-left: 0;
  margin-right: 0;
}

.sub_page {
  background-color: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--ui-shadow);
}

.page_section_head {
  font-size: 12pt;
  font-weight: bold;
  color: var(--ui-text);
  margin-bottom: 6px;
}

div.sub_page_area {
  width: 100%;
}


/* Page section - vertical divide */

div.page_sect {
  width: 100%;
  border-top: 1px solid var(--ui-border);
  margin: 10px 0;
}


/* Control label with required field indicator */

label.req:after {
  content: " *";
  color: red;
}

img.page_icon {
  float: left;
  clear: left;
  padding-top: 15px;
}

.dialog_icon {
  width: 24px;
  height: 24px;
}

td.page_icon_ctr {
  vertical-align: top;
  padding-top: 15px;
  width: 32px;
}

td.page_icon_ctr img {
  vertical-align: top;
}


/* Control Form */

table.ctl_form {
  width: 100%;
  padding-top: 3px;
  border: 1px solid #ccc;
  border-top: 1px solid #444;
  background-color: #eee;
  margin: 0px;
  margin-bottom: 3px;
}

table.ctl_form th {
  padding-left: 3px;
  text-align: right;
  vertical-align: top;
}


/* Control Group - a group of controls such as a filter selector */

table.ctl_grp {
  padding-top: 3px;
  border: 1px solid #ccc;
  border-top: 2px solid #444;
  background-color: #eee;
  margin: 0px;
  margin-bottom: 3px;
}

tr.ctl_grp_title {
  font-weight: bold;
}

tr.ctl_grp_err {
  background-color: yellow;
}

table.ctl_grp th {
  text-align: left;
}


/* Control container */

td.ctl_ctr {
  white-space: nowrap;
}


/* Control label container */

td.ctl_lbl_ctr {}

tr.form_cmd_row {
  text-align: right;
}

table.form_sub {
  width: 100%;
  border: 0;
}


/*
   form_complex_selector - a combination multiple selector with
   two select lists and buttons to move items between available
   and selected.
*/

table.complex_selector {
  padding-top: 3px;
  border: 1px solid #ccc;
  border-top: 2px solid #444;
  background-color: #eee;
  margin: 0px;
}

select.complex_selector {
  width: 100%;
}

td.complex_selector_buttons {
  text-align: center;
  vertical-align: middle;
}

button.form_complex_selector {}

table.listing_ctr {
  width: 100%;
  text-align: left;
}

table.listing {
  width: 100%;
  border-spacing: 0px;
  background-color: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  overflow: hidden;
  table-layout: auto;
}

table.listing th {
  border-color: #FFFFFF;
  border-style: solid;
  border-width: 0px 0px 0px 1px;
  padding: 6px 8px;
  color: var(--ui-text);
}

table.listing th.checkbox,
table.listing td.checkbox {
  width: 1px;
  text-align: center;
  margin: 0;
  padding: 0.5px;
}

table.listing th.action,
table.listing td.action {
  width: 1px;
  white-space: nowrap;
}

table.listing tbody tr:nth-child(odd) {
  background-color: var(--ui-surface-2);
}

table.listing tbody tr:nth-child(even) {
  background-color: var(--ui-surface);
}

table.listing tbody tr:hover {
  background-color: #e9f0f7;
}

table.listing tbody tr.selected {
  background-color: #FFFFCC;
}

table.listing tfoot tr {
  background-color: var(--ui-surface-2);
}

table.listing tfoot td.navigation {
  border-color: #000;
  border-style: solid;
  border-width: 1px 0px 0px 0px;
  text-align: right;
  padding: 3px 0;
}

table.listing tfoot td {
  color: var(--ui-text);
}

table.listing thead tr {
  background: #e8f0fa;
}

table.listing thead tr th {
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

tr.listing_header_row {
  background-image: url(../images/stl_blu1_grad.gif);
  background-repeat: repeat-x;
}

tr.listing_header_row th {
  white-space: nowrap;
}

div.navigation {
  text-align: right;
  font-size: 10pt;
  padding-bottom: 6px;
}

/* Paging controls modernization */
div.navigation {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 8px;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
}

div.navigation a,
div.navigation input[type="submit"],
div.navigation button {
  display: inline-block;
  padding: 4px 8px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  color: var(--ui-text);
  text-decoration: none;
}

div.navigation a:hover,
div.navigation input[type="submit"]:hover,
div.navigation button:hover {
  background: #e9f0f7;
}

body.dark div.navigation,
body.theme-dark div.navigation,
body[data-theme="dark"] div.navigation {
  background: #111a23;
  border-color: #293241;
}

body.dark div.navigation a,
body.theme-dark div.navigation a,
body[data-theme="dark"] div.navigation a,
body.dark div.navigation input[type="submit"],
body.theme-dark div.navigation input[type="submit"],
body[data-theme="dark"] div.navigation input[type="submit"],
body.dark div.navigation button,
body.theme-dark div.navigation button,
body[data-theme="dark"] div.navigation button {
  background: #0f141a;
  border-color: #293241;
  color: #dfe7ef;
}

/* Listing-related commands - top and bottom */

div.listing_top_ctl_grp {
  text-align: right;
  padding: 6px 8px;
  margin: 6px 0;
  background-color: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  /*border-top: 2pt solid #033566;
  background-color: #d0d0d0;*/
}

div.listing_bot_ctl_grp {
  text-align: right;
  padding: 6px 8px;
  margin: 6px 0;
  background-color: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  /*border-bottom: 2pt solid #033566;
  background-color: #d0d0d0;*/
}

div.listing_top_ctl_grp a,
div.listing_bot_ctl_grp a,
div.listing_top_ctl_grp input[type="submit"],
div.listing_bot_ctl_grp input[type="submit"],
div.listing_top_ctl_grp button,
div.listing_bot_ctl_grp button {
  display: inline-block;
  padding: 5px 10px;
  background: #1f6feb;
  border: 1px solid #1f6feb;
  border-radius: 6px;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

div.listing_top_ctl_grp a:hover,
div.listing_bot_ctl_grp a:hover,
div.listing_top_ctl_grp input[type="submit"]:hover,
div.listing_bot_ctl_grp input[type="submit"]:hover,
div.listing_top_ctl_grp button:hover,
div.listing_bot_ctl_grp button:hover {
  background: #1a5fd0;
}


/* see resroweven and resrowodd et al for formatting result tables
   generated by adm_result_to_table (used in ISQL.) */

tr.listing_row_even {}

tr.listing_row_even:hover,
tr.listing_row_odd:hover {
  background-color: #eec;
}

tr.listing_row_odd {
  background-color: #f0f0f0;
}

tr.listing_row_selected {
  background-color: green!important;
}

td.listing_col_label {
  font-weight: bold;
}

td.listing_col_num {
  text-align: right;
}

td.listing_col_action {
  white-space: nowrap;
  padding: 6px 8px;
  background-color: #f1f4f7;
  border: 1px solid #d6dde4;
}

td.listing_count {
  font-weight: bold;
}

td.listing_col_action a {
  text-decoration: none;
}

table.table-sheet thead tr th {
  position: sticky;
  top: 0;
  background: #e6eff7;
}

body.dark table.table-sheet thead tr th,
body.theme-dark table.table-sheet thead tr th,
body[data-theme="dark"] table.table-sheet thead tr th {
  background: #111a23;
  color: #dfe7ef;
  border-color: #293241;
}

table.table-sheet thead tr th.sortable {
  cursor: pointer;
  padding-right: 18px;
}

table.table-sheet thead tr th.sortable:after {
  content: "▾";
  position: absolute;
  right: 6px;
  color: #5b6b7a;
  font-size: 10px;
}

body.dark table.table-sheet thead tr th.sortable:after,
body.theme-dark table.table-sheet thead tr th.sortable:after,
body[data-theme="dark"] table.table-sheet thead tr th.sortable:after {
  color: #9fb3c8;
}

table.table-sheet thead tr th[data-sort="asc"]:after {
  content: "▴";
}

table.table-sheet .resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
}

table.table-sheet th {
  position: relative;
}

table.table-sheet {
  width: max-content;
  min-width: 100%;
}

table.table-sheet th[width],
table.table-sheet td[width] {
  width: auto !important;
}

body.dark table.table-sheet,
body.theme-dark table.table-sheet,
body[data-theme="dark"] table.table-sheet {
  background-color: #0f141a;
  color: #dfe7ef;
}

body.dark table.table-sheet td,
body.theme-dark table.table-sheet td,
body[data-theme="dark"] table.table-sheet td {
  background-color: #0f141a;
  border-color: #293241;
}

body.dark .table-scroll,
body.theme-dark .table-scroll,
body[data-theme="dark"] .table-scroll {
  background-color: #0f141a;
  border-color: #293241;
}

.table-scroll {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 65vh;
  display: block;
}

.table-scroll > table.table-sheet {
  width: max-content;
  min-width: 100%;
}

.code_listing {
  font-family: courier, fixed;
}

.listing_empty {
  color: red;
  text-align: center;
  font-weight: bold;
  padding: 0.5em;
}


/* accounts.vspx, sys_queues.vspx, etc. unhide the "Add New Item" */

th.new_item {}

th.new_item img {
  display: inline
}

th.new_item a {
  text-decoration: underline;
  font-weight: normal;
  vertical-align: middle;
}

th.new_item a:before {
  content: url(../images/icons/add_16.png);
  vertical-align: middle;
  margin-right: 3px;
}


/* sys_queues.vsp

/* Various error message containers */

.Warning {
  /* border: 5px solid red; */
  /* Mixed case is deprecated */
  background-color: #ffff99
}

table.warning {
  width: 100%;
  background-color: #ffff99
}

div.message {
  width: 100%;
  padding: 5px;
  clear: both;
  text-align: center;
  color: green;
}

div.warning {
  width: 100%;
  background-color: #ffff99;
}

div.error_dialog {}

div.error_msg {
  background-color: yellow;
}

table.error_msg {
  background-color: yellow;
}

span.error_summary {}

span.acl_allow {
  background-color: green;
  color: white;
  text-transform: uppercase;
}

span.acl_deny {
  background-color: red;
  color: black;
  text-transform: uppercase;
}

.emphasize {
  font-weight: bold;
  /*font-size: large;*/
}


/* was VerdanaPlainSmall */

.SubInfo {
  font-size: smaller
}

body.dark .SubInfo,
body.theme-dark .SubInfo,
body[data-theme="dark"] .SubInfo {
  color: #dfe7ef;
}


/* XXX; Deprecated. was VerdanaItal */

.Emphasis {
  /* border: 5px solid red; */
  font-style: italic
}


/* XXX: deprecated. was WhiteText */

.AdviceStrong {
  font-weight: bold;
  color: #ffffff
}


/* XXX: deprecated. was VerdanaPlainSmallWhite */

.AdviceText {
  /* border: 5px solid red; */
  font-size: smaller;
  color: #ffffff
}


/*  XXX; Deprecated. was VerdanaPlainWhite */

.Advice {
  /* border: 5px solid red; */
  color: #ffffff
}


/*  XXX; Deprecated. was VerdanaLgWhite */

.AdviceMajor {
  /* border: 5px solid red; */
  font-size: large;
  color: #ffffff
}


/* was yellow */

.attention_text {
  color: #cccc99
}


/* XXX; Deprecated. */

.AttentionData {
  /* border: 5px solid red; */
  font-size: smaller;
  color: #ffff99;
  background-color: #53bfe8
}

img.dialog_icon {
  float: left;
  padding: 0px 10px 0px 10px;
}

div.dialog_text {
  clear: both;
}

div.confirm_dialog {
  clear: both;
  border: 1px solid #f3c1b8;
  border-left: 4px solid #e04b3f;
  background: #fff7f2;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

div.confirm_header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.confirm_title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-semibold);
  color: var(--ui-text);
}

div.confirm_body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

p.confirm_summary {
  font-size: var(--font-size-base);
  font-weight: normal;
  color: var(--ui-text);
  line-height: 1.5;
  margin: 0;
}

ul.del_path_list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  background-color: var(--ui-surface-2);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
}

ul.del_path_list li {
  padding: 5px 12px;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-text);
}

ul.del_path_list li:last-child {
  border-bottom: none;
}

div.confirm_buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

div.dialog_buttons {
  margin-top: 10px;
}

div.confirm_text {
    font-size: 11pt;
    color: var(--ui-text);
    font-weight: bold;
    width: auto;
    line-height: 1.35;
}


/* was redstar */

div.attention_box {
  border: 1px solid #f3c1b8;
  border-left: 4px solid #e04b3f;
  background: #fff7f2;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* was redstar */

.attention_marker {
  color: #ff0033
}

body.dark div.attention_box,
body.theme-dark div.attention_box,
body[data-theme="dark"] div.attention_box {
  background: #2a1412;
  border-color: #6b2a24;
  border-left-color: #e04b3f;
}

body.dark div.confirm_dialog,
body.theme-dark div.confirm_dialog,
body[data-theme="dark"] div.confirm_dialog {
  background: #2a1412;
  border-color: #6b2a24;
  border-left-color: #e04b3f;
}

body.dark ul.del_path_list,
body.theme-dark ul.del_path_list,
body[data-theme="dark"] ul.del_path_list {
  background-color: #1a0f0e;
  border-color: #6b2a24;
}

body.dark ul.del_path_list li,
body.theme-dark ul.del_path_list li,
body[data-theme="dark"] ul.del_path_list li {
  color: #dfe7ef;
  border-bottom-color: #3a1c1a;
}


/* XXX: deprecated */

.page_header_area {
  border: 1pt solid silver;
  position: relative;
  bottom: 15pt
}


/* XXX: Deprecated MainSubData, SubData, SubAction, SubSubInfo */

.MainSubData {
  width: 100%;
  /* background-color: red;*/
  font-size: smaller
}

.SubData {
  /* background-color: red; */
  background-color: white;
  width: 100%
}

.SubAction {
  /*  background-color: red; */
  background-color: white;
  width: 100%;
  font-size: smaller
}

.SubSubInfo {
  /*  background-color: red; */
  background-color: #6ca5c3;
  font-size: smaller
}

body.dark .SubSubInfo,
body.theme-dark .SubSubInfo,
body[data-theme="dark"] .SubSubInfo {
  background-color: #1a2a38;
  color: #dfe7ef;
}

body.dark .SubData,
body.theme-dark .SubData,
body[data-theme="dark"] .SubData,
body.dark .SubAction,
body.theme-dark .SubAction,
body[data-theme="dark"] .SubAction,
body.dark .MainSubData,
body.theme-dark .MainSubData,
body[data-theme="dark"] .MainSubData {
  background-color: #111a23;
  color: #dfe7ef;
}

.tab_page {
  font-size: 11px;
  border-left: 1px solid #CCCCCC;
  border-right: 1px solid #CCCCCC;
  border-bottom: 1px solid #CCCCCC;
  background-color: white;
  padding-left: 10px;
  padding-right: 10px;
  color: black;
  width: 100%;
}

div.main_tab_page {
  clear: both;
  min-height: 190px;
  padding: 0.75em;
  background-color: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  box-shadow: var(--ui-shadow);
}

div.tab_page_new {
  clear: both;
  box-sizing: border-box;
  font-size: 11px;
  border: 1px solid var(--ui-border);
  background-color: var(--ui-surface);
  padding: 6px;
  color: var(--ui-text);
  width: 100%;
  border-radius: 10px;
}

table.page_main_listing {
  width: 100%;
  border-collapse: collapse;
}

table.form_layout {
  border-spacing: 0px;
  width: 100%;
}

.page_tab {
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  padding: 4px 8px;
  background: #e6eff7;
  border: 1px solid #c8d5e2;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.page_tab_sub {
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  padding: 4px 8px;
  border: 1px solid #c8d5e2;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #e6eff7;
}

.page_tab_empty {
  white-space: nowrap;
  border-bottom: 1px solid #CCCCCC;
  border-left: 1px solid #CCCCCC;
  border-right: 0;
  border-top: 0;
  width: 100%;
}

.page_tab_selected {
  white-space: nowrap;
  font-size: 11px;
  background-color: #2b5f8e;
  text-align: left;
  padding: 4px 8px;
  border: 1px solid #c8d5e2;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -1px 4px rgba(8, 21, 34, 0.08);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 1.5em;
}

div.page_tab, div.page_tab_selected {
  display: table-cell;
}

.main_tab_page {
  position: relative;
}

.main_tab_page .page_tab,
.main_tab_page .page_tab_selected {
  position: sticky;
  top: 0;
  z-index: 5;
}

.main_tab_page .tab_page {
  margin-top: 6px;
}

.page_tab a, .page_tab_selected a {
  font-size: 11px;
  color: #0b1a2a;
  text-decoration: none;
}

.page_tab_selected a {
  color: #ffffff;
}

.page_tab a:hover,
.page_tab_selected a:hover {
  text-decoration: none;
}

table.page_tab_row {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px 0;
}

table.page_tab_row td {
  padding: 0;
}

table.page_tab_row a,
table.page_tab_row input[type="submit"],
table.page_tab_row button {
  display: inline-block;
  padding: 5px 10px;
  background: #e6eff7;
  border: 1px solid #c8d5e2;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: #1f2d3a;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

table.page_tab_row a:hover,
table.page_tab_row input[type="submit"]:hover,
table.page_tab_row button:hover {
  background: #dbe7f3;
}

table.page_cmd_row {
  width: 100%;
  margin-bottom: 8px;
}

table.page_cmd_row td {
  padding: 4px 6px;
}

table.page_cmd_row a {
  display: inline-flex;
  align-items: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  background: var(--ui-accent);
  border: 1px solid var(--ui-accent);
  border-radius: 6px;
  color: #ffffff;
  font-size: var(--btn-font-size);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

table.page_cmd_row a:hover {
  background: var(--ui-accent-hover);
  border-color: var(--ui-accent-hover);
}

#pki_form label {
  width: 10em;
  font-weight: bold;
  clear: left;
  float: left;
  padding-top: 4px;
}


/* XXX: Deprecated tab anchor markup - see above */

a.uddi {
  font-size: 11px;
  color: black;
  text-decoration: none;
}

a.uddi:hover {
  text-decoration: none;
}

.ListHeader {
  background-color: #0000c0;
  color: #ffffff;
  font-size: smaller;
}

.HeaderButton {
  background-color: #c0c0c0;
}


/* XXX: (ghard) the following classes break Yacutia naming convention
     because these are generated by a PL procedure adm_result_to_table
     originally written for and still used in classic admin assistant */

.resdata {
  font-family: Courier, fixed;
  font-size: 8pt;
  white-space: nowrap;
}

.resfooter {
  font-family: Tahoma, Verdana, Arial;
  font-size: 8pt;
}

/* to avoid CR/LF to be shown as an empty space */

a.no_text {
  font-size: 0px;
}

body[data-theme="dark"] a.no_text img {
  filter: invert(1) hue-rotate(180deg);
}

div.splash {
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 0;
  /*width: 98%;*/
}

div.splash h1 {
  font-size: 24pt;
  color: #9e9e9a;
}

div.splash h2 {
  font-size: 18pt;
  color: #9e9e9a;
}

div.splash_left {
  float: left;
  width: 40%
}

div.splash_right {
  margin-left: 10px;
  float: left;
  width: 40%
}

div.splash_group {}

div.splash_row {
  clear: left;
  float: left;
}

div.splash_group br {
  clear: left
}

div.splash_row label {
  display: block;
  float: left;
  margin-bottom: 8px;
}

div.box {
  background-color: white;
  color: black;
  width: 99%;
  margin: 0px;
  margin-bottom: 1em;
  padding: 2px;
  border: 1px solid silver;
  vertical-align: top;
  overflow: auto;
  overflow-y: auto;
  overflow-x: auto;
}


/*
    generic form markup
    form container

   fm
     fm_img
     fm_section
       fm_section_head
       fm_row


*/

div.fm {
  background-color: #f4f6f9;
  margin: .4em;
  padding: 8px;
  border: 1px solid #d6dde4;
  border-radius: 8px;
}

div.fm_section {
  border: 1px solid #d6dde4;
  padding: 10px 12px 16px 12px;
  margin: 8px;
  background-color: #ffffff;
  border-radius: 8px;
  clear: both;
}

div.fm_section_head {
  border: 1px solid #d6dde4;
  position: relative;
  display: inline;
  top: -0.7em;
  left: 0.6em;
  background-color: #f6f8fa;
  font-weight: bold;
  padding: .25em .6em;
  border-radius: 6px;
}

div.fm_row {
  clear: both;
}

div.fm_button_row {
  white-space: nowrap;
  /*float: left;
  clear: both;*/
  text-align: right;
}

fm img {
  float: left;
  /*  clear: top;*/
}

div.fm_info span {
    font-size:13px;
    padding:3px;
    display:inline;
}

div.fm_info div {
   height: 23px;
}

div.fm_info label {
    font-size:12px;
    padding:3px;
    display:inline;
}

span.fm_label {
  display: block;
  float: left;
  text-align: right;
  clear: left;
}

div.fm label {
  clear: both;
  display: block;
  float: left;
  width: 170px;
  padding: 0px 5px;
  margin: 0 0 5px 0;
  font-size: 10pt;
  font-weight: bold;
  text-align: right;
}

span.fm_ctl_label {
  float: right;
  text-align: left;
}

span.fm_ctl_text {
  float: right;
  text-align: left;
}

span.fm_ctl_btn {
  float: right;
  text-align: left;
}

span.footnote_id {
  font-size: 6pt;
  position: relative;
  top: -.5em;
}

div.footnotes {
  margin-top: 1em;
  text-align: right;
}

p.footnote {
  font-size: 7pt;
}


/* Page-specific id selectors */

#u_sl_roles_assigned {
  width: 15pt;
}

div.validator_err_ctr {
  clear: both;
  margin-left: 10px;
}

div.validator_err_ctr p {
  color: red;
}

table.stat_table {
  background-color: white;
}

table.stat_table td {
  vertical-align: top;
  font-weight: bold;
  font-size: 80%;
}

table.stat_table th {
  vertical-align: top;
  border-color: #99B3C5;
  border-style: solid;
  border-width: 0px 0px 1px 0px;
  padding: 2px;
  color: #033566;
}

/* Dashboard modernization */
div.splash.dash {
  --dash-bg: #ffffff;
  --dash-border: #d6dde4;
  --dash-shadow: rgba(8, 21, 34, 0.08);
  --dash-header-bg: #f4f7fa;
  --dash-header-text: #1f2d3a;
  --dash-row-border: #eef2f6;
  --dash-label: #425466;
  --dash-text: #1f2d3a;
  --dash-btn-bg: #f6f8fa;
  --dash-btn-border: #c7d0d9;
  --dash-btn-text: #1f2d3a;
  --dash-btn-primary: #1f6feb;
  --dash-btn-primary-hover: #1a5fd0;
  margin-top: 6px;
  clear: both;
}

body.dark div.splash.dash,
body.theme-dark div.splash.dash,
body[data-theme="dark"] div.splash.dash {
  --dash-bg: #0f141a;
  --dash-border: #293241;
  --dash-shadow: rgba(0, 0, 0, 0.35);
  --dash-header-bg: #111a23;
  --dash-header-text: #d5dde6;
  --dash-row-border: #1f2833;
  --dash-label: #a9b7c6;
  --dash-text: #dfe7ef;
  --dash-btn-bg: #17202a;
  --dash-btn-border: #2a3442;
  --dash-btn-text: #d5dde6;
  --dash-btn-primary: #2f7ef7;
  --dash-btn-primary-hover: #2566cc;
}

div.splash.dash .dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 1100px) {
  div.splash.dash .dash-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media screen and (max-width: 760px) {
  div.splash.dash .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

div.splash.dash .dash-card {
  background: var(--dash-bg);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  box-shadow: 0 6px 14px var(--dash-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

div.splash.dash .dash-card__table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  table-layout: fixed;
}

div.splash.dash .dash-card__table tr.stat_header_line th {
  padding: 10px 12px;
  background: var(--dash-header-bg);
  border-bottom: 1px solid var(--dash-border);
  color: var(--dash-header-text);
  font-size: 12pt;
}

div.splash.dash .dash-card__select {
  width: 100%;
  padding: 4px 6px;
  font-size: 10pt;
  background: var(--dash-bg);
  color: var(--dash-text);
  border: 1px solid var(--dash-border);
  border-radius: 6px;
}

div.splash.dash .dash-card__table td {
  padding: 6px 10px;
  font-size: 9pt;
  font-weight: normal;
  border-top: 1px solid var(--dash-row-border);
}

div.splash.dash .dash-card__table tr.stat_header_line + tr td {
  border-top: 0;
}

div.splash.dash .dash-card__table td:first-child {
  width: 24px;
}

div.splash.dash td.stat_col_label {
  color: var(--dash-label);
  font-weight: 600 !important;
}

div.splash.dash td.stat_col,
div.splash.dash td.stat_colr {
  color: var(--dash-text);
}

div.splash.dash .dash-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

div.splash.dash .dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: var(--dash-header-bg);
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  color: var(--dash-text);
}

div.splash.dash .dash-toolbar__left,
div.splash.dash .dash-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

div.splash.dash .dash-toolbar__meta {
  font-size: 9pt;
  color: var(--dash-label);
}

div.splash.dash .dash-action {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--dash-btn-border);
  background: var(--dash-btn-bg);
  color: var(--dash-btn-text);
  font-weight: bold;
  cursor: pointer;
}

div.splash.dash .dash-action--primary {
  background: var(--dash-btn-primary);
  border-color: var(--dash-btn-primary);
  color: #ffffff;
}

div.splash.dash .dash-action:hover {
  background: var(--dash-row-border);
}

div.splash.dash .dash-action--primary:hover {
  background: var(--dash-btn-primary-hover);
}

/* Dark theme overrides for modernized components */
body.dark div.main_tab_page,
body.theme-dark div.main_tab_page,
body[data-theme="dark"] div.main_tab_page {
  background-color: #0f141a;
  border-color: #293241;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  color: #dfe7ef;
}

body.dark table.listing,
body.theme-dark table.listing,
body[data-theme="dark"] table.listing {
  background-color: #0f141a;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark table.listing thead tr,
body.theme-dark table.listing thead tr,
body[data-theme="dark"] table.listing thead tr {
  background: #111a23;
}

body.dark table.listing thead tr th,
body.theme-dark table.listing thead tr th,
body[data-theme="dark"] table.listing thead tr th {
  border-color: #293241;
}

body.dark .page_tab,
body.theme-dark .page_tab,
body[data-theme="dark"] .page_tab,
body.dark .page_tab_sub,
body.theme-dark .page_tab_sub,
body[data-theme="dark"] .page_tab_sub {
  background: #111a23;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark .page_tab_selected,
body.theme-dark .page_tab_selected,
body[data-theme="dark"] .page_tab_selected {
  background: #1c3f5f;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark .sub_page,
body.theme-dark .sub_page,
body[data-theme="dark"] .sub_page {
  background-color: #0f141a;
  border-color: #293241;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

body.dark .page_section_head,
body.theme-dark .page_section_head,
body[data-theme="dark"] .page_section_head {
  color: #dfe7ef;
}

body.dark tr.page_section_head,
body.theme-dark tr.page_section_head,
body[data-theme="dark"] tr.page_section_head {
  background: #141b24;
}

body.dark tr.page_section_head td,
body.theme-dark tr.page_section_head td,
body[data-theme="dark"] tr.page_section_head td {
  padding: 6px 8px;
  border-bottom: 1px solid #293241;
}

body.dark div.page_sect,
body.theme-dark div.page_sect,
body[data-theme="dark"] div.page_sect {
  border-top-color: #293241;
}

body.dark table.page_tab_row a,
body.theme-dark table.page_tab_row a,
body[data-theme="dark"] table.page_tab_row a,
body.dark table.page_tab_row input[type="submit"],
body.theme-dark table.page_tab_row input[type="submit"],
body[data-theme="dark"] table.page_tab_row input[type="submit"],
body.dark table.page_tab_row button,
body.theme-dark table.page_tab_row button,
body[data-theme="dark"] table.page_tab_row button {
  background: #111a23;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark table.listing tbody tr:nth-child(odd),
body.theme-dark table.listing tbody tr:nth-child(odd),
body[data-theme="dark"] table.listing tbody tr:nth-child(odd) {
  background-color: #111a23;
}

body.dark table.listing tbody tr:nth-child(even),
body.theme-dark table.listing tbody tr:nth-child(even),
body[data-theme="dark"] table.listing tbody tr:nth-child(even) {
  background-color: #0f141a;
}

body.dark table.listing tfoot tr,
body.theme-dark table.listing tfoot tr,
body[data-theme="dark"] table.listing tfoot tr {
  background-color: #0f141a;
}

body.dark table.listing tfoot td,
body.theme-dark table.listing tfoot td,
body[data-theme="dark"] table.listing tfoot td,
body.dark td.listing_empty,
body.theme-dark td.listing_empty,
body[data-theme="dark"] td.listing_empty {
  background-color: #0f141a;
  color: #dfe7ef;
  border-color: #293241;
}

body.dark table.listing tbody tr:hover,
body.theme-dark table.listing tbody tr:hover,
body[data-theme="dark"] table.listing tbody tr:hover {
  background-color: #1a2330;
}

body.dark table.page_cmd_row a,
body.theme-dark table.page_cmd_row a,
body[data-theme="dark"] table.page_cmd_row a,
body.dark div.listing_top_ctl_grp a,
body.theme-dark div.listing_top_ctl_grp a,
body[data-theme="dark"] div.listing_top_ctl_grp a,
body.dark div.listing_bot_ctl_grp a,
body.theme-dark div.listing_bot_ctl_grp a,
body[data-theme="dark"] div.listing_bot_ctl_grp a,
body.dark div.listing_top_ctl_grp input[type="submit"],
body.theme-dark div.listing_top_ctl_grp input[type="submit"],
body[data-theme="dark"] div.listing_top_ctl_grp input[type="submit"],
body.dark div.listing_bot_ctl_grp input[type="submit"],
body.theme-dark div.listing_bot_ctl_grp input[type="submit"],
body[data-theme="dark"] div.listing_bot_ctl_grp input[type="submit"],
body.dark div.listing_top_ctl_grp button,
body.theme-dark div.listing_top_ctl_grp button,
body[data-theme="dark"] div.listing_top_ctl_grp button,
body.dark div.listing_bot_ctl_grp button,
body.theme-dark div.listing_bot_ctl_grp button,
body[data-theme="dark"] div.listing_bot_ctl_grp button {
  background: #2f7ef7;
  border-color: #2f7ef7;
}

body.dark div.listing_top_ctl_grp,
body.theme-dark div.listing_top_ctl_grp,
body[data-theme="dark"] div.listing_top_ctl_grp,
body.dark div.listing_bot_ctl_grp,
body.theme-dark div.listing_bot_ctl_grp,
body[data-theme="dark"] div.listing_bot_ctl_grp {
  background-color: #111a23;
  border-color: #293241;
}

body.dark td.listing_col_action,
body.theme-dark td.listing_col_action,
body[data-theme="dark"] td.listing_col_action {
  background-color: #111a23;
  border-color: #293241;
}

body.dark table.listing tfoot td.navigation,
body.theme-dark table.listing tfoot td.navigation,
body[data-theme="dark"] table.listing tfoot td.navigation {
  border-color: #293241;
}

body.dark input[type="text"],
body.dark input[type="password"],
body.dark select,
body.dark textarea,
body.theme-dark input[type="text"],
body.theme-dark input[type="password"],
body.theme-dark select,
body.theme-dark textarea,
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
  background-color: #0f141a;
  color: #dfe7ef;
  border-color: #293241;
}

body.dark div.fm,
body.theme-dark div.fm,
body[data-theme="dark"] div.fm {
  background-color: #111a23;
  border-color: #293241;
}

body.dark div.fm_section,
body.theme-dark div.fm_section,
body[data-theme="dark"] div.fm_section {
  background-color: #0f141a;
  border-color: #293241;
}

body.dark div.fm_section_head,
body.theme-dark div.fm_section_head,
body[data-theme="dark"] div.fm_section_head {
  background-color: #111a23;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark div.heading,
body.theme-dark div.heading,
body[data-theme="dark"] div.heading {
  background-color: #0f141a;
  background-image: none;
  color: #dfe7ef;
}

body.dark h1.page_title,
body.theme-dark h1.page_title,
body[data-theme="dark"] h1.page_title {
  color: #dfe7ef;
}

body.dark div.heading_right a,
body.theme-dark div.heading_right a,
body[data-theme="dark"] div.heading_right a {
  color: #dfe7ef;
}

body.dark div.container.layout-modern div.left,
body.theme-dark div.container.layout-modern div.left,
body[data-theme="dark"] div.container.layout-modern div.left {
  background-color: #111a23;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

body.dark ul.left_toolbox,
body.theme-dark ul.left_toolbox,
body[data-theme="dark"] ul.left_toolbox,
body.dark ul.left_nav,
body.theme-dark ul.left_nav,
body[data-theme="dark"] ul.left_nav,
body.dark ul.left_id,
body.theme-dark ul.left_id,
body[data-theme="dark"] ul.left_id,
body.dark div.lmenu_ctr,
body.theme-dark div.lmenu_ctr,
body[data-theme="dark"] div.lmenu_ctr {
  background-color: #0f141a;
  background-image: none;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark ul.left_toolbox a,
body.theme-dark ul.left_toolbox a,
body[data-theme="dark"] ul.left_toolbox a,
body.dark ul.left_nav a,
body.theme-dark ul.left_nav a,
body[data-theme="dark"] ul.left_nav a,
body.dark ul.left_id,
body.theme-dark ul.left_id,
body[data-theme="dark"] ul.left_id {
  color: #dfe7ef;
}

body.dark ul.nav_bar1,
body.theme-dark ul.nav_bar1,
body[data-theme="dark"] ul.nav_bar1 {
  background: #111a23;
}

body.dark ul.nav_bar1 li a,
body.theme-dark ul.nav_bar1 li a,
body[data-theme="dark"] ul.nav_bar1 li a {
  background: #111a23;
  background-image: none;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark ul.nav_bar1 a:hover,
body.theme-dark ul.nav_bar1 a:hover,
body[data-theme="dark"] ul.nav_bar1 a:hover,
body.dark ul.nav_bar1 a.sel:link,
body.theme-dark ul.nav_bar1 a.sel:link,
body[data-theme="dark"] ul.nav_bar1 a.sel:link,
body.dark ul.nav_bar1 a.sel:visited,
body.theme-dark ul.nav_bar1 a.sel:visited,
body[data-theme="dark"] ul.nav_bar1 a.sel:visited {
  background: #1c3f5f;
  color: #ffffff;
}

body.dark ul.nav_bar1 li.sel a,
body.theme-dark ul.nav_bar1 li.sel a,
body[data-theme="dark"] ul.nav_bar1 li.sel a {
  background: #1c3f5f;
  color: #ffffff;
}

body.dark div.nav_separator1,
body.theme-dark div.nav_separator1,
body[data-theme="dark"] div.nav_separator1 {
  background-color: #111a23;
}

td.stat_col_label {
  text-align: right;
  vertical-align: top;
  font-weight: normal!important;
}

td.stat_col {
  text-align: left;
  vertical-align: top;
  font-weight: normal!important;
}

td.stat_colr {
  text-align: right;
  vertical-align: top;
  font-weight: normal!important;
}

td.stat_col_label:after {
  content: ": ";
}

table.home {
  width: 100%;
  background-color: white;
}

table.home th {
  border-color: #FFFFFF;
  border-style: solid;
  border-width: 0px 0px 0px 1px;
  padding: 2px;
  color: #033566;
  text-align: left;
}

div.table_area {
  height: 48em;
}

div.search_area {
  font-size: 10pt;
  background-color: var(--ui-surface-2);
  margin: 0.5em 0 0.5em 0;
  padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  vertical-align: middle;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

div.search_area > div {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

div.search_area input[type="text"] {
  min-width: 180px;
}

.scroll_area {
  background-color: white;
  height: 22em;
  width: auto;
  margin-right: 12px;
  overflow: auto;
  clear: left;
}

.scroll_area37 {
  height: 44.5em;
  margin-right: 0;
}

.banner1 {
  font-weight: bold;
  color: #033566;
  font-size: 150%;
  white-space: nowrap;
  vertical-align: middle;
  text-align: left;
}

.login_box {
  padding-left: 20px;
  margin-left: 20px;
}

div.help_button {
  border: 1px solid #666;
  background-color: #ddd;
  margin-right: 8px;
  padding: 5px;
  float: right;
}

div.help_button:hover {
  background-color: #aaa;
  border: 1px solid #ddd;
}

div.help_button a {
  text-decoration: none;
  color: #333;
  vertical-align: middle;
}

div.help_button img {
  vertical-align: middle;
  margin-right: 3px;
}

div.help_button,
.help_toggle {
  display: none !important;
}

.login_info {
  clear: none;
  float: right;
  margin-right: 50px;
  /*margin-left: 500px;*/
}

.combo_list_list {
  background-color: white;
  border: 1px solid black;
  padding: 2px;
  height: 100px;
  overflow: auto;
}

.combo_list_option:hover {
  background-color: #0080FF;
  color: white;
}

body.dark .combo_list_list,
body.theme-dark .combo_list_list,
body[data-theme="dark"] .combo_list_list {
  background-color: #0f141a;
  border-color: #293241;
  color: #dfe7ef;
}

body.dark .combo_list_option,
body.theme-dark .combo_list_option,
body[data-theme="dark"] .combo_list_option {
  color: #dfe7ef;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #c9d3e1;
  background: #f5f8fc;
  color: #1f2a3a;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

.theme-toggle:hover {
  background: #e8f0fb;
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

body[data-theme="dark"] .theme-toggle .icon-sun,
body.dark .theme-toggle .icon-sun,
body.theme-dark .theme-toggle .icon-sun {
  display: none;
}

body[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

body.dark .theme-toggle,
body.theme-dark .theme-toggle,
body[data-theme="dark"] .theme-toggle {
  border-color: #2f3b4b;
  background: #1f2a3a;
  color: #e7edf7;
}

body.dark .auth-toggle,
body.theme-dark .auth-toggle,
body[data-theme="dark"] .auth-toggle {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
}

body.dark .auth-toggle[data-state="ok"],
body.dark .auth-toggle[data-auth-state="in"],
body.theme-dark .auth-toggle[data-state="ok"],
body.theme-dark .auth-toggle[data-auth-state="in"],
body[data-theme="dark"] .auth-toggle[data-state="ok"],
body[data-theme="dark"] .auth-toggle[data-auth-state="in"] {
  border-color: #b91c1c;
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

body.dark .conn-status,
body.theme-dark .conn-status,
body[data-theme="dark"] .conn-status {
  color: #c9d1dd;
  border-color: #3d5270;
  background: #243650;
}

body.dark .link-dialog,
body.theme-dark .link-dialog,
body[data-theme="dark"] .link-dialog {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-color: #334155;
}

body.dark .link-dialog-title,
body.theme-dark .link-dialog-title,
body[data-theme="dark"] .link-dialog-title {
  color: #e5e7eb;
}

body.dark .link-dialog-sub,
body.theme-dark .link-dialog-sub,
body[data-theme="dark"] .link-dialog-sub {
  color: #9ca3af;
}

body.dark .link-dialog-url,
body.theme-dark .link-dialog-url,
body[data-theme="dark"] .link-dialog-url {
  color: #e5e7eb;
  background: #0b1220;
  border-color: #334155;
}

body.dark .link-dialog-close,
body.theme-dark .link-dialog-close,
body[data-theme="dark"] .link-dialog-close {
  background: #0f172a;
  color: #cbd5e1;
  border-color: #475569;
}

body.dark .link-dialog .btn-outline,
body.theme-dark .link-dialog .btn-outline,
body[data-theme="dark"] .link-dialog .btn-outline {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #475569;
}

body.dark .link-dialog .btn-ghost,
body.theme-dark .link-dialog .btn-ghost,
body[data-theme="dark"] .link-dialog .btn-ghost {
  color: #cbd5e1;
}

.side-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 6px;
}

#img_group {
  margin-top: 70px;
  width: clamp(460px, 44vw, 560px);
  max-width: calc(100vw - 32px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  aspect-ratio: 1184 / 880;
}

#img_group .home-mode-image {
  display: block;
  width: 100%;
}

#img_group .home-mode-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

#img_group .home-mode-dark {
  display: none;
}

body.dark #img_group .home-mode-light,
body.theme-dark #img_group .home-mode-light,
body[data-theme="dark"] #img_group .home-mode-light {
  display: none;
}

body.dark #img_group .home-mode-dark,
body.theme-dark #img_group .home-mode-dark,
body[data-theme="dark"] #img_group .home-mode-dark {
  display: block;
}

#img_group .home-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

#img_group .home-hotspot {
  position: absolute;
  display: block;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(43, 111, 221, 0);
  cursor: pointer;
  outline: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#img_group .home-hotspot:hover,
#img_group .home-hotspot:focus {
  border-color: rgba(43, 111, 221, 0.7);
  background: rgba(43, 111, 221, 0.12);
  box-shadow: 0 0 0 2px rgba(43, 111, 221, 0.22);
}

body.dark #img_group .home-hotspot:hover,
body.dark #img_group .home-hotspot:focus,
body.theme-dark #img_group .home-hotspot:hover,
body.theme-dark #img_group .home-hotspot:focus,
body[data-theme="dark"] #img_group .home-hotspot:hover,
body[data-theme="dark"] #img_group .home-hotspot:focus {
  border-color: rgba(158, 197, 255, 0.85);
  background: rgba(158, 197, 255, 0.16);
  box-shadow: 0 0 0 2px rgba(158, 197, 255, 0.24);
}

#img_group .hs-sql {
  left: 2.79%;
  top: 3.52%;
  width: 28.21%;
  height: 26.02%;
}

#img_group .hs-vdb {
  left: 36.57%;
  top: 4.09%;
  width: 27.62%;
  height: 25.23%;
}

#img_group .hs-wsp {
  left: 69.43%;
  top: 3.52%;
  width: 27.79%;
  height: 26.02%;
}

#img_group .hs-kg {
  left: 2.62%;
  top: 36.02%;
  width: 28.38%;
  height: 26.59%;
}

#img_group .hs-dsp {
  left: 37.42%;
  top: 52.27%;
  width: 26.77%;
  height: 41.82%;
}

#img_group .hs-webdav {
  left: 69.00%;
  top: 36.36%;
  width: 28.21%;
  height: 26.25%;
}

.vdir_listtable {
  width: 100%;
  background-image: url(../images/stl_blu1_grad.gif);
  background-repeat: repeat-x;
}

.form-list {
  width: 100%;
  border: solid #7f94a5;
  border-width: 1px 1px 1px 1px;
  background-color: #fff;
}

.form-list th {
  text-align: center;
  white-space: nowrap;
  font-size: 1em;
  font-weight: bold;
  padding: 2px 4px 2px 4px;
  border: solid #7f94a5;
  background-color: #b0cde4;
  border-width: 0px 1px 1px 0px;
}

.form-list th:last-child {
  border-width: 0px 0px 1px 0px;
}

.form-list td {
  border: solid #7f94a5;
  border-width: 0px 0px 0px 0px;
  padding: 2px 4px 2px 4px;
}

.pointer {
  cursor: pointer;
}

span.button {
  background: none repeat scroll 0 0 #99B3C5;
  border: 1px solid #7F94A5;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  color: #FFFFFF;
  font-size: 0.8em;
  font-weight: bold;
  padding: 3px 4px 1px;
  text-decoration: none;
}

img.button {
  margin-bottom: -3px;
}

a.img_button {
  background: none repeat scroll 0 0 #99b3c5;
  border: 1px solid #7f94a5;
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.8em;
  font-weight: bold;
  padding: 2px 2px 1px;
  text-decoration: none;
}


/* Popup Calendar */

.calendar {
  border: 1px solid #000;
  background-color: #FFF;
  z-index: 101;
}

.calendar_year,
.calendar_month {
  text-align: center;
  border-bottom: 1px solid #aaa;
  padding: 2px 0px;
}

.calendar table {
  margin-top: 2px;
}

.calendar thead {
  font-weight: bold;
}

.calendar thead td {
  padding: 0px 2px;
}

.calendar td {
  font-size: 75%;
  text-align: center;
}

td.calendar_selected {
  background-color: #faa;
}

.calendar_special {
  color: #c55;
}

div.tabContent {
  font-size: 1em;
  padding: 6px;
}

div.tab {
  cursor: pointer;
  display: inline;
  font-weight: bold;
  background-color: #85B9D2;
  border: 1px solid #000;
  border-bottom-width: 0px;
  border-color: #7f94a5;
  padding: 2px 10px 2px 10px;
  margin-right: 3px;
  position: relative;
  text-decoration: none;
  top: -1px;
  z-index: 100;
}

div.activeTab {
  background-color: #EFEFEF;
  border-color: #7f94a5;
}

div.contents {
  background-color: #EFEFEF;
  border: 1px solid #7F94A5;
  padding: 0.5em;
}

.tabs {
  margin-top: 1.5em;
  list-style-type: none;
  padding-bottom: 0px;
  padding-left: 0.5em;
}

.tabs li {
  display: inline;
  padding: 1px 3px;
  margin-left: 0.1em;
  cursor: pointer;
  border-top: 1px solid #aaa;
  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #EFEFEF;
  z-index: 10;
}

.tabs li.tab_selected {
  background-color: #FFF;
}

.tabs li.tab:hover {
  background-color: #FFF;
}


/* Table navigation buttons */

.navi-button {
  font-size: .8em;
  font-family: verdana, sans-serif;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  margin-left: 0.5em;
  padding: 0.1em 0.3em 0.1em 0.3em;
  border: solid 1px;
  border-color: #7f94a5;
  background: #99b3c5;
  cursor: pointer;
  border-radius: 3px;
}

.navi-button:hover {
  text-decoration: none;
}

/* Main navigation */

ul.nav_bar1
{
  clear: both;
  left: 0;
  background: var(--ui-surface-2);
  margin: 0;
  padding: 4px 6px;
  list-style-type: none;
  line-height: 1.9em;
  font-size: 80%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

ul.nav_bar1 li
{
  float: none;
}

ul.nav_bar1 li a
{
  display: block;
  color: var(--ui-text);
  text-decoration: none;
  font-weight: bold;
  background: var(--ui-surface-2);
  background-image: none;
  background-repeat: repeat-x;
  margin: 0;
  padding: 0.25em 0.9em;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  white-space: nowrap;
}

ul.nav_bar1 a:hover,
ul.nav_bar1 a:active,
ul.nav_bar1 a.sel:link,
ul.nav_bar1 a.sel:visited
{
  background: #2b5f8e;
  color: #ffffff;
}

ul.nav_bar1 li.sel a,
ul.nav_bar1 li.sel a:hover {
  background: #2b5f8e;
  color: #ffffff;
}

ul.nav_bar1 a.les
{
  background: #e9f0f7;
}

ul.nav_bar1 a.les:hover
{
  color: var(--ui-text);
  background: var(--ui-surface-2);
}

div.nav_separator1 {
  clear: both;
  left: 0px;
  top: 0px;
  width: 100%;
  height: auto;
  background-color: var(--ui-surface-2);
  padding: 2px 0;
}

form[name="navbar1"] {
  position: static;
  z-index: auto;
  background: transparent;
  padding-top: 0;
}

form[name="navbar1"] .nav_separator1 {
  position: static;
  z-index: auto;
}

div.main_page_area:after,
div.splash:after {
  content: "";
  display: block;
  clear: both;
}

#FT.footer {
  clear: both;
  display: block;
  width: 100%;
  margin-top: 8px;
}

div.content > form[name="navbar1"][action$="vad_val_config.vspx"] ~ .main_page_area .splash {
  margin-left: 0;
  margin-right: 0;
}

/* VAL config: pin footer to viewport bottom (page has no .page_scroll wrapper) */
body:has(form[name="navbar1"][action$="vad_val_config.vspx"]) #FT.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--ui-bg);
  box-sizing: border-box;
  margin-top: 0;
}


.help_tooltip {
    display: inline;
    position: relative;
    text-decoration: none;
}

.help_tooltip:hover:after {
    background: lightyellow;
    border-radius: 5px;
    bottom: 30px;
    color: black;
    content: attr(helptext);
    left: 20%;
    padding: 5px 15px;
    position: absolute;
    z-index: 98;
    width: 350px;
    text-decoration: none;
}

.help_tooltip:hover:before {
    border: solid;
    border-color: lightyellow transparent;
    bottom: 30px;
    content: "";
    left: 50%;
    position: absolute;
    z-index: 99;
    text-decoration: none;
}


.login-button {
  display: inline-block;
  padding: 5px 5px;
  background: linear-gradient(to bottom, #c3cbd5 0%, #a7b7c7 100%);
  border: 1px solid #7f8d99;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px #fff, 0 1px 3px rgba(0,0,0,0.3);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  //font-size: 16px;
}

.login-button span {
  color: #1d3557; /* Default dark blue text */
}

.login-button .highlight {
  color: #4b0082; /* Purple for “Login” */
}

.login-button:hover {
  background: linear-gradient(to bottom, #d0d8e0 0%, #94a6b8 100%);
}

/* Dark mode global normalization */
body.dark,
body.theme-dark,
body[data-theme="dark"] {
  color-scheme: dark;
  background: #0f141b;
  color: #e7edf7;
}

body.dark a,
body.theme-dark a,
body[data-theme="dark"] a {
  color: #9ec5ff;
}

body.dark a:hover,
body.theme-dark a:hover,
body[data-theme="dark"] a:hover {
  color: #cfe1ff;
}

body.dark a,
body.theme-dark a,
body[data-theme="dark"] a,
body.dark a:visited,
body.theme-dark a:visited,
body[data-theme="dark"] a:visited {
  color: #cfe1ff;
}

body.dark div.heading,
body.theme-dark div.heading,
body[data-theme="dark"] div.heading,
body.dark div.container,
body.theme-dark div.container,
body[data-theme="dark"] div.container,
body.dark div.container.layout-modern,
body.theme-dark div.container.layout-modern,
body[data-theme="dark"] div.container.layout-modern,
body.dark div.subpage_header_area,
body.theme-dark div.subpage_header_area,
body[data-theme="dark"] div.subpage_header_area,
body.dark div.main_page_area,
body.theme-dark div.main_page_area,
body[data-theme="dark"] div.main_page_area,
body.dark div.content,
body.theme-dark div.content,
body[data-theme="dark"] div.content,
body.dark div.footer,
body.theme-dark div.footer,
body[data-theme="dark"] div.footer {
  background: #0f141b;
  color: #e7edf7;
}

body.dark div.container.layout-modern div.left,
body.theme-dark div.container.layout-modern div.left,
body[data-theme="dark"] div.container.layout-modern div.left {
  background: #141b24;
  border-color: #202a38;
}

body.dark ul.left_nav,
body.theme-dark ul.left_nav,
body[data-theme="dark"] ul.left_nav,
body.dark ul.left_id,
body.theme-dark ul.left_id,
body[data-theme="dark"] ul.left_id {
  background: #141b24;
  border-color: #202a38;
}

body.dark ul.left_nav li,
body.theme-dark ul.left_nav li,
body[data-theme="dark"] ul.left_nav li,
body.dark ul.left_id li,
body.theme-dark ul.left_id li,
body[data-theme="dark"] ul.left_id li {
  color: #d9e2f2;
}

body.dark div.nav_separator1,
body.theme-dark div.nav_separator1,
body[data-theme="dark"] div.nav_separator1,
body.dark ul.nav_bar1,
body.theme-dark ul.nav_bar1,
body[data-theme="dark"] ul.nav_bar1 {
  background: #141b24;
  border-color: #202a38;
}

body.dark ul.nav_bar1 li a,
body.theme-dark ul.nav_bar1 li a,
body[data-theme="dark"] ul.nav_bar1 li a {
  color: #cfe1ff;
  border-color: #2a3546;
  background: #141b24;
}

body.dark ul.nav_bar1 li.sel a,
body.theme-dark ul.nav_bar1 li.sel a,
body[data-theme="dark"] ul.nav_bar1 li.sel a {
  background: #1c2633;
  color: #e7edf7;
  border-color: #2f3b4b;
}

body.dark .page_tab,
body.theme-dark .page_tab,
body[data-theme="dark"] .page_tab,
body.dark .page_tab_sub,
body.theme-dark .page_tab_sub,
body[data-theme="dark"] .page_tab_sub {
  background: #141b24;
  border-color: #2a3546;
  color: #cfe1ff;
}

body.dark .page_tab_selected,
body.theme-dark .page_tab_selected,
body[data-theme="dark"] .page_tab_selected {
  background: #1c2633;
  color: #e7edf7;
  border-color: #2f3b4b;
}

body.dark table,
body.theme-dark table,
body[data-theme="dark"] table {
  color: #e7edf7;
}

body.dark table th,
body.theme-dark table th,
body[data-theme="dark"] table th,
body.dark table td,
body.theme-dark table td,
body[data-theme="dark"] table td {
  border-color: #243142;
}

body.dark .listing_row_odd,
body.theme-dark .listing_row_odd,
body[data-theme="dark"] .listing_row_odd {
  background: #141b24;
}

body.dark .listing_row_even,
body.theme-dark .listing_row_even,
body[data-theme="dark"] .listing_row_even {
  background: #10161f;
}

body.dark tr.listing_header_row,
body.theme-dark tr.listing_header_row,
body[data-theme="dark"] tr.listing_header_row {
  background-image: none;
  background-color: #111a23;
}

body.dark div.box,
body.theme-dark div.box,
body[data-theme="dark"] div.box {
  background-color: #0f141a;
  color: #dfe7ef;
  border-color: #293241;
}

body.dark table.listing tbody tr:hover,
body.theme-dark table.listing tbody tr:hover,
body[data-theme="dark"] table.listing tbody tr:hover,
body.dark table.WEBDAV_grid tbody tr:hover,
body.theme-dark table.WEBDAV_grid tbody tr:hover,
body[data-theme="dark"] table.WEBDAV_grid tbody tr:hover {
  background: #1c2633;
}

body.dark .tab_page,
body.theme-dark .tab_page,
body[data-theme="dark"] .tab_page,
body.dark .tab_page_new,
body.theme-dark .tab_page_new,
body[data-theme="dark"] .tab_page_new,
body.dark .main_tab_page,
body.theme-dark .main_tab_page,
body[data-theme="dark"] .main_tab_page {
  background: #141b24;
  border-color: #2a3546;
}

body.dark .tab_page_new,
body.theme-dark .tab_page_new,
body[data-theme="dark"] .tab_page_new,
body.dark .main_tab_page,
body.theme-dark .main_tab_page,
body[data-theme="dark"] .main_tab_page {
  color: #dfe7ef;
}

body.dark .scroll_area,
body.theme-dark .scroll_area,
body[data-theme="dark"] .scroll_area,
body.dark .scroll_area37,
body.theme-dark .scroll_area37,
body[data-theme="dark"] .scroll_area37 {
  background-color: #0f141a;
  border-color: #293241;
}

body.dark .page_tab a,
body.theme-dark .page_tab a,
body[data-theme="dark"] .page_tab a,
body.dark .page_tab_selected a,
body.theme-dark .page_tab_selected a,
body[data-theme="dark"] .page_tab_selected a,
body.dark .page_tab_sub a,
body.theme-dark .page_tab_sub a,
body[data-theme="dark"] .page_tab_sub a {
  color: #cfe1ff;
}

body.dark .page_tab_selected a,
body.theme-dark .page_tab_selected a,
body[data-theme="dark"] .page_tab_selected a {
  color: #e7edf7;
}

body.dark .search_area,
body.theme-dark .search_area,
body[data-theme="dark"] .search_area,
body.dark .navigation,
body.theme-dark .navigation,
body[data-theme="dark"] .navigation,
body.dark .page_cmd_row,
body.theme-dark .page_cmd_row,
body[data-theme="dark"] .page_cmd_row {
  background: #141b24;
  border-color: #2a3546;
  color: #d9e2f2;
}

body.dark .stat_table,
body.theme-dark .stat_table,
body[data-theme="dark"] .stat_table,
body.dark .dash-card__table,
body.theme-dark .dash-card__table,
body[data-theme="dark"] .dash-card__table {
  background: #141b24;
  border-color: #2a3546;
}

body.dark .stat_header_line th,
body.theme-dark .stat_header_line th,
body[data-theme="dark"] .stat_header_line th {
  background: #1c2633;
  color: #e7edf7;
  border-color: #2a3546;
}

body.dark .dash-actions,
body.theme-dark .dash-actions,
body[data-theme="dark"] .dash-actions {
  background: #0f141b;
}

body.dark .page_title,
body.theme-dark .page_title,
body[data-theme="dark"] .page_title {
  color: #e7edf7;
}

body.dark .boxHeader,
body.theme-dark .boxHeader,
body[data-theme="dark"] .boxHeader {
  background: #1c2633;
  color: #e7edf7;
  border-color: #2a3546;
}

body.dark .listing_top_ctl_grp,
body.theme-dark .listing_top_ctl_grp,
body[data-theme="dark"] .listing_top_ctl_grp,
body.dark .listing_bot_ctl_grp,
body.theme-dark .listing_bot_ctl_grp,
body[data-theme="dark"] .listing_bot_ctl_grp {
  background: #141b24;
  border-color: #2a3546;
}

body.dark .listing_top_ctl_grp a,
body.theme-dark .listing_top_ctl_grp a,
body[data-theme="dark"] .listing_top_ctl_grp a,
body.dark .listing_bot_ctl_grp a,
body.theme-dark .listing_bot_ctl_grp a,
body[data-theme="dark"] .listing_bot_ctl_grp a {
  color: #cfe1ff;
}

body.dark .listing_col_label,
body.theme-dark .listing_col_label,
body[data-theme="dark"] .listing_col_label,
body.dark .stat_col_label,
body.theme-dark .stat_col_label,
body[data-theme="dark"] .stat_col_label {
  color: #d9e2f2;
}

body.dark .nav_separator1 img,
body.theme-dark .nav_separator1 img,
body[data-theme="dark"] .nav_separator1 img,
body.dark .heading_right img,
body.theme-dark .heading_right img,
body[data-theme="dark"] .heading_right img {
  filter: brightness(0.9) contrast(1.1);
}

body.dark table.ctl_grp,
body.theme-dark table.ctl_grp,
body[data-theme="dark"] table.ctl_grp {
  background: #141b24;
  border-color: #2a3546;
  color: #e7edf7;
}

body.dark table.ctl_form,
body.theme-dark table.ctl_form,
body[data-theme="dark"] table.ctl_form {
  background: #141b24;
  border-color: #2a3546;
  color: #e7edf7;
}

body.dark table.form_layout,
body.theme-dark table.form_layout,
body[data-theme="dark"] table.form_layout {
  background: transparent;
  color: #dfe7ef;
}

body.dark table.tab_page,
body.theme-dark table.tab_page,
body[data-theme="dark"] table.tab_page {
  background: #141b24;
  border-color: #2a3546;
  color: #dfe7ef;
}

body.dark table.tab_page td,
body.theme-dark table.tab_page td,
body[data-theme="dark"] table.tab_page td {
  background: #141b24;
}

body.dark tr.ctl_grp_title,
body.theme-dark tr.ctl_grp_title,
body[data-theme="dark"] tr.ctl_grp_title {
  background: #1c2633;
  color: #e7edf7;
}

body.dark tr.ctl_grp_err,
body.theme-dark tr.ctl_grp_err,
body[data-theme="dark"] tr.ctl_grp_err {
  background: #2a1f1f;
  color: #ffd6d6;
}

body.dark input[type="text"],
body.dark input[type="password"],
body.dark input[type="search"],
body.dark select,
body.dark textarea,
body.theme-dark input[type="text"],
body.theme-dark input[type="password"],
body.theme-dark input[type="search"],
body.theme-dark select,
body.theme-dark textarea,
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] input[type="search"],
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
  background: #121a24;
  color: #e7edf7;
  border-color: #2f3b4b;
}

body.dark input[type="submit"],
body.dark button,
body.theme-dark input[type="submit"],
body.theme-dark button,
body[data-theme="dark"] input[type="submit"],
body[data-theme="dark"] button {
  background: #1c2633;
  color: #e7edf7;
  border-color: #2f3b4b;
}

body.dark input[type="submit"]:hover,
body.dark button:hover,
body.theme-dark input[type="submit"]:hover,
body.theme-dark button:hover,
body[data-theme="dark"] input[type="submit"]:hover,
body[data-theme="dark"] button:hover {
  background: #273445;
}

body.dark .confirm_dialog,
body.theme-dark .confirm_dialog,
body[data-theme="dark"] .confirm_dialog,
body.dark .attention_box,
body.theme-dark .attention_box,
body[data-theme="dark"] .attention_box {
  background: #141b24;
  border-color: #2f3b4b;
  color: #e7edf7;
}

body.dark .dash-card,
body.theme-dark .dash-card,
body[data-theme="dark"] .dash-card,
body.dark .page_sect,
body.theme-dark .page_sect,
body[data-theme="dark"] .page_sect,
body.dark .sub_page,
body.theme-dark .sub_page,
body[data-theme="dark"] .sub_page {
  background: #141b24;
  border-color: #2a3546;
}

body.dark .page_section_head,
body.theme-dark .page_section_head,
body[data-theme="dark"] .page_section_head {
  background: #1c2633;
  color: #e7edf7;
}

body.dark .toolbar,
body.theme-dark .toolbar,
body[data-theme="dark"] .toolbar,
body.dark .WEBDAV_menuBar,
body.theme-dark .WEBDAV_menuBar,
body[data-theme="dark"] .WEBDAV_menuBar,
body.dark .WEBDAV_menu,
body.theme-dark .WEBDAV_menu,
body[data-theme="dark"] .WEBDAV_menu {
  background: #141b24;
  color: #e7edf7;
  border-color: #2a3546;
}

body.dark .WEBDAV_menuItem,
body.theme-dark .WEBDAV_menuItem,
body[data-theme="dark"] .WEBDAV_menuItem {
  color: #cfe1ff;
}

body.dark .WEBDAV_menuItem:hover,
body.theme-dark .WEBDAV_menuItem:hover,
body[data-theme="dark"] .WEBDAV_menuItem:hover {
  background: #1c2633;
}

/* Theme toggle icon */
.theme-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  background: #f5f8fc;
  border-color: #c9d3e1;
}

.theme-toggle__icon {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f6c453;
  box-shadow: 0 0 0 2px rgba(246, 196, 83, 0.35);
}

body.dark .theme-toggle__icon,
body.theme-dark .theme-toggle__icon,
body[data-theme="dark"] .theme-toggle__icon {
  background: #d7e6ff;
  box-shadow: -6px 0 0 0 #0f141b;
}

body.dark .theme-toggle,
body.theme-dark .theme-toggle,
body[data-theme="dark"] .theme-toggle {
  background: #1c2633;
  border-color: #2f3b4b;
}

/* Sidebar icon framing for uniformity */
.side-icon-wrap {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef3f9;
  border: 1px solid #d6dee9;
  margin-right: 6px;
}

body.dark .side-icon-wrap,
body.theme-dark .side-icon-wrap,
body[data-theme="dark"] .side-icon-wrap {
  background: #1c2633;
  border-color: #2f3b4b;
}

.side-icon {
  width: 16px;
  height: 16px;
  margin: 0;
}
