/* Ogólne style */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Style dla kontenera logowania */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-image: url("../static/workshop.jpg") !important;
    background-position: center !important;
    background-size: cover !important;
}
.login-container .card {
    bottom: 80px;
    position: relative;
}
  
.toolbar{
    background-color: #193349;
}

.toolbar__title{
    color: #fff !important;
}

.toolbar__left .back-button{
    color:rgb(215 222 231);
}
.toolbar__left .back-button__icon{
    fill:rgb(215 222 231);
}


ons-card {
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}

ons-input {
    width: 100%;
}

ons-button {
    width: 100%;
}

.ons-button--large {
    font-size: 18px;
    padding: 10px 0;
    width: 80%;
    max-width: 300px;
    margin: 10px auto;
}

/* Style dla skanera QR */
#qr-reader {
    width: 100%;
   /* height: calc(100vh - 56px); */
}

.delete-icon {
    color: #525151;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

/* Style dla kontenera kamery */
.camera-container {
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*height: calc(100vh - 56px);*/
    overflow: hidden;
    padding: 0px;
    box-sizing: border-box;
    position: relative; /* Dodano, aby umożliwić absolutne pozycjonowanie przycisku */
}

#camera-video {
    height: calc(90vh - 56px);
}

.camera-controls {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.last-photo-container {
    top: 0%;
    width: 150px;
    text-align: center;
    position: absolute;
    left: 0%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.last-photo-container img {
    max-width: 100%;
    height: auto;
}

#preview-photo-container .photo-item .delete-icon{
    bottom: 12px !important;
}

/* Styl dla przycisku fotografowania */
.take-photo-button {
position: absolute;
  bottom: 12%;
  right: 35px;
  background-color: rgba(99, 98, 98, 0.67);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  width: 56px;
  height: 56px;
  text-align: center;
}

/* Styl dla przycisku zmiany kamery */
.switch-camera-button {
    position: absolute;
    top: 135px;
    left: 35px;
    background-color: rgba(0, 0, 0, 0.47); /* Przezroczyste tło */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 56px;
    height: 56px;
    text-align: center;
    border: solid 1px #9e9e9e;
}

.photo-item {
height: auto;
width: 100%;
  border-bottom: solid 2px #dedbdb;
  padding-bottom: 5px;
  position: relative;
  float: left;
  padding-top: 5px;
  background-color: white;
  margin-bottom: 10px;
}

.last-photo-container .photo-item {
display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: auto;
  padding-bottom: 0px;
  border: 0px;
}

.photo-item img {
    width: 100%;
    height: auto;
}

.photo-container .photo-item img {
    width: auto;
    height: 220px;
}

.last-photo-container .photo-item .photo-thumb{
    display: block;
  margin: 0 auto 0px;
}

.select-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
}

.select-container select {
      border: 0px;
    border-bottom-width: 0px;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
  border-bottom: solid 1px #bcb9b9;
  background-color: #fff3;
  padding: 10px;
  margin-left: 10px;
  margin-right: 10px;
  width: 40%;
}

.sync-icon, .delete-icon{
font-size: 20px;
  margin: 10px;
  cursor: pointer;
  background-color: white;
  border-radius: 50%;
  padding: 6px;
  width: 20px;
  height: 20px;
  text-align: center;
  align-items: center;
  align-content: center;
  border: solid 1px #9e9e9e;
}

.transfer-icon {
font-size: 20px;
  width: 20px;
  height: 20px;
}


.photo-item .delete-icon {
font-size: 24px;
  margin: 10px;
  cursor: pointer;
  background-color: #f8f6f6d4;
  border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  text-align: center;
  align-content: center;
  position: absolute;
  bottom: 60px;
  right: 0px;
  float: right;
  border: solid 1px #9e9e9e;
}


.damage-detail-item .sync-icon {
font-size: 24px;
  margin: 10px;
  cursor: pointer;
  background-color: #f8f6f6d4;
  border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  text-align: center;
  align-content: center;
  position: absolute;
  bottom: 90px;
  right: 47px;
  float: right;
  border: solid 1px #9e9e9e;
}

.damage-detail-item .delete-icon {
font-size: 24px;
  margin: 10px;
  cursor: pointer;
  background-color: #f8f6f6d4;
  border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  text-align: center;
  align-content: center;
  position: absolute;
  bottom: 90px;
  right: 0px;
  float: right;
  border: solid 1px #9e9e9e;
}


.photo-item .sync-icon {
font-size: 20px;
  margin: 10px;
  cursor: pointer;
  background-color: #f8f6f6d4;
  border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  text-align: center;
  align-content: center;
  position: absolute;
  bottom: 60px;
  right: 48px;
  float: right;
  border: solid 1px #9e9e9e;
  font-family: revert-layer;
  font-weight: bold;
}

.photo-item .transfer-icon {
  background-color: #edededc4;
  min-width: 30px;
  min-height: 30px;
  text-align: center;
  align-content: center;
  position: absolute;
  top: 53px;
  right: 0px;
  float: right;
}

.last-photo-container .photo-item .delete-icon, .photo-item-preview .delete-icon {
position: absolute;
  bottom: 0%;
  left: 0%;
  background-color: rgba(99, 98, 98, 0.67);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  width: 30px;
  height: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  border: solid 1px #9e9e9e;
}

.photo-thumb {
    width: 100%;
    height: auto;
}

.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.car-map {
    width: 280px;
    height: auto;
    display: block;
}

.damage-point {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: rgb(48, 139, 255);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.damage-details-container {
    padding: 20px;
}

#damage-points-container{
background-image: url('../static/car_body_mesh.png');
  width: 300px;
  height: 410px;
  display: block;
  background-size: 90%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.last-photo-container .photo-item {
   margin-bottom: 0px;
}

.photo-thumb {
width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.photo-item-preview .photo-thumb {
width: 100%;
  height: auto;
  display: block;
  margin: 0px;
}

#camera-select {
position: absolute;
  bottom: 13%;
  left: 35px;
  background-color: rgba(99, 98, 98, 0.67);
  border-radius: 4%;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  width: 120px;
  height: 39px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

ons-fab {
    position: fixed;
    z-index: 1000;
}

#md-camera{
position: fixed;
z-index: 9999;
  bottom: 2%;
  right: 35px;
  background-color: rgba(0,118,255);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  width: 56px;
  height: 56px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: solid 1px #9e9e9e;
  }
  
.sync-icon {
font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  text-align: center;
  align-content: center;
  border: solid 1px #9e9e9e;
}

.delete-icon {
font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  text-align: center;
  align-content: center;
  background-color: #e7e7e7d4;
  border: solid 1px #9e9e9e;
}

.list-item{
    padding: 0px 10px 0px 10px;
}

.reg{
font-size: 20px;
  margin-bottom: 5px;
  width: 100%;
  font-weight: bold;
  position: relative;
  float: left;
}

.reg span{
  color: #898989;
  font-weight: normal;
  position: relative;
  float: left;
}

.vin {
font-size: 16px;
  width: 100%;
  margin-bottom: 4px;
  color:#6d6d6d;
}

.vin span{
    color: #6d6d6d;
}

.mod{
    margin-bottom: 14px;
    font-size: 16px;
    position: relative;
    width: 100%;
    color:#6d6d6d;
}
.mod span{
    color: #6d6d6d;
}

.client{
    font-size: 16px;
    width: 100%;
position: relative;
  float: left;
  margin-bottom: 4px;
}

.client span{
    color: #6d6d6d;
}

.location{
    font-size: 16px;
    width: 100%;
position: relative;
  float: left;
}

.location span{
    color: #6d6d6d;
}

.expertise-info{
    padding: 15px;
  margin-bottom: 15px;
  position: relative;
  float: left;
  width: calc(100% - 30px);
  background-color: white;
}

.photo-item:last-child {
    width: 100%;
height: auto;
  border-bottom: solid 2px #dedbdb;
  padding-bottom: 5px;
  position: relative;
  float: left;
  padding-top: 5px;
  background-color: white;
  margin-bottom: 10px;
  margin-bottom: 90px;
}

.photo-item-preview {
    width: 100%;
height: auto;
  padding-bottom: 0px;
  position: relative;
  float: left;
  padding-top: 0px;
  margin-bottom: 0px;
  margin-bottom: 0px;
}


.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: black;
    position: relative;
}

#camera-video {
    width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.damage-detail-container {
    padding: 20px;
}

.damage-detail-item {
    position: relative;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    background-color: white;
}

.damage-detail-item img {
    width: 100%;
    height: auto;
}

.damage-detail-item .damage-info {
    padding: 10px;
}

.damage_detail{
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}
.repair_detail{
    width: 100%;
    position: relative;
}

.repair_detail span{
    font-weight: bold;
}

.damage_detail span{
    font-weight: bold;
}


.select2-container {
      border: 0px !important;
  background-color: #fff3 !important;
  padding: 5px !important;
  margin-left: 5px !important;
  margin-right: 5px !important;
  width: 44% !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 26px !important;
  position: absolute !important;
  top: 6px !important;
  right: 11px !important;
  width: 20px !important;
}

.legend{
display: flex;
  align-items: center;
  width: 96%;
  font-size: 14px;
  align-content: center;
}

.legend-item{
display: flex;
  align-items: center;
  margin-left: 10px;
  float: left;
  padding-bottom: 10px;
}

.legend .sync-icon{
    font-size: 10px;
  cursor: pointer;
  border-radius: 50%;
  min-width: 15px;
  min-height: 15px;
  width: 15px;
  height: 15px;
  text-align: center;
  align-content: center;
  border: solid 1px #9e9e9e;
  padding:0px;
  margin:4px;
}

.expertise-info #sync-status-icon{
position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
}

.ons-tabbar__footer{
    padding-bottom: 10px !important;
}

.menu-button{
    color: #ffff;
    position: relative;
    right: 10px;
}