/**
 * Minimal styles for legacy class names still used by Summernote and old markup.
 * Bootstrap CSS/JS removed from the project (2026-06).
 */

/* --- Normalize (ex-Bootstrap / normalize.css) --- */
table {
  border-spacing: 0;
  border-collapse: collapse;
}

td,
th {
  padding: 0;
}

.hidden {
  display: none !important;
}

body.wz-shell fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

/* Bootstrap base typography */
body.wz-shell {
  line-height: var(--wz-line-height-base, 1.42857143);
}

body.wz-shell input,
body.wz-shell button,
body.wz-shell select,
body.wz-shell textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.wz-shell .form-control,
body.wz-shell .btn {
  line-height: 1.42857143;
}

body.wz-shell .checkbox label,
body.wz-shell .radio label {
  font-weight: normal;
  line-height: 1.42857143;
}

body.wz-shell a {
  text-decoration: none;
}

body.wz-shell a:hover,
body.wz-shell a:focus,
body.wz-shell a:active {
  text-decoration: none;
}

/* --- Summernote dropdown --- */
.note-btn-group,
.btn-group {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  background-color: var(--wz-color-white, #fff);
  border: 1px solid var(--wz-color-border-light, #e5e7eb);
  border-radius: var(--wz-radius-sm, 4px);
  box-shadow: var(--wz-shadow-md, 0 8px 24px rgba(0, 36, 110, 0.12));
}

.dropdown-menu.wz-show,
.open > .dropdown-menu {
  display: block;
}

.dropdown-menu > li > a {
  display: block;
  padding: 6px 16px;
  clear: both;
  font-family: var(--wz-font-family, Arial, sans-serif);
  font-size: var(--wz-font-size-small, 14px);
  line-height: 1.4;
  color: var(--wz-color-text-body, #262626);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: var(--wz-color-primary-surface-hover, #eef3fb);
  color: var(--wz-color-primary, #00246e);
  text-decoration: none;
}
