/* =====================================
 * MOBILE
 * ===================================== */

.page-body {
    background: #f6f8fb;
    min-height: 100vh;
    padding-bottom: 140px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    height: 70px;

    background: #fff;

    border-top: 1px solid #e9ecef;

    display: flex;

    z-index: 9999;

    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-decoration: none;

    color: #6c757d;

    font-size: .75rem;
}

.bottom-nav a.active {
    color: #206bc4;
}

/* =====================================
 * CARD
 * ===================================== */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
}

@media (hover: hover) {

    .card {
        transition: .15s;
    }

    .card:hover {
        transform: translateY(-2px);
    }
}

/* =====================================
 * DASHBOARD
 * ===================================== */

.stat-card .h1 {
    margin: 0;
    font-weight: 700;
    font-size: 1.75rem;
}

.stat-card .h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

/* =====================================
 * FORM
 * ===================================== */

.control-label {
    font-weight: 600;
}

.detail-label {
    font-weight: 700;
    color: #6c757d;
}

.form-control,
.form-select {
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
}

.form-control[readonly] {
    background-color: #f6f8fb;
    color: #6c7a91;
    cursor: default;
}

/* =====================================
 * SECTION
 * ===================================== */

.section-title {
    font-weight: 600;
    margin-bottom: .25rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: .875rem;
}

/* =====================================
 * DETAIL VIEW
 * ===================================== */

.card-body .row .col-5.text-secondary {
    font-weight: 600;
}

/* =====================================
 * FORM ERROR
 * ===================================== */

.help-block,
.invalid-feedback {
    display: block;
    margin-top: .25rem;
    color: #dc3545;
    font-size: .875rem;
    font-weight: 500;
}

.has-error .form-control,
.has-error .form-select,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.has-error .control-label,
.has-error .form-label {
    color: #dc3545;
}

.alert-danger {
    border: none;
    border-radius: 12px;
}

/* =====================================
 * MENU
 * ===================================== */

.list-group-item {
    border: 0;
    padding: 14px 0;
    font-size: 1rem;
    background: transparent;
}

.list-group-item:hover {
    background: transparent;
}

.list-group-item.text-danger {
    color: #dc3545 !important;
}

/* =====================================
 * SCAN OVERLAY
 * ===================================== */
#scan-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.85);
    z-index: 99999;
}

.scan-overlay-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

