/*
  RESET
  =====
  Reset declarations for a clean dom
*/

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
    margin:0;
    padding:0;
}
table {
    border-collapse:collapse;
    border-spacing:0;
}
img {
    border:0;
}
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;
}


.clear{
  clear:both;
}

.hidden{
  display:none;
}

form.pretty fieldset{
  border:#454545 solid 1px;
  padding:10px 20px;
}
form.pretty div{
  clear:both;
  margin:5px 0;
}
form.pretty div.column{
  clear:none;
  float:left;
  padding-right:20px;
}
form.pretty div.fieldWithErrors{
  clear:none;
  float:left;
}
form.pretty label{
  display:block;
  float:left;
  width:120px;
}
form.pretty .checkbox{
  margin:5px 0;
}

form.pretty.wide label{
  width:140px;
}
form.pretty.wide input[type=text], form.pretty.wide select{
  width:200px;
}

form.pretty.widest label{
  width:210px;
}

dl.key_value dd{
  margin-left:20px;
  font-style: italic;
}

dl.dl_intend{
  clear:left;
  padding-left:20px;
}
dl.dl_intend dd{
  float:left;
  width:350px;
}
dl.dl_intend dt{
  float:left;
  clear:left;
  font-weight:bold;
  width:140px;
}

/* begin css tabs */

ul.tabbed { /* general settings */
text-align: left; /* set to left, right or center */
margin:0; /* set margins as desired */
font: 11px arial, sans-serif; /* set font as desired */
border-bottom: 1px solid #333A4C; /* set border COLOR as desired */
list-style-type: none;
padding: 10px 10px 3px 10px; /* THIRD number must change with respect to padding-top (X) below */
margin-bottom:10px;
}

ul.tabbed li { /* do not change */
display: inline;
}

ul.tabbed li.selected { /* settings for selected tab */
border-bottom: 1px solid #fff; /* set border color to page background color */
background-color: #fff; /* set background color to match above border color */
}

ul.tabbed li.active a{
color:green;
}
ul.tabbed li.inactive a{
color:red;
}

ul.tabbed li a { /* settings for all tab links */
padding: 3px 4px; /* set padding (tab size) as desired; FIRST number must change with respect to padding-top (X) above */
border: 1px solid #333A4C; /* set border COLOR as desired; usually matches border color specified in #tabnav */
background-color: #e0e0e0; /* set unselected tab background color as desired */
color: #333A4C; /* set unselected tab link color as desired */
margin-right: 0px; /* set additional spacing between tabs as desired */
text-decoration: none;
border-bottom: none;
font-size:10pt;
}

ul.tabbed li.selected a { /* settings for selected tab link */
background-color: #fff; /* set selected tab background color as desired */
color: #000; /* set selected tab link color as desired */
position: relative;
top: 1px;
padding-top: 4px; /* must change with respect to padding (X) above and below */
}


ul.tabbed a:hover { /* settings for hover effect */
background: #fff; /* set desired hover color */
}

/* end css tabs */

td.amount{
  text-align:right;
}

table.smallcaption td, table.smallcaption th{
  font-size:10px;
}

p.loading{
  clear:left;
  text-align:center;
  padding:20px;
}

table.sortable th{
  cursor:pointer;
}
table.sortable th.sorting-desc:after{
  content: " ↑ ";
}
table.sortable th.sorting-asc:after{
  content: " ↓ ";
}

table tr.inactive, dl dt.inactive, dl dd.inactive{
  color:#999;
}
table tr.active, dl dt.active, dl dd.active{
  color:#000;
}

table tr.error, table td.error{
  color:red;
}

table tr.highlight{
  background-color:#FFA3A3;
}

table tr.odd{
  background-color:#f5f5f5;
}
table tr.even{
  background-color:#E0E0E0;
}

.warning_box{
  border:yellow 2px solid;
  background:#FFFFE3;
  padding:5px
}

.clipboard input, .clipboard button {
  float: left;
  font-size: 1em;
  padding: 5px;
  margin: 0;
  border: 1px solid #e0e0e0;
  outline: 0;
  box-shadow: none;
}
.clipboard input {
  width: 15em;
  background-color: #fff;
  border-right: 0 none;
  font-family: monospace;
}
.clipboard button {
  position: relative;
  background-color: #e0e0e0;
  cursor: pointer;
}

/* https://www.w3schools.com/howto/howto_css_notes.asp */
div.notes {
  margin-bottom: 15px;
  padding: 4px 12px;
}

div.notes .danger {
  background-color: #ffdddd;
  border-left: 6px solid #f44336;
}

div.notes .success {
  background-color: #ddffdd;
  border-left: 6px solid #4CAF50;
}

div.notes .info {
  background-color: #e7f3fe;
  border-left: 6px solid #2196F3;
}

div.notes .warning {
  background-color: #ffffcc;
  border-left: 6px solid #ffeb3b;
}
/**/

.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


#header {
  width: 100%;
  height: 140px;
  background-repeat: no-repeat;
  text-align: center;
}

#header h1 {
  margin-left: 100px;
  line-height: 100px;
}

#login {
  width: 400px;
  margin: 1px auto 0;
}

#login h1 {
  text-align: center;
}

#login form p {
  text-align: center;
  font-weight: bold;
  font-size: 12pt;
}

#login form p.error {
  color: red;
  padding-top: 20px;
}

#login div {
  margin-bottom: 10px;
  clear: left;
  width: 100%;
}

#login label {
  font-size: 12pt;
  width: 140px;
  display: block;
  float: left;
}

#welcome {
  text-align: center;
}

#footer {
  clear: both;
}

/* 404, 403 */
#forbidden {
  background: url(/images/icons/stop.png) 2% 50% no-repeat;
  line-height: 128px;
  height: 128px;
  padding-left: 150px;
}

#notfound {
  background: url(/images/icons/compass.png) 2% 50% no-repeat;
  line-height: 128px;
  height: 128px;
  padding-left: 180px;
}

#android_logo {
  padding-left: 100px;
  margin-top: 0px;
}


/* Adresse */
ul#addresses {
  list-style: none;
  margin: 0 auto;
}

div.address {
  background-color: #fff;
  padding: 10px;
  margin: 10px 0;
  border: #eee solid 1px;
}

div.address img {
  max-width: 220px;
  max-height: 220px;
  width: expression(this.clientWidth > 220 ? 220+"px" : this.clientWidth);
  height: expression(this.clientHeight > 220 ? 220+"px" : this.clientHeight);
}

a.phone_link {
  color: #000;
  text-decoration: none;
}

a.phone_link:hover {
  text-decoration: underline;
}

a#vcard {
  position: relative;
  left: 200px;
}

/* FDS */
#fdsstatus {
  margin: 0px auto 20px;
  width: 550px;
}

#fdsstatus h2 {
  margin-bottom: 25px;
  text-align: center;
}

table.skeleton {
  -moz-border-radius: 2px;
  border: #eee 1px solid;
  background: #fff;
  font-size: 10pt;
  padding: 20px;
}

table.skeleton th {
  padding: 5px;
  text-align: left;
  border-bottom: #eee solid 1px;
}

table.skeleton td {
  padding: 5px;
}

#page_content svg {
  width: 100%;
  height: 100%;
}

/* Help */
#instruction .tab .screenshot {
  float: left;
}

#instruction .tab .description {
  float: left;
  width: 50%;
  padding: 0 10px;
}

#instruction ul.tabbed {
  padding-left: 48px;
  background-repeat: no-repeat;
  background-position: 12px 50%;
}

#instruction ul.tabbed.android {
  background-image: url(/images/icons/material/android.png);
}

#instruction ul.tabbed.ios {
  background-image: url(/images/icons/material/apple.png);
}

#instruction ul.tabbed.windows {
  background-image: url(/images/icons/material/windows.png);
}

#instruction ul.tabbed.web {
  background-image: url(/images/icons/material/cloud.png);
}

/* OPEZ */
#opez_article_filter {
  padding-bottom: 10px
}

table.opez_group td,
table.opez_group th {
  padding: 0;
  font-size: 8pt;
  overflow: hidden;
}

table.opez_group .min {
  /*max-width:50px !important;*/
}

a.opez_group_link {
  font-size: 12pt;
  display: block;
  margin-top: 5px;
}

table.opez_data,
table.opez_data tr,
table.opez_data td {
  border: none;
}

table.opez_data tr:hover {
  background-color: none;
}

table.opez_data td.key {
  width: 180px;
}

table.opez_data td.value {
  width: 220px;
  font-weight: bold;
}

table#opez_table {}

table#opez_table td,
table#opez_table th {
  font-size: 8pt;
  text-align: right;
}

td.opez_loading {
  text-align: center;
}

/* Icons */
.icon_link {
  padding-left: 24px;
  height: 18px;
  line-height: 18px;
  background-position: 0 50%;
  background-repeat: no-repeat;
}

.icon {
  width: 16px;
  height: 16px;
  padding-left: 13px;
  text-decoration: none;
  background-position: 0 50%;
  background-repeat: no-repeat;
}

a.basket_delete {
  background-image: url(/images/icons/basket_delete.png);
}

#pagination .first {
  background-image: url(/images/icons/pagination_first.png);
}

#pagination .prev {
  background-image: url(/images/icons/pagination_prev.png);
}

#pagination .next {
  background-image: url(/images/icons/pagination_next.png);
}

#pagination .last {
  background-image: url(/images/icons/pagination_last.png);
}

span.stock_nok {
  background-image: url(/images/icons/stock_nok.png);
}

span.stock_ok {
  background-image: url(/images/icons/stock_ok.png);
}

a.csv {
  background: url(/images/icons/csv.gif) 0% 0% no-repeat;
}

a.print {
  background: url(/images/icons/printer.png) 0% 0% no-repeat;
}

a.pdf {
  background: url(/images/icons/pdf.png) 0% 0% no-repeat;
}

a.video {
  background: url(/images/icons/video.png) 0% 0% no-repeat;
}

a.product_info {
  background: url(/images/icons/product_info.png) 0% 0% no-repeat;
}

a.download {
  background: url(/images/icons/download.png) 0% 0% no-repeat;
}

a#thumbed.icon {
  background: url(/images/icons/document-view-thumbnail.png) 0% 0% no-repeat;
}

a#wide.icon {
  background: url(/images/icons/edit-list.png) 0% 0% no-repeat;
}

html, body {
  height: 100%;
}

body{
  font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif;
  letter-spacing:1px;
  font-size: 12pt;
  color: #333A4C;
  background-repeat:no-repeat;
  background-position:0 0;
  /*background-color:#1E1E1E;*/
  background-color:#363636;
}

a{
  color: #454545;
  border:none;
}

h1 {
  margin-top: 5px;
  margin-bottom:10px;
  font-size:14pt;
  font-weight:normal;
  color:#D20001;
  color:#c5201c;
  text-shadow: 0 0 3px #d0d0d0;
}

h1 a{
  color:#c5201c !important;
}

h2 {
  margin-top:10px;
  font-size:12pt;
  font-weight:bold;
}

/* nicer tables https://www.w3schools.com/howto/howto_js_filter_table.asp */
table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ddd;
  /* border-spacing:2px; */
}

table th, table td {
  text-align: left;
  padding: 5px;
  border: none;
  font-size: 9pt;
}

table th {
  font-weight: bold;
}

table tr {
  border-bottom: 1px solid #ddd;
}

table thead tr, table tr:hover, table tfoot tr {
  background-color: #f1f1f1;
}


fieldset{
  padding:10px;
  border:#eee 1px solid;
  margin:10px 0;
}
fieldset legend{
  font-style: italic;
}

pre {
  overflow:auto;
  /*padding: 20px;
  color: #aaa;
  background-color: #222;
  white-space: pre;
  text-shadow: 0 1px 0 #000;
  border-bottom: 1px solid #555;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4) inset, 0 0 20px rgba(0,0,0,0.2) inset;
  font: 16px/24px 'Courier New', Courier, 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;*/
}

noscript{
  position: fixed;
  top: 40px; /* below the topbar */
  left: 0;
  display: block;
  width: 100%;
  background: orange;
  padding: 10px;
  text-align:center;
  animation-name: sliding-behind-topbar;
  animation-duration: 1s;
  animation-timing-function: ease-in;
}

#switch_to_modern{
  display:none;
  position: fixed;
  bottom:0;
  left: 0;
  height:50px;
  padding: 10px;
  width: 100%;
  background: #f44336;
  text-align:center;
  color: white;
}

#switch_to_modern a{
  color: white;
  font-size: 14pt;
}
#switch_to_modern span{
  font-size: 10pt;
}

.sliding-bottom-up{
  display:block;
  animation: sliding-bottom-up 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes sliding-bottom-up {
    0%   { bottom:-70px;}
    100% { bottom:0px;}
}

@keyframes sliding-behind-topbar {
    0%   { top:0px;}
    100% { top:40px;}
}

.shake {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}
@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* header */
/*
#header{
  height:auto;
  background:none;
  width:95%;
  text-align:left;
  padding:25px 0 15px 50px;
  margin-bottom:20px;
  vertical-align: bottom;
}
#header a{
  display:block;
  float:left;
}
*/

#topbar{
  margin:0;
  padding:0;
  width:100%;
  height:40px;
  background: #000;
  z-index: 255;

  -moz-box-shadow: 0pt 0pt 10px #1f1f1f;
  -webkit-box-shadow: 0pt 0pt 10px #1f1f1f;
  box-shadow: 0pt 0pt 10px #1f1f1f;
}

#topbar #navigation li a, #topbar #navigation li#session_deadline{
  height:32px;
  /*border:solid red thin;*/
  display:block;
  line-height: 32px;
}

#topbar #navigation li.menu_icon a{
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 0 50%;
  padding-left: 42px;
}

#topbar #navigation li#addresses a{
  background-image: url('/images/icons/swissfm/adresse.png');
}
#topbar #navigation li#artikel a{
  background-image: url('/images/icons/swissfm/artikel.png');
}
#topbar #navigation li#fds a{
  background-image: url('/images/icons/swissfm/fm.png');
}
#topbar #navigation li#schemas a{
  background-image: url('/images/icons/swissfm/lageplan.png');
}
#topbar #navigation li#helpdesk a{
  background-image: url('/images/icons/swissfm/teamviewer.png');
}
#topbar #navigation li#opez a{
  background-image: url('/images/icons/swissfm/mis.png');
}
#topbar #navigation li#reports a{
  background-image: url('/images/icons/swissfm/mis.png');
}
#topbar #navigation li#calendar a{
  background-image: url('/images/icons/swissfm/kalender.png');
}
#topbar #navigation li#vorgang a{
  background-image: url('/images/icons/swissfm/archiv.png');
}
#topbar #navigation li#gebaeude_html a{
  padding-left: 68px;
  background-image: url('/images/icons/swissfm/gebaeude.png');
}

#topbar #navigation li#session_deadline{
  float:right;
  padding:5px 0;
}
#topbar #navigation li#session_deadline a{
  color:#454545;
  font-size:0.8em;
}

#navigation li#credits{
  padding:4px 0;
}

#navigation li#sign_off{
  float:right;
}
#navigation{
  list-style-type: none;
}
#navigation li{
  padding:4px 15px;
  float:left;
  text-align:center;
  /*border:red solid thin;*/
}
#navigation li#sign_off{
  float:right;
}
#navigation li.selected a{
  text-decoration: underline;
}
#navigation li a{
  color: #eee;
  font-size:0.8em;
  text-decoration: none;
}
#navigation li a:hover{
  color: #fff;
  text-decoration: underline;
}

ul#system_administration, ul#schemas, ul#system_supervision{
  padding-left:15px;
}

/* main content */
#content{
  width:97%; /* 99% because of the border lines*/
  padding:0;
  margin:20px auto;
  background:#fff;
  background: none repeat scroll 0% 0% #fff;

  /* old
  -moz-box-shadow: 0pt 0pt 10px #fff;
  -webkit-box-shadow: 0pt 0pt 10px #fff;
  box-shadow: 0pt 0pt 10px #fff;
  */

  -moz-box-shadow: 0pt 0pt 10px #fff, 0pt 10px 20px #eee inset;
  -webkit-box-shadow: 0pt 0pt 10px #fff, 0pt 10px 20px #eee inset;
  box-shadow: 0pt 0pt 10px #fff, 0pt 10px 20px #eee inset;

  border:#800300 solid 10px;
  border:#7D7D7D solid 10px;
  border:#e0e0e0 solid 10px;
}
#page_content{
  line-height:24px;
  padding:20px 25px 0;
  z-index:3;
  font-size: 10pt;
  overflow: hidden;
}
#page_content p{
  margin-bottom:20px;
}
#page_content p a{
  text-decoration:underline;
}

#login{
  width:400px;
  margin:50px auto 0;
}

#login h1{
  text-align:left;
}

#login form.pretty label{
  width:120px;
}
#login #login_remember label{
  width:auto;
  display:inline;
  float:none;
  font-size:10pt;
}

textarea {
  overflow: auto;
  width:280px;
  height:200px;
}

/* footer */
#footer{
  padding: 30px 20px 10px 20px;
  font-size: 8pt;
  float:right;
}
#footer p {
  display:block;
  font-style: normal;
  margin-bottom:5px;
}
#footer p, #footer a{
  color:#888;
}

/* errors */
#error_explanation {
  width: 450px;
  border: 2px solid #CC0000;
  padding: 7px;
  padding-bottom: 0;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#error_explanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px;
  margin-bottom: 0px;
  background-color: #c00;
  color: #fff;
}

#error_explanation ul li {
  font-size: 12px;
  list-style: square;
}

.field{
  clear:both;
}

.field label{
  display:block;
  float:left;
  width:100px;
  text-align:left;
}

.field_with_errors label{
  color:red;
}

.search_form{
  margin-bottom:10px;
  padding-bottom:10px;
}

#filter_header{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #eee;
}

#log_excerpt pre{
   max-height:300px;
}

td.icon_links, th.icon_links{
  line-height:16px;
}
td.icon_links a, th.icon_links a{
  padding:0 10px;
}

ul.ui-autocomplete{
  list-style:none;
  /*width:800px !important;*/
}

ul.ui-autocomplete li.ui-menu-item{
}

.ui-widget {
  font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif !important;
  font-size: 10pt !important;
}

form.pretty .zsd_field{
  /*margin-left:5px;*/
}
form.pretty .zsd_field label{
  width:auto;
}
