
/* moved-to-modern-bs5-light-dark
:root {
    --color-valid-feedback:     	#198754;
    --color-valid-label:        	#666;
    --color-valid-tooltip:      	#FFF;
    --color-valid-tooltip-background:	rgba(25, 135, 84, 0.9);
    --color-valid-background:   	var(--bs-primary);
    --color-valid-checked-border:	var(--bs-primary);
    --color-valid-border:       	rgba(206, 212, 218);
    --color-valid-box-shadow:   	#1b59cd;

    --color-invalid-feedback:   	#dc3545;
    --color-invalid-label:      	#dc3545;
    --color-invalid-tooltip:    	#FFF;
    --color-invalid-tooltip-background: rgba(220, 53, 69, 0.9);
    --color-invalid-background: 	#dc3545;
    --color-invalid-border:     	#dc3545;
    --color-invalid-box-shadow: 	#dc3545;
}
*/


/* Configwizards */
/* Round "badge" sizing for form field change alerts.  Any id that ends with "Alert" */
[id$="Alert"].icon { font-size: 16px; z-index: 1180; margin-left: -1px; }

.wz-table {
  --bs-border-color:        var(--border);
  --bs-table-border-color:  var(--border);
  --bs-table-bg:            transparent;
  --bs-table-color:         var(--foreground);
  --bs-table-hover-color:   var(--foreground);
  --bs-table-hover-bg:      var(--secondary, var(--color-wz-fieldset-hover));
  --bs-table-striped-color: var(--foreground);
}
.wz-table thead th {
  background-color: var(--muted);
  color: var(--foreground);
  border-color: var(--border);
}
.wz-table tr.nswr-row-disabled > td { opacity: 0.5; }
.wz-table tr.nswr-row-disabled > td:first-child { opacity: 1; }

[id$="Alert-sm"].icon { font-size: 12px; z-index: 1180; margin-left: -2px !important; }
[id$="Alert-cust-sm"].icon { font-size: 12px; z-index: 1180; margin-left: -6px !important; }
.wz-fieldset:hover { background-color: var(--color-wz-fieldset-hover); }

.btn-group.wizard-btn-bar > .btn-group:not(:last-child) > .btn {
  box-shadow: inset 1px 1px 1px 1px rgb(206, 212, 218);
}
.btn-group.wizard-btn-bar>.btn {
  white-space: nowrap;
  margin: 5px;
}
.btn-group.wizard-btn-bar>.input-group {
  align-items: center;
}

/* NOT USED */
.no_offset { top: 0 !important; bottom: 0 !important; }

/* SNMP Walk */
  .group-header {
    color: var(--muted-foreground);
    font-weight: bold;
    font-size: 1.25em;
    padding: 6px 3px;
    display: flex;
    align-items: center;
    cursor: default;
  }

  .collapse-toggle {
    display: flex;
    align-items: center;
  }

  .collapse-indicator {
    background: none;
    border: none;
    font-size: 2.5em;
    cursor: pointer;
  }

  .wrap-anywhere {
    word-wrap: anywhere;
  }

  .checkbox-toggle {
    margin-right: 10px;
  }

  .scrollable-container {
    padding-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .no-disp {
    display: none;
  }

  .oid-row {
    border-top: 1px solid var(--muted-foreground);
    min-height: 5rem;
    align-items: center;
    overflow: hidden;
  }

  .oid-label {
    color: var(--muted-foreground);
    font-weight: normal;
    font-size: 13px;
  }

  .snmpwalk-services-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .show-hide-oids {
    margin-top: -10px;
  }

  .oid-counter {
    margin-left: 5px;
    margin-top: 10px;
  }

  .oid-group-selector {
    margin-left: 25px;
  }

  .oid-group-selector-label {
    margin-right: 5px;
  }

  .oid-group-selector-container {
    margin-top: 20px;
  }

/* Amazon EC2 */
/* Amazon S3 */
/* Autodiscovery */
/* Capacity Planning */
/* Switch */
/* WatchGuard */
.min-width-6em { min-width: 6em !important; }
.min-width-8em { min-width: 8em !important; }
.min-width-10em { min-width: 10em !important; }
.min-width-12em { min-width: 12em !important; }
.min-width-13em { min-width: 13em !important; }
.min-width-14em { min-width: 14em !important; }
.min-width-20em { min-width: 20em !important; }
.min-width-40em { min-width: 40em !important; }
.flex-even { flex: 1 1 0; } /* Use instead of flex-fill, if you want items of the same width. */
.accordion.d-flex .accordion-item.flex-nowrap { flex-shrink: 0; }

/* Load Config - Add/Copy/Update */
/* Non-standard/custom error message for duplicate hostname. Used to override HTML5 form validation. */
.invalid-hostname { display: none; width: 100%; margin-top: .25rem; font-size: .875em; color: #dc3545; }
.is-invalid ~ .invalid-hostname { display: block; }
.form-control.is-invalid-hostname:focus,
.was-validated .form-control.is-invalid-hostname:focus, .was-validated .form-control.is-invalid-hostname:invalid:focus { box-shadow:0 0 0 .25rem rgba(220,53,69,.25); }
.form-control.is-invalid-hostname, .was-validated .form-control.is-invalid-hostname, .was-validated .form-control.is-invalid-hostname:valid { border-color: #dc3545; }
.pad-t2 { padding-top: 2px; }

pre.errmsg {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: unset;
}

/* Required marker '*' for labels. */
label.form-item-required:not(.form-item-required-mark-optional)::before { display: inline-block; margin-right: 4px; color: #dc3545; font-size: 14px; font-weight: bolder; font-family: SimSun, sans-serif; line-height: 1; padding-top: 2px; content: "*"; }
/* End - Configwizards */

.ml-15 {
  margin-left: 15px;
}

/*=================================================================================================*/
/* Override _forms.scss (Bootstrap 5) */

/* Wizard Form Validation */
/* Override the default green color in the form validation and both valid and invalid images - none. */
/* Valid */
.valid-feedback {
  color: var(--color-valid-feedback);
}

.valid-tooltip {
  color: var(--color-valid-tooltip);
  background-color: var(--color-valid-tooltip-background);
}

.was-validated .form-control:valid, .form-control.is-valid {
  border-color: var(--color-valid-border);
  background-image: none;
}

.was-validated .form-control:valid:focus, .form-control.is-valid:focus {
  border-color: var(--color-valid-border);
  box-shadow: 0 0 5px var(--color-valid-box-shadow);
}

.was-validated .form-select:valid, .form-select.is-valid {
  border-color: var(--color-valid-border);
}
.was-validated .form-select:valid:not([multiple]):not([size]), .was-validated .form-select:valid:not([multiple])[size="1"], .form-select.is-valid:not([multiple]):not([size]), .form-select.is-valid:not([multiple])[size="1"] {
  background-image: none;
}
.was-validated .form-select:valid:focus, .form-select.is-valid:focus {
  border-color: var(--color-valid-border);
  box-shadow: 0 0 5px var(--color-valid-box-shadow);
}

.was-validated .form-check-input:valid, .form-check-input.is-valid {
  border-color: var(--color-valid-border);
}
.was-validated .form-check-input:valid:checked, .form-check-input.is-valid:checked {
  background-color: var(--color-valid-background);
  border-color: var(--color-valid-checked-border);
}
.was-validated .form-check-input:valid:focus, .form-check-input.is-valid:focus {
  box-shadow: 0 0 5px var(--color-valid-box-shadow);
}
.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label {
  color: var(--color-valid-label);
}

/* Invalid */
.invalid-feedback {
  color: var(--color-invalid-feedback);
}

.invalid-tooltip {
  color: #fff;
  background-color: var(--color-invalid-tooltip-background);
}

.was-validated .form-control:invalid, .form-control.is-invalid {
  border-color: var(--color-invalid-border);
  background-image: none;
}
.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
  border-color: var(--color-invalid-border);
  box-shadow: 0 0 5px var(--color-invalid-box-shadow);
}

.was-validated .form-select:invalid, .form-select.is-invalid {
  border-color: var(--color-invalid-border);
}
.was-validated .form-select:invalid:not([multiple]):not([size]), .was-validated .form-select:invalid:not([multiple])[size="1"], .form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"] {
  background-image: none;
}
.was-validated .form-select:invalid:focus, .form-select.is-invalid:focus {
  border-color: var(--color-invalid-border);
  box-shadow: 0 0 5px var(--color-invalid-box-shadow);
}

.was-validated .form-check-input:invalid, .form-check-input.is-invalid {
  border-color: var(--color-invalid-border);
}
.was-validated .form-check-input:invalid:checked, .form-check-input.is-invalid:checked {
  background-color: var(--color-invalid-background);
}
.was-validated .form-check-input:invalid:focus, .form-check-input.is-invalid:focus {
  box-shadow: 0 0 5px var(--color-invalid-box-shadow);
}
.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label {
  color: var(--color-invalid-label);
}
/* END - Wizard Form Validation */
/* END - Override _forms.css */

.oid-grid {
  display: grid;
  grid-template-columns:
    0.5fr   /* Select */
    2fr     /* OID */
    1fr     /* Type */
    1fr     /* Current Value */
    2fr     /* Display Name */
    1fr     /* Data Label */
    1fr     /* Data Units */
    1fr     /* Match Type */
    1.5fr;  /* Thresholds */
  gap: 0.5rem;
  align-items: center;
}

/* SNMP Walk step 2 — filter toolbar spans full content width; equal-width fields at xl */
.snmpwalk-browse-toolbar.row.w-100 {
  max-width: 100%;
}

/* Align toolbar buttons with labeled fields (same vertical rhythm as filter-by-value Apply). */
.snmpwalk-browse-toolbar .snmpwalk-toolbar-btn-spacer {
  min-height: 1.125rem;
}

.snmpwalk-browse-toolbar .snmpwalk-browse-filter-field {
  min-width: 0;
}

/* Keep filter + page-size controls on one row at wide widths (extra Type filter). */
@media (min-width: 1200px) {
  .snmpwalk-browse-toolbar.row {
    flex-wrap: nowrap;
  }

  .snmpwalk-browse-toolbar .snmpwalk-browse-filter-field {
    flex: 1 1 0%;
    width: auto;
    max-width: none;
  }
}

/*
 * Neptune BS5 sets .btn:first-child:active to primary (blue). Sole buttons inside
 * .input-group are :first-child, unlike e.g. Auto-Discovery "Refresh job list"
 * (second child in .btn-row). Neutral active state matches other secondary controls.
 */
.snmpwalk-browse-toolbar .input-group > .btn.btn-default:first-child:active,
.snmpwalk-bulk-select-actions .input-group > .btn.btn-default:first-child:active {
  background-color: var(--muted);
  color: var(--foreground);
  border: none;
}

/* SNMP Walk step 2 — paginated browse list (compact columns) */
.snmpwalk-browse-grid {
  display: grid;
  grid-template-columns:
    minmax(2.25rem, 0.32fr)
    0.5fr
    0.7fr
    1.55fr
    0.45fr
    2fr;
  gap: 0.5rem;
  align-items: center;
}

/* Center checkbox / “Select” label in the first column */
.snmpwalk-browse-grid > div:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Borders match app tables (.wz-table, .table-bordered) via --border */
.snmpwalk-browse-header.snmpwalk-browse-grid {
  padding-bottom: 0.35rem;
}

.snmpwalk-browse-body {
  border-color: var(--border) !important;
}

.snmpwalk-browse-body .snmpwalk-browse-row {
  border-top: 1px solid var(--border);
}

.snmpwalk-browse-body .snmpwalk-browse-row:first-child {
  border-top: none;
}

.snmpwalk-selected-panel .oid-row {
  border-top: 1px solid var(--border);
}

/* SNMP Walk browse pager row: pager left, bulk select right */
.snmpwalk-browse-pager-bar {
  row-gap: 0.75rem;
}

/* SNMP Walk browse pager */
#snmpwalk-pagination-controls.xi-pager {
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ~20% larger control targets than default md-20 pager icons; icons use md-24 (24px) */
#snmpwalk-pagination-controls .snmpwalk-pager-nav-btn {
  box-sizing: border-box;
  padding: 0.45rem 0.54rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

#snmpwalk-pagination-controls .snmpwalk-pager-nav-btn .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}

/* Neptune: match table <a.btn-pager>; page counter must not shrink/overlap nav groups */
#snmpwalk-pagination-controls.xi-pager a.btn-pager {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#snmpwalk-pagination-controls.xi-pager .snmpwalk-pager-nav-group {
  display: inline-flex;
  align-items: center;
  align-self: center;
}

#snmpwalk-pagination-controls.xi-pager .snmpwalk-pager-page-label.pager-select-page {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  align-self: center;
  line-height: 1.25;
}

/* Fixed width for current/total page digits (up to 3 characters each) so the pager bar does not shift */
#snmpwalk-pagination-controls .snmpwalk-pager-page-num {
  display: inline-block;
  min-width: 3ch;
  text-align: right;
}

#snmpwalk-pagination-controls.xi-pager a.btn-pager.disabled,
#snmpwalk-pagination-controls.xi-pager a.btn-pager[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.snmpwalk-modern-light #snmpwalk-pagination-controls.xi-pager a.btn-pager.disabled,
.snmpwalk-modern-light #snmpwalk-pagination-controls.xi-pager a.btn-pager[aria-disabled="true"],
.snmpwalk-modern-light #snmpwalk-pagination-controls .snmpwalk-pager-nav-btn:disabled,
.snmpwalk-modern-dark #snmpwalk-pagination-controls.xi-pager a.btn-pager.disabled,
.snmpwalk-modern-dark #snmpwalk-pagination-controls.xi-pager a.btn-pager[aria-disabled="true"],
.snmpwalk-modern-dark #snmpwalk-pagination-controls .snmpwalk-pager-nav-btn:disabled {
  opacity: 1;
}


/* Nagios Network Analyzer Wizard */
.nna-container {
    min-width: 1200px;
}
