* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { display: flex; height: 100vh; font-family: open_sansregular, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;}
h1, h2, h3, h4 { font-family: open_sanssemibold, 'Helvetica Neue', Helvetica, Arial, sans-serif;}
h1 { font-size: 22px; margin-bottom: 20px;}
h2 { font-size: 18px;}
h3 { font-size: 16px;}
h4 { font-size: 14px;}
strong { font-family: open_sanssemibold, 'Helvetica Neue', Helvetica, Arial, sans-serif;}


.panel-success > .panel-heading {
    background-image: -webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);
    background-image: -o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));
    background-image: linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
    background-repeat: repeat-x;
}

.panel-success > .panel-heading {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.panel-danger > .panel-heading {
    background-image: -webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);
    background-image: -o-linear-gradient(top,#f2dede 0,#ebcccc 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));
    background-image: linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
    background-repeat: repeat-x;
}
.panel-danger > .panel-heading {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
        border-bottom-color: transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-body {
    padding: 15px;
}



.panel {
   margin-bottom: 20px;
   border: 1px solid #E1E6EF;
   box-shadow: none;
   position: relative;
   background-color: #FFF;
   color: #374767;
}


#content{
    padding-bottom: 30px;
}


.panelcontent {
    padding: 15px;
}

.panelcontent table{
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: 14px;
    border: none;
}



.panelcontent tr:first-child th {
    border-top: none;
}

.panelcontent table th, .panelcontent table td{
    vertical-align: top;
    padding: 8px;
    line-height: 1.42857143;
}

.panelcontent table th, .panelcontent table td{
    border-top: 1px solid #e4e5e7;
}

.panelcontent table .btn {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.table-striped > tbody > tr:nth-of-type(2n+1) {
    background-color: #f9f9f9;
}



/* *********************************************************
 * Sidebar
 * *********************************************************/

.sidebar {
    position: fixed; /* neu: fixiert an der Seite */
    top: 0;
    left: 0;
    height: 100vh;         /* ganze Fensterhöhe */
    overflow-y: auto;      /* scrollbar, wenn Inhalt zu lang */
    width: 240px;
    background-color: #333;
    color: white;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    padding-top: 40px;
}


.sidebar.closed {
    width: 0;
    overflow: hidden;
}

.sidebar .logo {
    text-align: center;
    width: 100%;
    padding: 20px 0;
    font-size: 20px;
    background: #222;
}

.sidebar ul {
    list-style: none;
    padding: 20px 0;
    width: 100%;
}

.sidebar ul li {
    padding: 0;
    text-align: left;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
}

.sidebar .submenu{
    padding: 0;
}

.sidebar .submenu li a{
    padding: 10px 20px 10px 30px;
}

.sidebar .submenu li a:hover{
    padding: 10px 20px 10px 30px;
}

.sidebar ul li a:hover {
    background-color: #222;
}

.sidebar ul li a.active{
    color: #FFB33C;
    font-weight: bold;
    background-color: #222;
}

#acp_topbar{
    width: 100%;
    background-color: #222;
    position: fixed;
    top: 0;
    left: 0;
    height: 40px;
    z-index: 10;
    color: #FFF;
}

/*#acp_msgbar{
    width: 100%;
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    height: 35px;
    z-index: 0;
    color: #FFF;
    top: -30px;
} */


#shwtpmn{
    display: inline-block;
    right: 10px;
    position: absolute;
    line-height: 25px;
    padding: 5px 10px;
    cursor: pointer;
}

#tpmn{
    display: none;
    background-color: #222;
    position: absolute;
    right: 0;
    width: 200px;
    padding: 0;
    text-align: right;
}

#tpmn ul{
    margin: 0;
    padding: 0;
}

#tpmn ul li{
    display: inline-block;
    width: 100%;
    border-top: 1px dotted #FFF;
}

#tpmn ul li a{
    padding: 5px 10px;
    display: inline-block;
    width: 100%;
    color: #FFF;
    text-decoration: none;
    font-family: open_sanssemibold, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#tpmn ul li a:hover{
    background-color: #333;
    color: #FF983D;
}



#content{
    padding: 20px 0 20px 20px;
    width: calc(100% - 60px);
    margin-top: 40px;
    margin-left: 10px;
    transition: margin-left 0.3s ease;
    display: inline-table;
}

#content.sdbaropen{
    width: calc(100% - 300px);
    margin-left: 240px;
}

/* *********************************************************
 * Menü
 * *********************************************************/
.submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.submenu.show {
    display: block;
}

/*.toggle-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin: 0;
    border-radius: 0;
    z-index: 1;border-right: 1px solid #FFF;
    z-index: 2;
} */
.toggle-btn {
    position: fixed;
    top: 0;
    left: 0;
    background: #333;
    color: white;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    border: none;
    z-index: 1000;
    font-size: 18px;
}


/* *********************************************************
 * Tabellen Grundaufbau
 * *********************************************************/
/* Tabelle allgemein */
table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

/* Tabellenkopf */
th {
    background-color: #f0f0f0;
    color: #333;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

/* Tabelleninhalt */
td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

/* Abwechselnde Hintergrundfarbe für Zeilen */
tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Hover-Effekt für Zeilen */
tbody tr:hover {
    background-color: #f1f1f1;
}

/* Optional: Zentrierung in bestimmten Spalten */
td.center,
th.center {
    text-align: center;
}

td.right,
th.right {
    text-align: right;
}


/* *********************************************************
 * ausklappbares Feld
 * *********************************************************/

/* Toggle-Box */
.toggle-content {
    display: none;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}



/* *********************************************************
 * Formulare Grundaufbau
 * *********************************************************/

/* Grundlayout für das Formular */
form {
 /*   max-width: 600px;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-family: sans-serif;*/
}

/* Label */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* Eingabefelder & Textareas */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* Wrapper für Checkboxen & Radios */
.form-check {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* Buttons */
.button, .lnkbutton {
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
    font-family: open_sanssemibold, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Buttons */
.button-sm, .lnkbutton-sm {
    padding: 3px 8px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
    font-family: open_sansregular, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Farbvarianten */
.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}



/* *********************************************************
 * ACP Msgbar
 * *********************************************************/
#acp_msgbar_container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* wichtig für 100%-Breite */
    pointer-events: none;
}

.acp_msgbar {
    position: relative;
    top: -150px;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: top 0.5s ease;
    width: 100%; /* volle Breite */
    pointer-events: auto;
}

    .acp_msgbar p {
    text-align: center;
    margin: 0;
}

.acp_msgbar.show{
    top: 0;
}

/* Statusklassen */
.acp_msgbar.info {
    background-color: #2196F3;
}
.acp_msgbar.success {
    background-color: #4CAF50;
}
.acp_msgbar.error {
    background-color: #f44336;
}

.acp_msgbar_close {
    position: absolute;
    right: 20px;
    top: 12px;
    cursor: pointer;
    font-size: 22px;
}

















/* *********************************************************
 * ACP Login
 * *********************************************************/
body.acplog {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
}

body.acplog .pin-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

body.acplog .pin-button {
    padding: 10px;
    font-size: 18px;
    border: none;
    background: #007BFF;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

body.acplog .pin-button:hover {
    background: #0056b3;
}

body.acplog .clear-button {
    grid-column: span 3;
    background: #dc3545;
}

body.acplog .clear-button:hover {
    background: #a71d2a;
}

body.acplog #acp_new_login {
    background: #ededed;
    width: 300px;
    height: auto;
    left: 50%;
    margin-left: -150px;
    top: 50%;
    margin-top: -280px;
    position: fixed; color: #333333;
    box-shadow: 0px 5px 5px -0px rgba(135, 254, 137, 0.3);
}

body.acplog #acp_new_login input {
    background: none repeat scroll 0 0 #fff;
    border: 1px solid #e6e9ed;
    border-radius: 0;
    color: #656d78;
    font-size: 16px;
    font-weight: 300;
    padding: 10px 15px 11px;
    width: 230px;
    margin-bottom: 10px;
}

body.acplog #acp_new_login h2{
    width: 100%;
    background-color: rgb(192, 26, 32);
    margin: 0;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    padding: 10px 10px;
}

body.acplog .codepad, .logindata{
    text-align: center;
    margin-top: 15px;
}

body.acplog .btnbox{
    text-align: center;
    padding: 0 0 15px;
}

body.acplog .codepad .number{
    width: 50px;
    height: 50px;
    font-size: 25px;
    text-align: center;
    margin: 5px 15px;
    padding: 11px 7px;
    color: #7e7e7e;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    background-color: #f4f4f4;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

body.acplog .codepad .numbdum{
    width: 50px;
    height: 50px;
    margin: 5px 15px;
    display: inline-block;
}

body.acplog .codepad{
    margin: 0 15px;
}

body.acplog .codepad .number:active{
    box-shadow: #139406 0 0 1px 1px;
}

body.acplog .codepad .digitbox{
    text-align: center;
    border: 1px solid #d5d5d5;
    width: 230px;
    height: 50px;
    margin: 5px auto 10px;
    padding: 5px;
}

body.acplog .codepad .digitbox .digit{
    border-bottom: 3px solid #d5d5d5;
    width: 40px;
    height: 35px;
    display: inline-block;
    line-height: 35px;
}

body.acplog #acp_new_login input[type="submit"]{
    margin: 0;
}

body.acplog #acp_new_login .btn-success{
    background-image: none;
}

@media screen and (max-device-width: 800px) {
    body.acplog #acp_new_login {
        top: 0;
        margin-top: 0;
        position: fixed;
        left: 0;
        margin-left: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
    }
}

.du_message {
    background-size: 40px 40px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%, transparent 75%, transparent);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.4);
    width: 100%;
    border: 1px solid;
    border-top-color: currentcolor;
    border-right-color: currentcolor;
    border-bottom-color: currentcolor;
    border-left-color: currentcolor;
    color: #fff;
    padding: 15px;
    position: fixed;
    _position: absolute;
    text-shadow: 0 1px 0 rgba(0,0,0,.5);
    animation: animate-bg 5s linear infinite;
    text-align: center;
}

.du_error {
    background-color: #de4343;
    border-color: #c43d3d;
    z-index: 2;
    margin-top: 0px;
}

#notification {
top: -95px;
z-index: 4;
z-index: 41;
}