@font-face {
  font-family: "VeraMono";
  src: url("fonts/VeraMono.ttf") format("truetype");
}

:root {
  --nav-height: 230px; /* zentrale Definition */
  --content-sub: 300px; /* Navigation + padding */
}

body
{
  font-family: "Source Sans Pro",sans-serif;
}

a {
  text-decoration: none;
}

.button_container
{
margin-top: 20px;
}

.application-title{
  position: absolute;
  top: 68px;
  left: 150px;
  color: #083262;
}

.button_container
{
  padding:5px 10px;
  border:1px solid #999;
  /*background:#ccc linear-gradient(#fff,#ccc);*/
  background: #EDEDED;
  color:#000;
  text-decoration:none;

  float: left;
  margin-top: 10px;
  margin-right: 30px;
  /*display: block;*/
  width: 140px;

}
.button_container a
{
  text-decoration:none;
  width: 100%;
  font-size: 17px;
  color: #54555A;
  text-transform: uppercase;
  font-weight: 300;
}

.KeyValueGrid {
  display: grid;
  grid-template-columns: max-content 1fr auto;
  row-gap: 8px;
  column-gap: 16px;
  align-items: start;
  row-gap: 1px;
}

.KeyValuePairButton {
  display: contents; /* Lässt die Kind-Elemente im übergeordneten Grid erscheinen */
}

.KeyValuePair{
  display:flex;
}

/* Trennlinie per ::after – nur für markierte Gruppen */
.grouped::after {
  content: "";
  grid-column: 1 / -1; /* Trennt über alle Spalten */
  height: 1px;
  background-color: #afafaf;
  margin: 3px 0;
  display: block;
}

/* Trennlinie für flex-basierte KeyValuePair */
.KeyValuePair.grouped {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #afafaf;
}

/* Container für User Data Blöcke mit gleicher Breite */
.user-data-container {
  display: flex;
  flex-direction: column;
  max-width: 700px;
}

.parameter-key{
  width: 210px;
  display: inline-block;
  font-weight: bold;
  white-space: nowrap;
}

.parameter-key-button
{
  font-weight: bold;
  white-space: nowrap;
}

.parameter-value-button{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.ErrorHeader
{
  color:  #e6440e;
}

.ErrorInfo
{
  color:  #e6440e;
}

.button_wrapper_single
{
  display:table;
}



.filter-form {
  margin-bottom: 15px;
}

.filter-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-field label {
  font-size: 0.85em;
  color: #555;
}

.filter-field input {
  padding: 3px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9em;
  width: 150px;
}

.filter-actions {
  display: flex;
  gap: 5px;
  padding-bottom: 1px;
}

.th-sortable {
  cursor: pointer;
  white-space: nowrap;
}

.th-sortable a {
  text-decoration: none;
  color: inherit;
}

.th-sortable:not(.th-asc):not(.th-desc) a::after {
  content: ' ↕';
  opacity: 0.35;
}

.th-sortable.th-asc a::after {
  content: ' ↑';
}

.th-sortable.th-desc a::after {
  content: ' ↓';
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.pagination a,
.pagination-current,
.pagination-disabled,
.pagination-ellipsis {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
}

.pagination-current {
  background: #555;
  color: #fff;
  border-color: #555;
  font-weight: bold;
}

.pagination-disabled {
  color: #aaa;
  border-color: #e0e0e0;
}

.pagination-ellipsis {
  border: none;
}

.pagination-info {
  margin-left: 8px;
  color: #666;
  border: none;
  padding: 0;
}

#footer {
  background: transparent url("images/footer_background.png") repeat no-repeat;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 0 0 0 32px;
  color: #2F2F2F; }
  #footer a {
    color: #2F2F2F; }
    #footer a:hover {
      text-decoration: underline; }

.agfeo_logo
{
  position: absolute;
  top: 40px;
  left: 30px;
  width: 100px;
  height: 100px;
}

.SecretServerHeaderCnt
{
  position: absolute;
  top: 70px;
  left: 350px;}
  .SecretServerHeaderCnt > h1
  {
    color:#54555A;
  }

/* Branding-Farben als CSS-Variablen (überschreiben commons-Defaults) */
:root {
  --brand-primary:   #083262;
  --brand-secondary: #e6440e;
  --brand-accent:    #FFD500;
  --brand-text:      #54555A;
  --brand-bg-light:  #EDEDED;
}

.SearchSystemCnt
{
  display: flex;
  width: 1505px;
}
.SearchSystemCnt > form
{
  width: 100%;
}

.search_img
{
  float:left;
  height: 32px;
  padding:5px;
  background: #EDEDED;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.SearchSystem
{
  float:left;}
  .SearchSystem > input
  {
    padding-left: 5px;
    border: none;
    background: #EDEDED;
    height: 32px;
    width: 280px;
    font-size: 17px;
    color: #54555A;
    font-weight: 300;
    width:100%;
    z-index: 5;
}

.fieldWrapper>label
{
  width: 200px;
}
.fieldWrapper>input
{
  width: 200px;
}

.note_card{
  display: flex;
}

.parameter_block-button
{
  width: 100%;
  background: #EDEDED;
  font-size: 17px;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  position: relative;
  margin-bottom: 5px;
  margin-right: 5px;
  height: fit-content;
}
.parameter_block{
  width: 100%;
  background: #EDEDED;
  font-size: 17px;
  border-radius: 6px;
  padding: 10px;
  display: grid;
  position: relative;
  margin-bottom: 5px;
  margin-right: 5px;
  height: fit-content;
}

  .parameter_block .fieldWrapper>label
  {
    display: block;
    float: left;
    width: 150px;
  }
  .parameter_block .fieldWrapper>input
  {
    width: 150px;
  }
  .parameter_block .list_header_wrapper
  {
    padding: 10px;
    float:left;
  }
  .parameter_block .list_value_wrapper
  {
    padding:10px;
    float:left;
  }

.parameter_wrapper{
  display:flex;
}

div.plugins
{
  float: left;
}

div.Configuration
{
  display: table;
}

.Configuration>.parameter_block
{
  width: 600px;
  float:left;
}

.cfgBlockLicenseServer
{
  display: table-cell;
  padding: 10px;
  border-radius: 6px;
}

.cfgBlockGeneral
{
  display: table-cell;
  padding: 10px;
  border-radius: 6px;
}

.cfgSubmitWrapper
{
  padding: 10px;
  float: right;
}

.list_header
{
  width: 330px;
  font-weight: bold;
  float:left;
}
.list_header_short{
  width: 100px;
  font-weight: bold;
  float:left;
}

.list_value
{
  flex: 1;
  float:left;
}

.list_actions
{
  margin-left: 5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Einheitliche Breite für Icon-Buttons */
.list_actions .btn-sm {
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-link{
  cursor: pointer;
}

.max_width{
  width: 100%;
}

.SecretServerTable
{
  height: min-content;
  border-collapse: unset;
  border: none;
  }
  .SecretServerTable thead
  {
    position: sticky;
    top: 195px;
  }

  .SecretServerTable th
  {
    background: #083262;
    color: white;
  }
  .SecretServerTable a
  {
    text-decoration: underline;
  }

  .SecretServerTable th a
  {
    color: white;
    text-decoration: none;
  }
  .SecretServerTable tr.odd
  {
    background: #EDEDED;
  }
  .SecretServerTable th.first_col
  {
    border-top-left-radius: 10px;
  }
  .SecretServerTable th.last_col
  {
    border-top-right-radius: 10px;
  }
  .SecretServerTable th
  {
    padding: 3px;
    font-size: 14px;
    text-transform: uppercase;
  }
  .SecretServerTable td
  {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 320px;
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .SecretServerTable td>div
  {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .SecretServerTable td a
  {
    color: #54555A;
    font-weight: bold;
  }
  .SecretServerTable th
  {
    border: 2px solid #083262;
  }
  .SecretServerTable th.desc
  {
    border: 2px solid #e6440e;
  }
  .SecretServerTable th.asc
  {
    border: 2px solid #e6440e;
  }
  .SecretServerTable th.orderable:hover
  {
    border: 2px solid #e6440e;
    /*border: 2px solid #FFD500;*/
    transition: border 0.5s;
  }

  .SecretServerTable .inactive_row
  {
    color: #7F7F7F;
  }

.form-group{
  margin-bottom: 0px;
}

.form-group > label
{
  min-width: 160px;
}

.form-group > select{
  max-width: 300px;
}

.hidden
{
  display:none;
}

.Configuration>div.log_download_cnt
{
  display: inline-grid;
}
.Configuration>div.log_download_cnt>a
{
  margin-bottom: 5px;
  margin-left: 10px;
}
.Configuration>div.log_download_cnt>button
{
  margin-bottom: 5px;
  margin-left: 10px;
}

.eskalate_table_cnt
{
  float: left;
  margin-right: 30px;
}

.HeaderWrapper
{
  margin-top: 20px;
}


.metric_chart_cnt{
  display: flex;
  flex-direction: column; /* Untereinander anordnen */
  height: calc(100vh - var(--content-sub)); /* Gesamthöhe minus Navigation */
}
.metric_chart{
  flex: 1; /* Nimmt den verfügbaren Platz ein */
  margin-bottom: 5px; /* Abstand zwischen den Charts */
}
.SystemStateChart_cnt
{
  height: 280px;
  width: 400px;
  float:left;
}

.FirmwareChart_cnt
{
  height: 280px;
  width: 400px;
  float:left;
}

.SystemStateTSChart_cnt{
  height: 400px;
  width: 600px;
}

.FirmwareTSChart_cnt{
  height: 400px;
  width: 600px;
}

.SecretServerTable tr.default_template{
  background: #FFD500;
}

.btn-default{
  background-color:#FFD500;
}

.Monospace{
  font-family: "VeraMono", sans-serif;
}

td.value-cell{
  text-align: right;
}

td.complex-cell{
  padding: 0px;
}

.cell_warning{
  font-weight: bold;
  border: 2px solid #FFD500;
}
.cell_error{
  font-weight: bold;
  border: 2px solid #e6440e;
}


.status-ok{
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #d4edda;
  border: 1px solid #28a745;
  color: #1a1a1a;
}

.status-error{
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #fde8e2;
  border: 1px solid #e6440e;
  color: #1a1a1a;
}

.status-warning{
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #fff3cd;
  border: 1px solid #e6c000;
  color: #1a1a1a;
}

.status-unknown{
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #e9ecef;
  border: 1px solid #adb5bd;
  color: #1a1a1a;
}

.status-ok-block {
  border-left: 5px solid #28a745;
  background-color: #f0faf2;
}

.status-warning-block {
  border-left: 5px solid #e6c000;
  background-color: #fffdf0;
}

.status-error-block {
  border-left: 5px solid #e6440e;
  background-color: #fdf3f0;
}

.actions_container{
  display: flex;
  flex-direction: column;
  width: fit-content; 
  margin-right: 15px; 

  border-right: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  border-top: 1px solid darkgray;
  padding: 5px 5px 0px 2px;
  height: fit-content;
  border-radius: 0px 10px 10px 0px;
  margin-left: -20px;
}
.actions_container button, .actions_container a{
  margin-bottom: 5px;
}

.actions_container .btn-primary{
  min-width: 45px;
}

.actions_spacer{
  margin-top: 20px;
}

.green_button{
  font-size: 20px;
  background-color:#85e60e;
  border-color: #78cf0d;
  color: #fff;
}
.green_button:hover{
  background-color:#78cf0d;
}

.red_button{
  font-size: 20px;
  background-color:#e6440e;
  border-color: #cf3d0d;
  color: #fff;
}
.red_button:hover{
  background-color:#cf3d0d;
}

.warning{
  color: #cf3d0d;
  font-weight: bold;
}

.enabled{
  color: green;
  font-weight: bold;
}

.blue_button{
  font-size: 20px;
  background-color:#007bff;
  border-color: #006fe6;
  color: #fff;
}
.blue_button:hover{
  background-color:#006fe6;
}

.yellow_button{
  font-size: 20px;
  background-color:#FFD500;
  border-color: #e6c000;
  color: #fff;
}
.yellow_button:hover{
  background-color:#e6c000;
}

.icon_wrapper{
  width:fit-content;
  float: left;
}
.status_wrapper{
  display: flex;
  flex-direction: row;
}

.icon_wrapper svg{
  height: 1.1rem;
}

.system-content-wrapper{
  width:fit-content;
}

#system-cnt{
  display: flex;
  flex-wrap: wrap;
}
#system-details{
  display:flex;
  flex-wrap: wrap;
  margin-right: 120px;
  margin-bottom: 20px;
}
#system-user{
  margin-right: 50px;
}



.pbx_link_cnt{
  display: flex;
  justify-content: space-between;
}

.user_cfg_actions{
  margin-top:20px;
  border: 1px solid #ddd;
  padding: 5px;
  width: fit-content;
  border-radius: 10px;
  background-color: #fafafa;
}

.SecretServerHome{
  display: flex;
  align-items: flex-start;
}

.HomeStatistics{
  display: flex;
}

/* Django Styles */
p {
  padding: 0;
  line-height: 140%;
}

.flex-container{
  display: flex;
}

.module {
  border: none;
  margin-bottom: 30px;
  background: var(--body-bg);
}

fieldset {
  margin: 0;
  margin-bottom: 0px;
  min-width: 0;
  padding: 0;
  border: none;
  border-top: 1px solid var(--hairline-color);
  width: 600px;
}

.aligned label {
  display: block;
  padding: 4px 10px 0 0;
  min-width: 160px;
  width: 160px;
  word-wrap: break-word;
  line-height: 1;
}

.required label, label.required {
  font-weight: bold;
  color: var(--body-fg);
}

.aligned .form-row input {
  margin-bottom: 0;
}

.form-row {
  overflow: hidden;
  padding: 10px;
  font-size: 0.8125rem;
}

form .aligned ul li {
  list-style: none;
}

form .aligned p.help, form .aligned div.help {
  margin-top: 0;
  margin-left: 160px;
}

div.help li {
  font-size: 0.6875rem;
  color: var(--body-quiet-color);
}

.help, p.help, form p.help, div.help, form div.help, div.help li {
  font-size: 0.6875rem;
  color: var(--body-quiet-color);
}

form div.help ul {
  padding-left: 0;
  margin-left: 0;
}

#feedback{
  margin-left: 250px;
}

#feedback .a{
  text-decoration: none;
}

#feedback .a:hover{
  text-decoration: none;
}

.test_content{
  display:flex;
  flex-direction: row;
  width: fit-content;
  border-radius: 10px;
  border: 1px solid #54555A;
  box-shadow: 7px 4px 10px #54555A;
  align-items: center;
}
.test_content>div, .test_content>svg , .test_content>button{
  margin: 5px;
}
.test_short_info{
  min-width: 400px;
}

.test_popup{
  padding: 20px;
  max-height: 80%;
  overflow-y: auto;
}

.test-protocol{
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.inline{
  display: ruby;
}

#Logs_tab{
  width:100%;
}
#Logs_tab .chart-container, #Resources_tab .chart-container{
  height: 200px;
  width: 100%;
}


#Logs_tab #myChart{
  height: 100%;
  width:100%
}

td.log_msg{
  max-width: 700px;
}

.resource-container{
  margin-top: 15px;
  display: flex;
  flex-direction: row;
}

.flex-container{
  display: flex;
}
.SystemOverview-Header{
  display: flex;
}
.Filter-Statistik{
  display: flex;
  margin-left: 40px;
  align-items: center;
}

.button_space{
  margin-left:5px;
}

.table-container{
  margin-bottom: 20px;
}

.th-icon{
  text-align: center;
}

.container{
  max-width:1310px;
}
.wizard_header {
  width: 70%;
}
.wizard-form {
  margin-top: 15px;
}
.wizard-form label {
  font-weight: bold;
  min-width: 180px;
}
.progress {
  height: 25px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.progress-bar {
  border-top-right-radius: 4px;
  background-color: #083262;
  line-height: 25px;
  width: 30%;
}
.form-container {
  border: 1px solid #eee;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  border-radius: 4px;
  background-color: #fcfcfc;
}
.wizard-buttons {
  margin-top: 20px;
}
.wizard-buttons button {
  margin-left: 8px;
}
.filter-container {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 4px;
}
.wizard-table{
  width: 100%;
}

.clipboard_sml{
  font-size: .775rem;
  padding: 1.5px 5px 2px 5px;
  margin-left: auto;
}

.text-button{
  padding-left: 0px;
  padding-right: 0px;
}

.form-cols{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#id_userdata-0-ssh_public_key{
  min-width: 800px;
  height: 80px;
}

.pwd-form label{
  font-weight: bold;
  min-width: 200px;
}

.progress-bar-warning {
    background-color: yellow;
}

.progress-bar-danger {
    background-color: red;
}

.progress-bar-success {
    background-color: green;
}
.ip-pool-chart-container{
  width: 200px;
  height: 28px;
  flex: none;
}

.alarm-selector{
  border: 1px solid black;
  padding-left: 5px;
  margin-bottom: 10px;
}

.alarm-selector .col-form-label{
  padding-top: 1px;
  padding-bottom: 1px;
}
