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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*start here*/
.scan-panel {
    border-radius: .5rem;
}

    .scan-panel .form-label {
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #6c757d;
    }

/* Scrollable IF section */
.if-scroll {
    max-height: 120px;
    overflow-y: auto;
    padding-right: .25rem;
}

/* Extra small button */
.btn-xs {
    padding: .15rem .4rem;
    font-size: .75rem;
}

/* Smaller alert */
#ifScanStatus .alert {
    padding: .3rem .5rem;
    font-size: .8rem;
    margin-bottom: 0;
}

/* Compact IF styling */
.if-scroll {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 4px;
}

.if-group input {
    font-size: .75rem;
    padding: .2rem .4rem;
    height: 28px;
}

.if-group .btn {
    padding: .2rem .45rem;
    height: 28px;
    font-size: .7rem;
}
.if-group input {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Scrollable IF section */
.if-scroll {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Compact IF inputs */
.if-group input {
    font-size: .75rem;
    padding: .2rem .4rem;
    height: 28px;
}

.if-group .btn {
    padding: .2rem .45rem;
    height: 28px;
    font-size: .7rem;
}

/* Ship From block (tight, readable) */
.shipfrom-box {
    font-size: .85rem;
    line-height: 1.2;
    padding-left: .25rem;
    border-left: 1px solid rgba(0,0,0,.1);
}

@media (max-width: 1199px) {
    .shipfrom-box {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0,0,0,.1);
        padding-top: .5rem;
        margin-top: .25rem;
    }
}
.shipfrom-box {
    font-size: .85rem;
    line-height: 1.2;
    border-left: 1px solid rgba(0,0,0,.1);
    padding-left: .75rem;
    height: 100%;
}

@media (max-width: 1199px) {
    .shipfrom-box {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0,0,0,.1);
        padding-top: .5rem;
    }
}
