html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Bootstrap 5 utility shims for Bootstrap 3 environment */
.d-none    { display: none !important; }
.d-block   { display: block !important; }
.d-flex    { display: flex !important; }
.d-inline  { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.float-start { float: left !important; }
.float-end   { float: right !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem  !important; }
.ms-3 { margin-left: 1rem    !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem  !important; }
.me-3 { margin-right: 1rem    !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem  !important; }
.mt-3 { margin-top: 1rem    !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem  !important; }
.mb-3 { margin-bottom: 1rem    !important; }

.text-end   { text-align: right  !important; }
.text-start { text-align: left   !important; }

@media (min-width: 768px) {
  .text-md-end   { text-align: right  !important; }
  .text-md-start { text-align: left   !important; }
  .text-md-center { text-align: center !important; }
}

/* fw-bold shim */
.fw-bold { font-weight: bold !important; }

/* Card component shims — ICS Management dash-card style */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  margin-bottom: 20px;
  overflow: visible;
}
.card-header {
  background: #03a9f4;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}
.card-body {
  padding: 1rem;
  flex: 1 1 auto;
}
.card-header .queue-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff !important;
  float: none;
  margin: 0;
}
.card-header .queue-icons {
  font-size: 1.1rem;
  float: none;
  color: #fff;
  opacity: .9;
}
.card-header .queue-icons .text-danger {
  color: #ffcdd2 !important;
}
/* Queue section (customer group) title — ICS header-dark style */
.queue-section-title {
  background: #1a237e;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.col-divider {
  border-left: 1px solid #e0e0e0;
}
/* Column section labels (Info / Aktionen / Queue Details) */
.card-body strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 2px solid #03a9f4;
}
/* Queue Details column header row — ICS wl-table th style */
.col-md-6.col-divider .fw-bold span {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Action sub-cards — ICS add-pop style */
.action-card {
  border: 1px solid #90caf9;
  border-radius: 5px;
  margin-bottom: 6px;
  background-color: #fff;
}
.action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background-color: #e3f2fd;
  border-bottom: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #1565c0;
  transition: background-color .15s;
}
.action-card-header:hover {
  background-color: #bbdefb;
}
.action-card-header.open {
  border-bottom-color: #90caf9;
  border-radius: 5px 5px 0 0;
}
.action-card-header .action-label {
  font-size: 12px;
  font-weight: 600;
  color: #1565c0;
}
.action-card-header .action-toggle {
  font-size: 11px;
  color: #1565c0;
  opacity: .7;
}
.action-card-body {
  padding: 10px 12px;
  background-color: #f8fbff;
  border-radius: 0 0 5px 5px;
  font-size: 12px;
}

/* Buttons inside action-card-body — outlined style */
.action-card-body .btn-custom-reverse,
.action-card-body a.btn-custom-reverse,
.btn.btn-sm.btn-custom-reverse {
  background-color: transparent;
  border: 1px solid #03a9f4;
  color: #03a9f4;
  border-radius: 6px;
  font-size: 11px;
  padding: 2px 8px;
  text-transform: none;
  font-weight: 600;
  transition: background-color .15s, color .15s;
}
.action-card-body .btn-custom-reverse:hover,
.action-card-body a.btn-custom-reverse:hover,
.action-card-body .btn-custom-reverse:focus,
.action-card-body a.btn-custom-reverse:focus,
.btn.btn-sm.btn-custom-reverse:hover,
.btn.btn-sm.btn-custom-reverse:focus {
  background-color: #03a9f4;
  border-color: #03a9f4;
  color: #fff;
}

/* Neutralise any stray bg-info inside action cards */
.action-card-body.bg-info,
.action-card .bg-info {
  background-color: #f8fbff !important;
}

/* Field label inside line cards */
.line-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 2px;
}

/* Full-width alternating row stripes */
.row-striped {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0;
}
.row-striped:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.04);
}
.row-striped:nth-child(even) {
  background-color: transparent;
}
.row-striped > [class*="col-"] {
  padding-top: 4px;
  padding-bottom: 4px;
}