﻿/* === Allgemeiner Style === */
a {
  color: #509e2f;
}
a:hover {
  color: #509e2f;
  text-decoration: underline;
}
html {
  font-size: 100%;
}
body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1em;
  line-height: 1.5;
}

#cat_device_filter_wrapper label{
	position: static !important;
}

#cat_device_filter_wrapper select{
	width:100% !important;
	position: static !important;
}

main {
    margin-top: 70px;
}

h1, h2, h3 {
  color: #509e2f;
  font-family: "Oswald", sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 2rem;
}

h2{
    font-size: 1.5rem;
    margin: 1rem 0 1rem 0;
}

h3{
   font-size: 1.25rem;
}

.btn-primary {
  background-color: #4d9d34;
  background-image: none;
  color: #ffffff;
  font-weight: normal;
  text-transform: lowercase;
  transition: all ease-in-out 0.4s;
}

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

.btn-primary:hover
{
    background-color: #6d6d6d;
}

.btn{
    text-transform: none !important; 
}

.sort-btn {
    margin: 0 !important;
    padding: 0;
    font-weight: bold;
    text-transform: none !important;
    display: inline;
}

.pp_filter_area, .pp_filter_area_style {
    background-color: #eee;
    margin-top: 1em;
    padding-top: 1em;
}

.ZweiZeichen {
    display: inline;
    width: 45px;
    padding-right: 0 !important
}

.VierZeichen {
    display: inline;
    width: 65px;
    padding-right: 0 !important
}

.fields-spacer {
    display: inline-block;
    margin: 0 1px;
    text-align: center;
}

.tbl_formfield_date_calendar {
    width: 200px;
}

.disabled_buttons button {
    opacity:0.5;
    pointer-events: none;
}

/* nicht auf btn ändern, da es eine Bootstrap Klasse ist */
table.has_edit_icons tr td:last-child a.e-btn,
.has_edit_icons a.e-btn {
    margin-left: 0.5rem;
    font-size: 1.25rem;
} 

.table-responsive tr:hover td,
/*Für Kundenübersicht*/
.header:hover,
.employee_row:hover {
    background-color: #eee;
}

.table 
{
    margin-bottom: 2rem;
}

table.table tr td:last-child {
    white-space: nowrap;
}

.table-responsive th, 
.table-responsive td {
    border-right: none;
    border-left: none;
}

.table-responsive table{
    border-left: none;
    border-right: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    color: #3c3c3b;
    background-color: #ffffff;
    border-color: #cccccc;
    border-radius: 0;
}
.pp_container {
  margin: 40px auto;
}
.delete_action {
  color: red !important;
}

.delete_disabled, .edit_disabled
{
    color: #6d6d6d !important;
}

.col-form-label {
    width: 140px;
    padding-left: 15px;
}
.general-form-size {
  max-width: 700px;
}

.form-check-input {
    line-height: 1.5;
    margin-left: 0;
    position: static;
    margin-top: 0;
}

.was-validated .form-control:invalid, .form-control.is-invalid {
    background-color: #F6E4E4;
}

.was-validated .form-control:valid, .form-control.is-valid {
    background: transparent;
}

.form-control-digits-3 {
    width: 65px;
    display: inline-block;
    margin-right: 10px;
    padding-right: 0 !important
}

.custom-file-label {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    z-index: 50;
}

.custom-file-label::after {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-weight: 900;
    line-height: 1;
    font-family: 'Font Awesome 5 Free';
    padding-top:10px;
    content: '\f093';
}

.pagination{
    margin-left: 3px;
}

.pagination a {
    color: #4d9d34 !important; 
}

.pagination .active {
    background-color: #4d9d34;
    color: #FFF !important;
}

.page-item.active .page-link {
    background-color: #4d9d34;
    color: #FFF !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.was-validated .form-control:invalid, .form-control.no_validation_img {
    background-image: none !important;
    padding-right: 0px !important;
}

.txt_error{
    color: red;
}

.click_audit {
    cursor: pointer;
}

.status_color_alright,
.status_color_alright_hover:hover,
.status_color_alright a,
.status_color_alright_hover:hover a,
.status_color_alright td,
.status_color_alright_hover:hover td {
    color: #00a848 !important;
}

.status_unaudited,
.status_unaudited_hover:hover,
.status_unaudited a,
.status_unaudited_hover:hover a,
.status_unaudited td,
.status_unaudited_hover:hover td {
    color: #eb612a !important;
}

.status_missing,
.status_missing_hover:hover,
.status_missing a,
.status_missing_hover:hover a,
.status_missing td,
.status_missing_hover:hover td {
    color: #e3c25b !important;
}


.status_under_repair,
.status_under_repair_hover:hover,
.status_under_repair a,
.status_under_repair_hover:hover a,
.status_under_repair td,
.status_under_repair_hover:hover td {
    color: #40493b !important;
}

.status_out_of_service,
.status_out_of_service_hover:hover,
.status_out_of_service a,
.status_out_of_service_hover:hover a,
.status_out_of_service td,
.status_out_of_service_hover:hover td {
    color: #949393 !important;
}


.status_archived,
.status_archived_hover:hover,
.status_archived a,
.status_archived_hover:hover a,
.status_archived td,
.status_archived_hover:hover td {
    color: #949393 !important;
}



/* Autocomplete
----------------------------------*/
.ui-autocomplete {
    position: absolute;
    cursor: default;
}

/* workarounds */
* html .ui-autocomplete {
    width: 1px;
}
/* without this, the menu expands to 100% in IE6 */

/* === Benachrichtigung über Box === */
.message-box {
  margin: 15px 0 0 0;
  padding: 15px;

}

.message-box ul {
    margin-bottom:0;
}

.box-error {
  background-color: #F6E4E4;
  color: red;
}

.box-success {
  background-color: #ddedc1;
  color: #509e2f;
}
/* === Login === */
#login_frame {
  background-image: none;
  background-color: #509e2f;
  height: 100vh;
  position:absolute;
  top:0;
  width: 100vw;
  z-index: 10;
}
#login_frame .bg_overlay {
  background-color: rgba(0, 0, 0, 0.25);
}
#login_frame .login_panel {
  border: 1px solid #cccccc;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1rem;
}

#login_frame .message-box {
    width:100%;
}

#login_frame.pwasswort_reset .login_panel {
        width: 520px;
        max-width: 100%;
}

/* === Header === */

header {
    position: fixed;
    width: 100%;
    top: 0;
	height: 70px;
	
    /* overflow: hidden; es wird ansonsten das Benutzermenü abgeschnitten */
    z-index: 10;
}

.scan-button {
    font-size:3.5rem !important;
    width:100%;
    position:relative;
}

.scan-button:after {
    content: "Barcode Scanner";
    position:absolute;
    font-size: 1rem;
    width:100%;
    left:0;
    bottom:0.25em;
    text-align:center;
}

.navbar {
    padding: 0 1rem;
    justify-content: space-between;
}

.navbar .navbar-brand {
  padding: 0.5rem 0rem;
}

.navbar li {
  height: 100%;
  padding: .5rem;
  border-bottom: 1px solid #509e2f;
  transition:  ease-in-out .3s;
}

.navbar li:hover, .navbar li.active
{
    background-color: #656563;
} 

.navbar li a {
  box-shadow: none;
  text-decoration: none;
   transition: color  ease-in-out .3s;
   width: 100%;
   display:block;
}

.navbar li:hover a, 
.navbar li.active a{
    color: #FFF;
}

.col-nav {
    border-right: 1px solid #509e2f;
    width: 215px;
    position: fixed;
    height: 100vw;
}

.col-nav + .col {
    max-width: calc(100% - 215px);
    margin-left: 215px;
}

.col-nav + .col .container {
    max-width: 100%;
}

#user_menu {
	width: auto;
}

#user_menu ul {
    position: absolute;
	top: 70px;
	right: 0px;
    background-color: #e3e7eb;
    list-style: none;
	padding: 15px;
	display: none;
}

#user_menu ul li{
    white-space: nowrap;
}

#user_menu .user_name {
	cursor: pointer;
	color: #509e2f;
}

#user_menu .user_name i{
	margin-left: 1rem;
}

#user_menu.user_menu_in_customer_view ul {
	background: transparent;
	top: 20px;
	right: 15px;
}

/* === Kunden erfassen / liste === */

.customer_accordion .header
{
    cursor:pointer;
    display:flex;
}

.accordion_body {
    display: none;
    padding-left: 1rem;
}

#customer_list.overview .header:nth-child(2n) {
    background-color: rgba(0,0,0,.02);
}

.customer_accordion > .accordion_body {
    padding-left: 0;
}

.ui-accordion-header-icon {
    font-size: 1.25em;
    vertical-align: middle;
    margin-right: 0.5em;
    transition: all 0.3s ease-in-out;
}

.ui-accordion-header-icon.open {
    transform: rotate(90deg);
}

#customer_edit .col-form-label
{
    width: 90px;
}

.customer_accordion .accordion_body .ui-accordion-header-icon:not(.invisible) {
    margin-left: 25px;
}

.customer_accordion .accordion_body {
    margin-left: 30px;
}

.customer_is_archived a {
    color: #6d6d6d !important;
}

.customer_is_archived a:not(.edit_customer) {
    pointer-events: none;
}

.count_of_device_list {
    font-size: 1rem !important;
}

/* === Prüfkatalog erfassen === */
.point_audit_number {
    padding: 0 0 0 15px;
    width: 30px;
}

/* === Geräte Übersicht === */

.device_overview_customer h1
{
    font-size: 2.5rem;
}

#device_status_box {
    background-color: #eee;
    border: 5px solid #4d9d34;
    width: 230px;
    padding: 1em;
}

#device_status_box table tr td:first-child
{
    width:175px;
}

.fixed-table-toolbar
{
	display: none;
}

#device_status_box table tr td:last-child
{
    text-align: right;
}

#device_status_box .status_filter_link {
    cursor: pointer;
    text-decoration: underline;
    color:#495057;
}

.status_filter_link.status_on{
    font-weight: bold;
}

#device_list img {
    width: 50px;
}

#device_list tr td:first-child
{
    white-space:nowrap;
}

#device_list tbody tr:nth-child(2n) {
    background-color: rgba(0,0,0,.02);
}

#edit_new_device label.col-form-label {
    width: 160px;
}

.responsibility_ctrl.orientaion_horizontal {
    display:flex;
    flex-direction:row;
}

.responsibility_ctrl.orientaion_horizontal label{
    width: 120px;
    margin-left: 20px !important;
}

.responsibility_ctrl.orientaion_horizontal .row:first-child label {
    margin-left: 0 !important;
}

/* === Geräte Detail === */

#product_image img
{
    max-height:250px;
}

.table-device-detail
{
    margin-bottom:1.5rem;
}

.table-device-detail td
{
    vertical-align:top;
}

.table-device-detail tr td:first-child {
    width: 200px;
}

.table-device-detail .device_value
{
    font-weight:600;
}

.dev_status_okay {
    color:#4d9d34;
}

.customer_view{
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ==== Prüftermin erfassen ==== */
#audit_form .col-form-label {
    width: 160px;
}
.completed_audit {
    background-color: #9de3a1 !important;
}
/* === Geräte Prüfungsseite */
.tab_check_result td
{
    padding-bottom:20px;
    line-height:1.5rem;
}

.tab_check_result input[type=radio]
{
    display:none;
}

.point_check_result {
    border: 1px solid;
    width: 30px;
    line-height: 30px;
    text-align: center;
    cursor:pointer;
    transition:ease-in 0.3s;
}

.point_check_result:hover {
    background-color: #6d6d6d;
}


label.on{
    margin-right: 10px;
}

label.off {
    margin-left: 10px;
}

.tab_check_result input[type=radio]:checked +
label.on .point_check_result {
    color: #509e2f;
}

.tab_check_result input[type=radio]:checked +
label.off .point_check_result
{
    color:red;
}

.mobile_nav_button {
    display:none;
}

main > .container {
    width: 98vw !important;
    max-width: 98vw;
}

/* === report table */
.report_table b
{
    font-weight:bold;
}


#modal-device-history {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgb(0, 0, 0, 0.65);
    z-index: 1000;
}

#modal-device-history div.wrapper {
    position: relative;
    background-color: #FFF;
    width: 50vw;
    overflow: hidden;
    padding: 0 25px;
}

#modal-device-history div.content {
    max-height: 80vh;
    overflow-y: auto;
}

#modal-device-history .fa-times-circle{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === IPAD Navigation */
@media (max-width: 1024px) {
    .col-nav {
        transition: left .4s ease-in-out;
        left: -215px;
        top: 150px;
    }

    body.open .col-nav {
        left: 0px;
    }

    .col-nav + .col {
        max-width: 100%;
        transition: left .4s ease-in-out;
        position: absolute;
        left: 0px;
        top: 150px;
        margin-left: 0;
    }
    body.open .col-nav + .col {
        left: 215px;
    }

    .mobile_nav_button {
        display: block;
        position:fixed;
        z-index: 10;
    }

    .table a
    .has_edit_icons a{
        font-size: 1.75rem !important;
    }

    table.has_edit_icons tr td:last-child a,
    .has_edit_icons a{
        margin-left: 0.75rem;
    }

    .table tr td:last-child
    {
        white-space:nowrap;
    }

    .container {
        max-width: 99vw !important;
    }
}


  
