.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-icon {
  position: absolute;
  top: 46%;
  right: 3%;
  padding: 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 1vw, 18px);
  transition: transform 0.2s ease;
  z-index: 1001;
}

#emergency-btn {
    top: 38%;
}

.emergency-btn-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.3s ease, max-width 0.3s ease;
}

.main-icon:hover .emergency-btn-text {
  opacity: 1;
  max-width: 200px;
}

.btn-recalculate {
    padding: 7px 15px;
}

.button-current-date {
    border: 2px solid rgb(210, 105, 30);
    background: linear-gradient(to bottom, #e4b592, #be5000);
    padding: 0 15px !important;
    height: 30px;
}

.button-current-date:hover {
    border: 2px solid rgb(210, 105, 30);
    background: linear-gradient(to bottom, #be5000, #772f00);
}

.btn-delete {
    background-color: red;
    padding: 7px;
    border: none;
    border-radius: 5px;
}

.coord-side {
  color: transparent;
  user-select: none;
}

.calibration-details {
    flex-direction: row;
    gap: 20px;
}

pre {
    font-family: Arial, sans-serif;
}


ul li {
    list-style: none;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
  color: aliceblue;
  user-select: none;
}

.alert {
    position: fixed;
    z-index: 1003;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    height: auto !important;
    text-align: center;
}

.smaller-img-machine {
    padding: 30px 0;
}

form {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 clamp(20px, 4vw, 50px);
    align-items: center;
}

.form-input {
    width: 100%;
}

main {
    background-image: url("/static/images/background-image.76e608f72984.png");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    border-radius: 79px;
    flex: 1;
    top: 97px;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: red #fff;
    scrollbar-width: thin;
}

button[type=submit], button[type=button] {
  color: white;
  border-radius: 20px;
  padding: 0 35px;
  font-size: clamp(12px, 0.7vw, 16px);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  height: clamp(30px, 0.7vw, 40px);
}

button[type=submit] {
  background: linear-gradient(to bottom, #e8e8e8, #656565);
  border: #d3d2d2 2px solid;
}

button[type=submit]:hover {
  background: linear-gradient(to bottom, #656565, #3a3a3a);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

.button-return-back, .edit-company-button, .company-employee-details, .edit-user-button {
  background: linear-gradient(to bottom, #f5b1b1, #c00);
  color: white;
  border: 2px solid #ff0000;
  border-radius: 20px;
  padding: 6px 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  height: clamp(30px, 0.7vw, 40px);
  font-size: clamp(12px, 0.7vw, 16px);
}

a.badge, button.badge {
   color: white;
   border-radius: 20px;
   font-size: clamp(10px, 0.6vw, 16px);;
   font-weight: bold;
   cursor: pointer;
   transition: 0.3s ease;
   box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

a.badge.text-bg-info {
    background: linear-gradient(to bottom, #cce8ff, #00889c);
}
a.badge.text-bg-info:hover {
  background: linear-gradient(to bottom, #00889c, #104049);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

button.badge.text-bg-danger {
    background: linear-gradient(to bottom, #f5b1b1, #c00);
    padding: 6px;
}
button.badge.text-bg-danger:hover {
  background: linear-gradient(to bottom, #c00, #861b1b);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

.button-return-back:hover, .edit-company-button:hover, .company-employee-details:hover, .edit-user-button:hover {
  background: linear-gradient(to bottom, #c00, #861b1b);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
    color: white !important;
}

.link {
    color: white;
}

input {
  outline: none;
  border: none;
  height: 30px;
}

select:focus-visible {
  outline: none;
}

a {
   color: #ffffff;
   text-decoration: none;
   font-size: 15px;
}

p, a, .navbar-text, div {
    font-family: "Ubuntu";
}

nav {
    font-size: 14px !important;
}

.nav-item {
   font-size: clamp(13px, 1.5vh, 20px);
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a:hover {
    color: rgb(157, 154, 154);
    text-decoration: none;
}

.employees-list, .logs-list {
    max-height: 550px;
    overflow-y: auto;
}

.employees-list {
    width: 900px;
}

.company-employees-list {
    max-height: 800px;
    overflow-y: auto;
    width: 725px;
}

.machines-types-list {
    overflow-y: auto;
    max-height: 416px;
}

.machine-type {
    max-width: 416px;
    margin: 0 auto;
}

.filters-panel {
    background-color: black;
    border: solid 2px #e5e4e4;
    padding: 0 1pc 0px;
}

h3 {
    text-transform: uppercase;
    padding: clamp(16px, 1.5vw, 45px) 0 clamp(16px, 1.5vw, 45px) 0;
    display: block;
    font-size: clamp(18px, 1.5vw, 28px);
    text-align: center;
}

button.badge {
    border: none;
}

select {
    max-height: 106px;
    height: 32px;

    appearance: none !important;        /* remove default arrow */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("/static/images/calendar-logs-icons/arrow-dropdown.21762def2030.png") !important; /* custom icon */
    background-repeat: no-repeat !important;
    background-position: right 0px center !important;
    background-size: clamp(22px, 4.5vh, 44px);

    padding-left: 5px;
    padding-right: 29px;
}

.coordinates {
    font-family: 'EB Garamond', serif !important;
    font-feature-settings: "onum" 1 !important;
    font-size: 16px;
}

.custom-tooltip .tooltip-inner {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

img {
   text-align: center;
}

input[type=text], input[type=password], input[type=email], input[type=search], select {
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


h2 {
    font-size: 2rem;
}

#main-container {
    padding: 0 2vw;
    margin-top: 12vh;
    height: 75vh;
}

.btns-position {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.icon-size {
    height: clamp(53px, 9vh, 80px);
    object-fit: contain;
}

.custom-tooltip .tooltip-inner {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
}

@media (max-width: 1292px) {
  .card {
    margin-bottom: 10px;
  }

}

@media (max-width: 688px) {
  .page-container {
    overflow-y: hidden;
  }
}

@media (max-width: 800px) {
    .col-sm-12 {
        width: 100% !important;
    }
    input, .field-content, select, .ui-autocomplete, option {
        font-size: 10px;
    }
    main {
        border-radius: 20px;
    }
}
