html {
  overflow: hidden;
  height: 100%;
}

body {
  
  margin: 0;
  padding: 0;

  overflow: hidden;
  height: 100%;
}

div {
  margin: 0;
  padding: 0;
}

.ui-toolip
{
	width: auto;
	height: auto;
}

#interfaces, #interface-controls
{
	position: absolute; 
/* 	width: 100%; */
/* 	height: 100%; */
}

#interfaces
{
	z-index: 0;
}

#interface-controls
{
	margin: 0 auto;
	width: 100%;
	text-align: center;
	bottom: 10px;
	z-index: 100;
}
#camera-controls
{
	float: left;
/* 	right: 50%; */
/* 	bottom: 50px; */
}

#floorplanner, #viewer
{  
  position: absolute;
  width: 100vw;
  height: calc(100vh - 52px);
  top: 0px;
}

#floorplanner-controls 
{
  position: absolute;
  left: 0;
  top: 0;
  margin: 20px 0;
  padding: 0 20px; 
  padding-top: 0px;
  width: 100%;
}

#main-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 0;  
}

#walltextures
{
	position: absolute;
	right: 100px;
	top: 100px;
}

.btn-file {
  display: inline-block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-file input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  filter: alpha(opacity=0);
  opacity: 0;
  cursor: inherit;
  display: block;
}

.btn-hint 
{
  position: absolute;
  left: 20px;
  bottom: 20px;
  background-color: rgba(0, 0, 0, 0.50);
  color: #ffffff;
  padding: 5px 10px;
  z-index: 10;
  display: none;
}


.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #fff;
  background-color: #428bca;
}

.inventory-content
{
	max-height: 500px;
	overflow-y: scroll;
}

/* .ui-dialog, .ui-dialog-content, .ui-widget-content */
/* { */
/* 	min-width: 50%; */
/* 	max-height: 500px; */
/* 	height: 500px; */
/*     overflow: auto; */
/*     position: relative; */
/*     padding: 0 !important; */
/* } */

/* Enable multiple lines in bootstrap tooltips */
.tooltip-inner {
    white-space:pre-wrap;
}

.dg select
{
	color: #000000;
}
/* ================= MODE VISIBILITY ================= */

.mode-2d-only { display: none; }
.mode-3d-only { display: none; }

/* Default → Floorplanner */
body.mode-2d .mode-2d-only { display: block; }
body.mode-2d .mode-3d-only { display: block; } /* 👈 ENABLE 3D BUTTONS IN 2D */

/* 3D Mode */
body.mode-3d .mode-3d-only { display: block; }
body.mode-3d .mode-2d-only { display: none; }
/* ================= MOBILE TOP TOOLBAR FIX ================= */
@media (max-width: 768px), (pointer: coarse) {

  /* Top-left toolbar container */
  #floorplanner-controls {
    top: 8px;
    left: 8px;
    padding: 4px;
  }

  /* All top buttons */
  #floorplanner-controls .btn {
    min-width: 44px;      /* 👈 touch target */
    min-height: 44px;
    padding: 10px;

    font-size: 18px;      /* icon size */
    line-height: 1;

    margin-right: 6px;
    border-radius: 8px;
  }

  /* Glyphicons scale */
  #floorplanner-controls .glyphicon {
    font-size: 18px;
  }

  /* Prevent buttons from looking cramped */
  #floorplanner-controls .btn + .btn {
    margin-left: 4px;
  }
}

/* right panel*/
/* ================= RIGHT CONTROL PANEL — LARGE & TOUCH FRIENDLY ================= */

/* Base (desktop still fine) */
.dg,
.qs_main {
  font-size: 15px;
}

/* Rows / labels */
.dg li,
.dg .title,
.qs_main label,
.qs_main .qs_label {
  font-size: 15px;
  line-height: 1.5;
  padding: 6px 10px;
}

/* Inputs & sliders */
.dg input,
.dg select,
.dg .c input,
.dg .slider,
.qs_main input,
.qs_main select {
  font-size: 15px;
  height: 34px;
}

/* ================= MOBILE / ANDROID ================= */
@media (max-width: 768px), (pointer: coarse) {

  /* Overall font */
  .dg,
  .qs_main {
    font-size: 18px;                 /* 👈 BIG TEXT */
  }

  /* Each row becomes taller */
  .dg li,
  .dg .title,
  .qs_main label,
  .qs_main .qs_label {
    font-size: 18px;
    padding: 12px 14px;              /* 👈 MORE HEIGHT */
    line-height: 1.6;
  }

  /* Folder headers */
  .dg .folder > .title {
    font-size: 19px;
    padding: 14px;
  }

  /* Inputs / selects */
  .dg input,
  .dg select,
  .qs_main input,
  .qs_main select {
    font-size: 18px;
    height: 46px;                    /* 👈 TOUCH TARGET */
  }

  /* Sliders */
  .dg .slider {
    height: 14px;
  }

  .dg .slider-fg {
    height: 100%;
  }

  /* Checkboxes */
  .dg input[type="checkbox"],
  .qs_main input[type="checkbox"] {
    transform: scale(1.6);
    margin-right: 10px;
  }

  /* Increase spacing between sections */
  .dg li:not(.folder) {
    margin-bottom: 0px;
  }
}
:root {
  --banner-height: 52px;
}

.dg.main,
.qs_main {
  margin-top: var(--banner-height) !important;
}
