@import url('/css/silk-sprite.css');
@import url('/css/wiki.css');

/* 1) Reset/Basics (aus _reset.css, minimal angepasst) */
html {
  color: #000;
  background: #efefef;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset,
img {
  border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var,
optgroup {
  font-style: inherit;
  font-weight: inherit;
}

del,
ins {
  text-decoration: none;
}

li {
  list-style: none;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

q:before,
q:after {
  content: '';
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

sup,
sub {
  vertical-align: baseline;
}

legend {
  color: #000;
}

input,
button,
textarea,
select,
optgroup,
option {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

/* 2) Base */
html {
  font-size: 93.75%;
}

/* 15px base */
body {
  font-size: 1em;
  /* inherit scalable base */
  color: #222;
  background-color: #efefef;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  line-height: 1.4;
  padding: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: .5em 0;
  font-weight: bold;
  color: #333;
}

h1 {
  font-size: 1.7em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.3em;
}

h4 {
  font-size: 1.1em;
}

h5 {
  font-size: 1.0em;
}

p {
  margin: 0 0 1.5em;
}

a:link,
a:visited,
a:active {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

ul,
ol {
  margin: 0 1.5em 1.5em 1.5em;
}

li ul,
li ol {
  margin: 0 1.5em;
}

ul.list li {
  list-style-type: disc;
  padding: 2px 0;
}

ol.list li {
  list-style-type: decimal;
  padding: 2px 0;
}

/* 3) Layout & Utilities */
.dark {
  filter: invert(0.85) hue-rotate(180deg);
}

.gray {
  filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
  zoom: 1;
}

.editable {
  cursor: pointer;
  border-bottom: 1px dotted #000;
}

.editable:hover {
  background: #ffc;
}

.t {
  vertical-align: top;
}

.m {
  vertical-align: middle;
}

.b {
  vertical-align: bottom;
}

.r {
  text-align: right;
}

.c {
  text-align: center;
}

.l {
  text-align: left;
}

.nowrap {
  white-space: nowrap;
}

.small {
  font-size: .9em;
}

.tableContainer {
  margin: .5em 0;
  padding: .5em;
  border: 1px solid #ccc;
  background: #fefefe;
  border-radius: 4px;
}

.tableContainer th img,
.tableContainer td img {
  transform: scale(1.4);
  margin: .25em
}

/* 4) Komponenten */
/* 4.1 Tabellen (konsolidiert aus table.css) */
table.common {
  border: 0;
  border-spacing: 0;
  margin-top: 5px;
  empty-cells: show;
  border-collapse: separate;
  width: 100%;
  text-align: left;
}

th.common,
td.common,
th.common_left,
td.common_left {
  padding: 4px;
}

th.common,
th.common_left {
  padding-bottom: 1px;
  font-weight: bold;
}

table.common th {
  vertical-align: bottom;
}

th.small,
td.small {
  width: 1px;
}

th.nowrap,
td.nowrap {
  white-space: nowrap;
}

th.common {
  background: none;
  border: 0;
  border-left: 1px solid #ccc;
  padding-left: 3px;
  padding-right: 3px;
}

td.common {
  border: 0;
  border-left: 1px solid #ccc;
  border-top: 1px solid #ccc;
  padding-left: 5px;
  padding-right: 3px;
}

th.common_left {
  background: none;
  border: 0;
  padding-left: 3px;
  padding-right: 3px;
}

td.common_left {
  border: 0;
  border-top: 1px solid #ccc;
  padding-left: 5px;
  padding-right: 3px;
}

/* Layout-Tabellenzellen (aus table.css) */
table.layout td,
table.layout th {
  padding: .5em .5em 0 0;
}

/* Zell-Helfer auf td/th-Ebene (Kompatibilität zu Legacy-Templates) */
td.t,
th.t {
  vertical-align: top;
}

td.m,
th.m {
  vertical-align: middle;
}

td.b,
th.b {
  vertical-align: bottom;
}

td.r,
th.r {
  text-align: right;
}

td.c,
th.c {
  text-align: center;
}

td.l,
th.l {
  text-align: left;
}

/* stärkere Trennlinien-Helfer */
th.top-sep,
td.top-sep {
  border-top-width: 2px;
}

th.left-sep,
td.left-sep {
  border-left-width: 2px;
}

th.right-sep,
td.right-sep {
  border-right-width: 2px;
}

/* Data-Tables */
table.data {
  border-spacing: 0;
  border-collapse: collapse;
  border-top: 3px solid #000;
  width: auto;
}

table.data caption {
  text-align: center;
  font-size: 1em;
  padding-top: .5em;
}

table.data td,
table.data th {
  font-weight: normal;
  padding: 3px .5em;
  color: #000;
}

table.data thead th {
  border-bottom: 2px solid #000;
  vertical-align: bottom;
  font-weight: bold;
}

table.data tbody td,
table.data tbody th {
  border-bottom: 1px solid #000;
}

table.data tfoot td,
table.data tfoot th {
  border-top: 2px solid #000;
  font-weight: bold;
}

table.data thead th.corner {
  font-style: italic;
}

table.data tbody td.bar {
  padding-left: 1em;
  width: 100px !important;
}

table.data tbody td.item {
  width: 300px;
}

table.data tbody td.sep,
table.data tbody th.sep {
  border-bottom: 2px solid #000;
  font-weight: bold;
}

table.data td.lsep,
table.data th.lsep {
  border-left: 1px solid #000;
}

table.data td.rsep,
table.data th.rsep {
  border-right: 1px solid #000;
}

table.data tr.tsep td,
table.data tr.tsep th {
  border-top: 2px solid #000;
}

table.data tr.bsep td,
table.data tr.bsep th {
  border-bottom: 2px solid #000;
}

table.data td.green {
  background: #DCF3DF;
}

table.data td.red {
  background: #FFCFCF;
}

table.evaluations li {
  border-bottom: none;
}

table.evaluations tr {
  vertical-align: top;
}

tr.active {
  background-color: #fee;
}

tr.deleted {
  background-color: #eee;
}

/* 4.1.1 Responsive Tabellen (aus table-responsive.css) */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .table-responsive table {
    min-width: 600px;
  }
}

@media (max-width: 768px) {
  .table-responsive thead {
    display: none;
  }

  .table-responsive tbody tr {
    display: block;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
  }

  .table-responsive tbody td {
    display: block;
    text-align: left;
    border: none;
    padding: 5px 0;
  }

  .table-responsive tbody td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    display: inline-block;
    width: 120px;
  }
}

/* 4.2 Formulare & Buttons (konsolidiert aus admin.css) */
form {
  display: inline;
}

input,
textarea {
  padding: 3px;
}

.formTable th {
  vertical-align: top;
}

.formTable th,
.fromTable td {
  padding: 1em;
}

.formTable input[type="text"],
.formTable input[type="password"],
.formTable textarea {
  width: 300px;
}

.formTable input[type="text"]:focus,
.formTable input[type="password"]:focus,
.formTable textarea:focus,
.formTable select:focus {
  background-color: #ffc;
}

.formFieldset {
  padding: 1em;
  border: 1px solid #ccc;
}

.formLegend {
  padding: 5px;
}

.formRow {
  margin-top: 5px;
  padding: 2px 0;
}

.formButtonRow {
  margin-top: 10px;
}

.formLabel {
  float: left;
}

.formElement {
  margin-left: 14em;
}

.formElement * {
  border: 1px solid #ccc;
}

.formElement *:focus {
  background: #ffc;
}

.formButton {
  padding: 3px 5px;
  cursor: pointer;
}

/* Datei-/Aktionseingaben mit Icons */
input.edit {
  padding-left: 22px;
  background: #f9f9f9 url('/images/general/icons/page_white_edit.png') no-repeat 2px 2px;
  border: 1px solid #aaa;
}

input.pdf {
  padding-left: 22px;
  background: #f9f9f9 url('/images/general/attatch/pdf.gif') no-repeat 2px 2px;
  border: 1px solid #aaa;
}

input.doc {
  padding-left: 22px;
  background: #f9f9f9 url('/images/general/attatch/doc.gif') no-repeat 2px 2px;
  border: 1px solid #aaa;
}

input.chart {
  padding-left: 22px;
  background: #f9f9f9 url('/images/general/icons/chart_bar.png') no-repeat 2px 2px;
  border: 1px solid #aaa;
}

input.zip {
  padding-left: 22px;
  background: #f9f9f9 url('/images/general/attatch/zip.gif') no-repeat 2px 2px;
  border: 1px solid #aaa;
}

input.back {
  padding-left: 22px;
  background: #f9f9f9 url('/images/general/back.gif') no-repeat 2px 2px;
  border: 1px solid #aaa;
}

/* 4.3 Notifications */
.error,
.notice,
.success {
  padding: .25em;
  margin-bottom: 1em;
  border: 2px solid #ddd;
}

.error {
  background: #FBE3E4;
  color: #8a1f11;
  border-color: #FBC2C4;
}

.notice {
  background: #FFF6BF;
  color: #514721;
  border-color: #FFD324;
}

.success {
  background: #E6EFC2;
  color: #264409;
  border-color: #C6D880;
}

.error-text {
  color: #ff4500;
  font-weight: bold;
}

.notice-text {
  color: #ff8c00;
  font-weight: bold;
}

.success-text {
  color: #006400;
  font-weight: bold;
}

.error a {
  color: #8a1f11;
}

.notice a {
  color: #514721;
}

.success a {
  color: #264409;
}

.error_list {
  margin: 0;
  padding: 0;
}

.error_list li {
  color: red;
}

strong {
  font-weight: bold;
}

/* 4.4 Dashboard & Main menu */
#dashboard .column {
  width: 50%;
  float: left;
  padding-bottom: 100px;
}

#dashboard .portlet {
  margin: 0 1em 1em 0;
}

#dashboard .ui-sortable-placeholder {
  border: 1px dotted #000;
  visibility: visible !important;
  height: 150px !important;
}

#dashboard .ui-sortable-placeholder * {
  visibility: hidden;
}

.dashboard-component {
  margin-bottom: .5em;
  padding: .5em;
  border: 1px solid #ccc;
  background: #fefefe;
  border-radius: 4px;
}

/* Admin Header Wrapper - Replaced Float Layout with Flex */
.admin-header-wrapper {
  width: 100%;
  min-height: 38px;
  margin-bottom: 0.5em;
}

#mainmenu {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: url('/images/rpt_x.png') repeat-x;
  position: relative;
  z-index: 998;
  overflow-x: auto;
  white-space: nowrap;
}

/* Closure elements as list items */
#mainmenu .closure {
  flex-shrink: 0;
  height: 38px;
  background-size: auto 100%;
}

#mainmenu .closure-left {
  width: 6px;
  background: url('/images/closure_left.png') no-repeat left top;
}

#mainmenu .closure-right {
  width: 213px;
  margin-left: auto;
  background: url('/images/closure_right_sociolutions.png') no-repeat right top;
}

#mainmenu li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#mainmenu a {
  padding: 0 20px;
  text-decoration: none;
  font-family: Arial, serif;
  font-size: 0.875rem;
  font-weight: bold;
  margin: 0;
  display: block;
  line-height: 38px;
  color: #fff;
  white-space: nowrap;
}

#mainmenu a:hover {
  background: url('/images/active_hover_rpt_x.png') repeat-x;
}

#mainmenu a.sep {
  padding: 0;
  background: url('/images/category_separator.png') repeat-x;
  width: 3px;
  cursor: default;
}

/* 4.5 Reports */
.report {
  padding: 1em;
  border: 1px solid #ccc;
  border-left: 1em solid #C90817;
}

.report-title {
  font-size: 2em;
  font-weight: bold;
  margin: 0 0 .5em 0;
}

.report-question {
  padding: 5px;
  border: 1px solid #ccc;
}

.report-charts {
  margin: .5em 0;
  padding: 3px;
  background: #efefef;
  border-bottom: 1px solid #999;
}

.report-chart {
  padding-right: 2px;
  cursor: pointer;
  display: inline;
}

.report-remarks {
  margin: .5em 0;
}

/* 5) Plugin/Legacy Scopes */
/* 5.1 Dokuwiki: nur sinnvolle Default-Anpassungen, Rest kommt via @import */
.dokuwiki ul li {
  list-style-type: disc;
  padding: 2px 0;
}

.dokuwiki ol li {
  list-style-type: decimal;
  padding: 2px 0;
}

.dokuwiki code {
  font-size: 1.4em;
}

.dokuwiki table.inline {
  background-color: #fff;
  border-collapse: collapse;
  border-spacing: 0;
}

.dokuwiki table.inline th {
  background-color: #f8f8f8;
  color: #638c9c;
  border: 1px solid #c4c4c4;
  padding: 3px;
}

.dokuwiki table.inline td {
  border: 1px solid #c4c4c4;
  padding: 3px;
}

/* 5.2 Pagehelp */
#pagehelp {
  z-index: 2000;
  position: absolute;
  right: 1em;
  top: .5em;
  overflow: auto;
  max-width: 300px;
  max-height: 95%;
}

#pagehelp input,
#pagehelp textarea,
#pagehelp select {
  max-width: 200px;
}

/* 6) UI Theme Tweaks (aus theme.css) */
.ui-button-text-only .ui-button-text,
input.ui-button,
a.ui-button {
  padding: .2em .4em !important;
}

.ui-tabs .ui-tabs-nav li a {
  padding: .2em .4em !important;
}

.ui-widget-header {
  padding: .5em;
}

.ui-widget-content {
  padding: .5em;
}

/* 7) Sprites & externe Styles
   Einbindung als @import, damit diese Datei die zentrale Backend-CSS ist,
   ohne zigtausend Zeilen zu duplizieren. */

/* 7.1 Silk sprite scaling utilities (relative sizing without breaking offsets)
   Usage:
   - Per element: <span class="silk silk-md silk-space silk-application"></span>
   - Global bump: add attribute on body → <body data-silk-scale="1.125"> */

/* Baseline normalization for silk icons */
.silk {
  display: inline-block;
  vertical-align: text-bottom;
  /* ensure transform scales from top-left so background-position stays aligned */
  transform-origin: top left;
}

/* Opt-out class (in case of global scaling) */
.silk-no-scale {
  transform: none !important;
}

/* Per-element scaler using CSS variable (default 1 = no change) */
.silk-scale {
  --silk-scale: 1.125;
  transform: scale(var(--silk-scale));
}

/* Convenient presets */
.silk-xs {
  transform: scale(0.875);
}

.silk-sm {
  transform: scale(1);
}

.silk-md {
  transform: scale(1.125);
}

.silk-lg {
  transform: scale(1.25);
}

/* Spacing helper: reserve visual space since transform doesn't affect layout flow */
.silk-space {
  margin-right: calc(0.25em);
}

/* Global scaling via data attribute on body; easy to toggle without editing CSS */
body[data-silk-scale="1.0625"] .silk {
  transform: scale(1.0625);
}

body[data-silk-scale="1.125"] .silk {
  transform: scale(1.125);
}

body[data-silk-scale="1.1875"] .silk {
  transform: scale(1.1875);
}

body[data-silk-scale="1.25"] .silk {
  transform: scale(1.25);
}

/* Keep menu icons readable slightly larger by default if they use .silk */
#mainmenu .silk {
  transform: scale(1.125);
}

/* 4.6 Admin Header/Footer & Utilities (aus Backup übernommen) */
h1.top,
h2.top,
h3.top,
h4.top,
h5.top,
h6.top {
  margin: 0 0 .5em 0;
  border-left: 0 solid #C90817;
  border-bottom: 2px solid #C90817;
  padding-left: 0.1em;
}

.yui-content {
  background: none !important;
}

/* Make header bar span full viewport width, but center inner content */
#sl-admin-header {
  box-sizing: border-box;
  /* sehr wichtig */
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #efefef;
  padding-bottom: 1em;
  /* avoid visual mismatch; inner will carry bg */
  /*border-bottom: 1px solid #ddd;*/
  /*box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);*/
}

#sl-admin-header-menu {
  position: relative;
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
  padding: 0;
  padding-right: 280px;
  /* Space for right section */
}

#sl-admin-header-menu .menu-left-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

#sl-admin-header-menu .menu-right-section {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1em;
}

#sl-admin-header-menu form {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

/* Standard: Mobile first */
.page-width {
  box-sizing: border-box;
  /* sehr wichtig */
  width: 100%;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
  margin: 0 auto;
  max-width: 100%;
}

/* Tablet / kleine Laptops */
@media (min-width: 768px) {
  .page-width {
    max-width: 720px;
    /* Formulare / Panels */
  }
}

/* Standard Laptops / Desktop */
@media (min-width: 1280px) {
  .page-width {
    max-width: 1200px;
    /* Breite für Panels / Inhalte */
  }
}

/* Große Monitore */
@media (min-width: 1600px) {
  .page-width {
    max-width: 1400px;
    /* Panels zentriert, nicht full width */
    padding-left: clamp(24px, 3vw, 48px);
    padding-right: clamp(24px, 3vw, 48px);
  }
}

/* Extra große Monitore (4K / 32"+) */
@media (min-width: 1920px) {
  .page-width {
    max-width: 95%;
    /* Tabellen & Dashboards können volle Breite nutzen */
    padding-left: clamp(32px, 3vw, 64px);
    padding-right: clamp(32px, 3vw, 64px);
  }
}

#sl-admin-footer {
  text-align: center;
  border-top: 1px dashed #ccc;
  padding-top: .5em;
  margin: 8em 0;
}

/* Align main content width with header/footer while avoiding nested wrappers */
#sl-admin-content {}

#surveyWaveTableContainer {
  cursor: pointer;
  margin: -10px 100px 2em 0;
  /*background: #fff;*/
  z-index: 999;
}

table #surveyToolbar * {
  background: #ffffff !important;
}

.ok {
  background-color: #8fbc8f;
  color: inherit;
}

.not-ok {
  background-color: #eeeeee;
  color: inherit;
}

.warning {
  background-color: #ee5555;
  color: inherit;
}

.form-help {
  font-size: .75em;
  color: #666666;
  line-height: 1.4;
  margin-top: .25rem;
  white-space: break-spaces;
  text-align: left;
}

.chosen-container {
  font-size: 1rem !important;
}

/*
  Overrides: Double spacings for Chosen components
  Scope: only .chosen* classes
*/

/* Single select */
.chosen-container-single .chosen-single {
  padding: 0 0 0 24px !important;
}

.chosen-container-single .chosen-single span {
  margin-right: 52px !important;
}

.chosen-container-single .chosen-single-with-deselect span {
  margin-right: 76px !important;
}

/* Search inside single select */
.chosen-container-single .chosen-search {
  padding: 6px 8px !important;
}

.chosen-container-single .chosen-search input[type="text"] {
  margin: 2px 0 !important;
  padding: 8px 40px 8px 10px !important;
}

/* Results list */
.chosen-container .chosen-results {
  margin: 0 8px 8px 0 !important;
  padding: 0 0 0 8px !important;
}

.chosen-container .chosen-results li {
  padding: 16px 18px !important;
}

.chosen-container .chosen-results li.group-option {
  padding-left: 30px !important;
}

/* Multi select */
.chosen-container-multi .chosen-choices {
  padding: 0 16px !important;
}

.chosen-container-multi .chosen-choices li.search-choice {
  margin: 6px 10px 6px 0 !important;
  padding: 10px 60px 10px 16px !important;
}

/* Group name spacing */
.chosen-container .search-choice .group-name,
.chosen-container .chosen-single .group-name {
  margin-right: 8px !important;
}

.chosen-container .search-choice .group-name:after,
.chosen-container .chosen-single .group-name:after {
  padding-left: 4px !important;
}

/* RTL adjustments */
.chosen-rtl .chosen-single {
  padding: 0 16px 0 0 !important;
}

.chosen-rtl .chosen-single span {
  margin-left: 52px !important;
}

.chosen-rtl .chosen-single abbr {
  left: 52px !important;
}

.chosen-rtl .chosen-choices li.search-choice {
  padding: 6px 10px 6px 38px !important;
}

.chosen-rtl.chosen-container-single .chosen-results {
  margin: 0 0 8px 8px !important;
  padding: 0 8px 0 0 !important;
}

.chosen-rtl .chosen-results li.group-option {
  padding-right: 30px !important;
}

.chosen-rtl .chosen-search input[type="text"] {
  padding: 8px 10px 8px 40px !important;
}

/* Ensure visible left spacing for collapsed Chosen single selects (higher specificity) */
.chosen-container.chosen-container-single a.chosen-single {
  /* Vertikales Padding oben/unten + vorhandenes linkes Padding */
  padding: 8px 0 8px 24px !important;
  height: auto !important;
  /* Höhe dynamisch aus Padding/Text ableiten */
  line-height: normal !important;
  /* verhindert, dass vertikales Padding verdrängt wird */
}

/* Keep inner text flush to the parent padding (avoid double padding or resets) */
.chosen-container.chosen-container-single a.chosen-single span {
  padding-left: 0 !important;
  margin-left: 0 !important;
  line-height: 1.2 !important;
  /* saubere Textzeilenhöhe innerhalb des Ankers */
}

/* 8) Vertical Survey Toolbar */
.survey-toolbar-vertical {
  position: fixed;
  top: 180px;
  /* Below header */
  right: 1rem;
  /* Detach from edge */
  width: 90px;
  /* 2 cols */
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.survey-toolbar-vertical .toolbar-group {
  border-bottom: 1px solid #e0e0e0;
  padding: 1px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  gap: 1px;
}

.survey-toolbar-vertical .toolbar-group:last-child {
  border-bottom: none;
}

.survey-toolbar-vertical a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border-radius: 2px;
  color: #333;
  text-decoration: none;
  opacity: 0.8;
}

.survey-toolbar-vertical a:hover {
  background-color: #e6e6e6;
  opacity: 1;
}

.survey-toolbar-vertical .ui-silk {
  margin: 0 !important;
  transform: scale(1.4);
  display: inline-block;
}

/* Responsive adjustment for laptop screens (MacBook, etc.) */
@media (max-width: 2600px) {
  .survey-toolbar-vertical {
    width: 70px;
    right: 2rem;
  }

  .survey-toolbar-vertical:hover {
    min-width: 70px;
  }

  .survey-toolbar-vertical a {
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .survey-toolbar-vertical .ui-silk {
    transform: scale(1.4);
  }

  .survey-toolbar-vertical .toolbar-group {
    padding: 4px;
    gap: 2px;
  }

  .survey-toolbar-vertical .toolbar-filter-select {
    font-size: 9px !important;
    width: 60px !important;
  }
}

.survey-toolbar-vertical .toolbar-filter-select {
  width: 76px;
  font-size: 10px;
  border-width: 1px;
  border-style: solid;
}

/* 5) Avant-Garde Settings UI (Refactored from inline) */
.qedit-tabs-container .modern-panel {
  background: transparent;
  padding: 1rem 0;
  /* Vertical breathing room, no horizontal padding */
  border: none;
  box-shadow: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-top: 0;

  /* Enable horizontal scrolling for wide content */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.qedit-tabs-container .modern-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
  letter-spacing: -0.025em;
}

.qedit-tabs-container .modern-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 2rem;
  row-gap: 1.25rem;
  align-items: center;
  /* Minimum width to force scrolling on small screens if content is wide */
  min-width: 600px;
}

.qedit-tabs-container .modern-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-align: right;
}

.qedit-tabs-container .modern-value {
  font-size: 0.95rem;
  color: #1f2937;
}

/* Reset jQuery UI overrides for functional correctness */
.qedit-tabs-container .ui-widget-content.modern-panel {
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Soft border if re-applied */
  background: #ffffff;
  color: inherit;
}

/* Interactive Elements Styling - Optimized Padding */
.qedit-tabs-container .editable {
  display: inline-block;
  /* Reduced padding as requested: 4px top/bottom, 28px right (for icon), 10px left */
  padding: 4px 28px 4px 10px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 60px;
  text-align: center;
  position: relative;
  white-space: nowrap;

  /* Pencil Icon via SVG Background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.qedit-tabs-container .editable:hover {
  border-color: #6366f1;
  /* Indigo-500 highlight */
  background-color: #eff6ff;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  /* Darker icon on hover */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z' /%3E%3C/svg%3E");
}

/* Help cursor items */
.qedit-tabs-container .modern-label span[title] {
  border-bottom: 1px dotted #9ca3af;
  cursor: help;
}

/* List reset within values */
.qedit-tabs-container .modern-value .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qedit-tabs-container .modern-value .list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Flmngr File Manager - Hide branding elements */
.n1ed-dlg__resize__content__header__title {
  display: none !important;
}

.FileManager__help li:first-child {
  display: none !important;
}

/* 9) Notification Center */
#notification-center-wrapper {
  position: relative;
}

.notification-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  padding: 0 8px;
  height: 38px;
  line-height: 38px;
}

.notification-bell-icon {
  font-size: 1.25rem;
  filter: grayscale(0.3);
  transition: filter 0.2s ease;
}

.notification-bell:hover .notification-bell-icon {
  filter: grayscale(0);
}

/* Fixed syntax error here */
/* 4.3 Notification Center (Modal) */
.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.notification-bell:hover {
  background-color: rgba(0,0,0,0.05);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #C90817;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 7px;
  padding: 0 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border: 1px solid #fff;
  z-index: 10;
}

/* Modal Content Styles */
.sl-notification-dialog .ui-dialog-content {
  padding: 0 !important;
}

.notification-toolbar {
  background: #f8f8f8;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  text-align: right;
}

.notification-toolbar a.button {
  font-size: 11px;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  font-weight: bold;
}

.notification-toolbar a.button:hover {
  color: #C90817;
}

.notification-body {
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
}

.notification-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.notification-item:hover {
  background: #f9f9f9;
}

.notification-item.unread {
  background: #fff5f5; /* Light red/pinkish tint for unread */
  border-left: 3px solid #C90817;
}

.notification-item.unread:hover {
  background: #ffebeb;
}

.notification-type-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: #ddd;
}

.type-success .notification-type-icon { background: #22c55e; }
.type-error .notification-type-icon { background: #ef4444; }
.type-notice .notification-type-icon { background: #3b82f6; }
.type-information .notification-type-icon { background: #3b82f6; }
.type-alert .notification-type-icon { background: #f59e0b; }
.type-warning .notification-type-icon { background: #f59e0b; }

.notification-message {
  flex: 1;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

.notification-empty {
  padding: 30px;
  text-align: center;
  color: #aaa;
  font-style: italic;
}
/* 5) Documentation Styling (viewManualSuccess) */
.docu-viewer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background-color: #fff;
}

/* Typography - Headers */
.docu-viewer h1,
.docu-viewer h2,
.docu-viewer h3,
.docu-viewer h4,
.docu-viewer h5,
.docu-viewer h6 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  position: relative;
}

.docu-viewer h1 {
  font-size: 2.5em;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5em;
  margin-top: 0;
  color: #111;
}

.docu-viewer h2 {
  font-size: 1.8em;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.3em;
}

.docu-viewer h3 {
  font-size: 1.4em;
  margin-top: 1.5em;
}

/* Text Elements */
.docu-viewer p {
  margin-bottom: 1.5em;
}

.docu-viewer strong {
  font-weight: 600;
  color: #111;
}

.docu-viewer a {
  color: #0366d6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.docu-viewer a:hover {
  border-bottom-color: #0366d6;
}

/* Lists - Robust Styling with !important to override backend default */
.docu-viewer ul,
.docu-viewer ol {
  padding-left: 2em !important;
  margin-left: 0 !important;
  margin-bottom: 1.5em !important;
  list-style-position: outside !important;
}

.docu-viewer ul {
  list-style-type: disc !important;
}

.docu-viewer ol {
  list-style-type: decimal !important;
}

.docu-viewer ul ul {
  list-style-type: circle !important;
  margin-top: 0.5em !important;
}

.docu-viewer ul ul ul {
  list-style-type: square !important;
}

.docu-viewer li {
  display: list-item !important;
  margin-bottom: 0.5em !important;
  list-style: inherit !important; /* Ensure inherited styles work from parent */
}

.docu-viewer li>p {
  margin-bottom: 0.5em;
}

/* Alert Boxes (Info/Warning) */
.docu-alert {
  padding: 16px 16px 16px 48px; /* Room for icon */
  margin: 0 0 1.5em 0;
  border-radius: 6px;
  position: relative;
  border-left: 4px solid #0366d6;
  background-color: #f0f7ff;
  color: #24292e;
}

.docu-alert::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  /* Info Icon (Blue) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='%230366d6'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1.5a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E");
}

/* Warning Box */
.docu-alert-warning {
  border-left-color: #d29922;
  background-color: #fff8c5;
}

.docu-alert-warning::before {
  /* Warning Icon (Yellow/Orange) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='%23d29922'%3E%3Cpath d='M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'/%3E%3C/svg%3E");
}

/* Standard Quote (not an alert) */
.docu-blockquote {
  padding: 0 1em;
  border-left: 0.25em solid #dfe2e5;
  color: #6a737d;
  margin-bottom: 1.5em;
  font-style: italic;
}

.docu-viewer blockquote {
  /* Reset default blockquote if targeted generally */
  margin: 0;
  padding: 0; /* Let docu-alert/blockquote handle padding */
  border-left: none; /* Let specific classes handle border */
}

/* Code Blocks */
.docu-viewer code {
  padding: 0.2em 0.4em;
  font-size: 85%;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  background-color: #f6f8fa;
  border-radius: 4px;
  color: #24292e;
}

.docu-viewer pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.5;
  background-color: #f6f8fa;
  border-radius: 6px;
  margin-bottom: 1.5em;
  border: 1px solid #e1e4e8;
}

.docu-viewer pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 100%;
}

/* Tables */
.docu-viewer table {
  display: block;
  width: 100%;
  overflow: auto;
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.docu-viewer table th,
.docu-viewer table td {
  padding: 10px 16px;
  border: 1px solid #dfe2e5;
}

.docu-viewer table th {
  font-weight: 600;
  background-color: #f6f8fa;
}

.docu-viewer table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.docu-viewer table tr:nth-child(2n) {
  background-color: #f8f9fa;
}

/* Images */
.docu-viewer img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Horizontal Rule */
.docu-viewer hr {
  height: 0.25em;
  padding: 0;
  margin: 2em 0;
  background-color: #e1e4e8;
  border: 0;
}
