/* 

    Inhaltsverzeichnis Waste X App

    1. Allgemein
    2. App Bar Header
    3. Navigation
    4. Auftrag anlegen


*/


/********************
    1. Allgemein 
*********************/ 


body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    max-width: 100%;
    overflow-x: hidden;
}

.app-content {
    padding: 20px;
    overflow-y: auto;
    background-color: #f4f4f4;
    margin-bottom: 100px;
}

input[type=text] {
    border-color: #ddd;
}


.btn-block {
    width: 100%;
    text-align: center;
}

.btn-icon i {
    margin-right: 10px;
}

.mr-10 {
    margin-right: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-50 {
    margin-top: 50px;
}

.text-center {
    text-align: center;
} 

.text-grey-small {
    font-size: 14px;
    color:#565656;
}

.text-right {
    text-align: right;
}

.button-row a,
.button-row button {
    margin: 0 5px 10px 0;
}

/********************
    2. App Bar Header 
*********************/ 

.app-bar-header {
    text-align: center;
    background-color: #fff;
    margin-bottom: 20px;
    padding: 15px 0;
}

.app-bar-header img {
    height: 45px;
}

/********************
    3. Navigation 
*********************/ 

.navbar-bottom {
    position: fixed!important;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: center;
}

.navbar-item {
    flex: 0 0 auto; /* Items schrumpfen nicht */
    width: 80px; /* gleiche Breite für alle Items */
    text-align: center;
    color: #fff !important; /* Textfarbe bleibt weiß */
    font-size: 12px;
    white-space: normal; /* Zeilenumbruch erlaubt */
    text-decoration: none;
}

.navbar-item i {
    display: block; /* Icon über Text */
    font-size: 18px !important;
    margin-bottom: 4px;
    color: #fff !important; /* Icon bleibt weiß */
}

.navbar-menu::-webkit-scrollbar {
    height: 4px;
}

.navbar-menu::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.navbar-menu {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
    background-color: #17b3f2!important;
    padding: 12px 0!important;
}



.navbar-menu {
    display: flex!important;
    overflow-x: scroll;
}

.navbar-menu i {
    margin-right: 5px;
}


/********************
    4. Auftrag anlegen 
*********************/ 

.switch {
    display: none; 
}


.stellgenehmigung_switch label,
.halteverbotszone_switch label{
    cursor: pointer;
    position: relative;
    padding-left: 60px; 
    line-height: 24px;
}

.stellgenehmigung_switch label:before, 
.halteverbotszone_switch label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 15px;
    transition: background-color 0.3s;
}

.stellgenehmigung_switch label:after,
.halteverbotszone_switch label:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%; 
    transition: transform 0.3s;
}

.switch:checked +  label:before {
    background-color: #3e8ed0;
}

.switch:checked +  label:after {
    transform: translateX(20px);
}

/* Container des Tom Select Felds */
.select-search.tomselected, 
.select-search + .ts-control,
.ts-control {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;             /* Bulma standard */
    border: 1px solid #dbdbdb;      /* Bulma border */
    padding: 0.375em 0.75em;        /* gleiche Höhe */
    box-sizing: border-box;
}

/* Input im Tom Select */
.ts-control .ts-input {
    padding: 0;
    margin: 0;
    font-size: 1rem;
}

/* Dropdown-Liste */
.ts-dropdown {
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
}

/* Fokus/Hover Effekt */
.ts-control.ts-focus {
    border-color: #3273dc;  /* Bulma primary */
    box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

/* Platzhalterfarbe */
.ts-placeholder {
    color: #7a7a7a;
}

/* Pfeil-Icon (optional) */
.ts-control::after {
    content: "\f078"; /* FontAwesome Pfeil-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


/* Minimaler Toggle-Look */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .check {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 20px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: 0.2s;
}
.switch .check:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .check {
  background-color: #48c774; /* Bulma success green */
}
.switch input:checked + .check:before {
  transform: translateX(20px);
}




/*-----------------
	29. emoji selectors
-----------------------*/

.qualitySelector {
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 4px;
	cursor: pointer;
  }
  
  .qualityOption {
	display: inline-block;
	padding: 4px;
  }
  
  .qualityOption:hover {
	background-color: #eee;
  }

  .qualityOption.selected {
	background-color: #008cba;
	color: #fff;
  }

  .beschaffenheitSelector {
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 4px;
	cursor: pointer;
  }
  
  .beschaffenheitOption {
	display: inline-block;
	padding: 4px;
  }
  
  .beschaffenheitOption:hover {
	background-color: #eee;
  }
  
  .beschaffenheitOption.selected {
	background-color: #008cba;
	color: #fff;
  }
  


  .box table {
    table-layout: fixed; /* feste Spaltenbreite */
    width: 100%;         /* gleiche Breite für alle Tabellen */
}

/* Die erste Spalte (th) bekommt feste Breite */
.box table th {
    width: 45%;          /* Label-Spalte */
}

/* Die zweite Spalte (td) nimmt den Rest */
.box table td {
    width: 55%;          /* Wert-Spalte */
    word-wrap: break-word; /* Zeilenumbruch bei langen Werten */
}