html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.main-row-alert {
  flex: 0 0 auto;
  overflow: visible;
}

.main-row-content {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

.main-col {
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
}

.main-col-left {
  flex: 0 1 25%;
  padding-right: 50px;
}

.main-col-center {
  flex: 1 1 50%;
  padding-top: 5px;
  padding-right: 50px;
}

.main-col-right {
  flex: 0 1 25%;
}

#accordion .panel-heading {
  padding: 0;
}

#accordion .panel-heading a {
  padding: 10px 15px;
  display: block;
}

.control-label {
  white-space: nowrap;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 0;
  hyphens: auto;
  word-wrap: break-word;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  background-color: white;
}

.preview-container .card {
  margin-bottom: 10px;
}

.row-eq-height {
  display: box;
  display: flex;
  display: -ms-flexbox;
  display: flex;
}

.color-input-addon {
  border-right: 0;
  border-radius: 4px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.form-group {
  margin-bottom: 10px;
}

.form-horizontal {
  margin-top: 10px;
}

.dropdown-menu > li > a {
  padding-left: 35px;
  position: relative;
}

.dropdown-menu a > span {
  position: absolute;
  left: 5px;
  background-color: #000;
  background-repeat: no-repeat;
  background-position: center center;
  width: 24px;
  height: 24px;
  background-size: auto 90%;
  top: 50%;
  margin-top: -12px;
}

#card-actions {
  display: flex;
  flex-wrap: wrap;
}

#card-actions h4 {
  width: 100%;
  margin-bottom: 10px;
}

.action-group {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}

.action-button {
  margin: 2px;
}

.pl-1 {
  padding-left: 4px;
}

.pr-1 {
  padding-right: 4px;
}

.px-1 {
  padding-left: 4px;
  padding-right: 4px;
}

.move-button {
  border: 0;
  padding: 0;
  background-color: transparent;
  font-size: 32px;
  line-height: 32px;
  margin-bottom: 5px;
}

.slim-buttons-row > div {
  padding-left: 7.5px;
  padding-right: 7.5px;
}

.slim-buttons-row .btn {
  padding-left: 6px;
  padding-right: 6px;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-animate {
  animation: slideInFromRight 0.4s ease-out;
}

.deck-cards-list {
   height: calc(27px * 15);
   overflow-y: auto;
   border: 1px solid #ddd;
}

.deck-cards-list .radio {
  padding: 0;
}

.deck-cards-list .radio label {
  display: block;
  padding: 3.5px 7px;
}

.deck-cards-list .radio label:hover {
  background-color: #e0e0e0;
}

.deck-cards-list .radio:has(:checked) label {
  background-color: #337ab7;
  color: #ffffff;
}

.deck-cards-list .radio input {
  width: 0;
  height: 0;
}

select.first-option-placeholder:has(option:first-child:checked) {
  color: #999999;
}
select.first-option-placeholder:has(option:first-child:checked) option:not(:first-child) {
  color: #555555;
}
select.first-option-placeholder:not(:has(option:first-child:checked)) option:first-child {
  color: #999999;
}

/* nasconde il checkbox */
label.lock-addon input {
    display: none;
}

/* area cliccabile */
label.lock-addon {
    cursor: pointer;
    user-select: none;
}

/* stato di default → sbloccato */
label.lock-addon::before {
    content: "🔓";
}

/* stato checked → bloccato */
label.lock-addon:has(input:checked)::before {
    content: "🔒";
}

.card-fields-groups-separator {
    border-top-color: #aaaaaa;
}