/* Reset and full width */
html, body {
    margin: 0;
    padding: 0!important;
    /*min-width: 400px;*/
    /*background-color: #f8f9fa;*/
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.wrapper{
    width: 100%;
    min-width: 350px;
    position:absolute;
}

main {
    margin-top: 56px;   /* место под top navbar */
    margin-bottom: 70px; /* место под bottom navbar */
}

.hide{display: none;}

.offcanvas-backdrop{width: 100%}
.modal-backdrop{width: 100%}

/* Top fixed nav - using bootstrap .navbar.fixed-top if needed, but we included simple fixed style */
.navbar.fixed-top, .navbar.fixed-top {
    /*height: 56px;*/
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Bottom nav */
#bottomNavbar .n_item.active{margin-top: -8px; border-top: 2px solid #ef7220;}
#bottomNavbar .n_item:hover{border-top: 1px solid #999;}

.navbar.fixed-bottom, .navbar.fixed-bottom {
    /*border-top: 1px solid #ddd;*/
    /*height: 76px;*/
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

/* Notification badge */
.badge {
    font-size: 0.7rem;
}

/* Cards */
.card {
    border-radius: 0.5rem;
}

/* Forms invalid */
.form-control.is-invalid {
    border-color: #dc3545;
}
.invalid-feedback { display: block; }

/* Offcanvas top (notifications) */
.offcanvas-top {
    height: auto;
    max-height: 50vh;
    overflow-y: auto;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loader.hide {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff7a00; /* orange accent */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

