/* ============================================
   Layout Styles
   ============================================ */

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030; /* Bootstrap navbar z-index - выше контента */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тень для визуального разделения */
}

body {
    padding-top: 0; /* Убираем отступ, так как навбар sticky */
}

.container, .container-fluid {
    position: relative;
    z-index: 1; /* Контент под навбаром */
}

.container {
    margin-top: 0;
}

/* Убеждаемся, что alert'ы не перекрывают навбар */
.alert {
    position: relative;
    z-index: 1;
}

/* Navbar logo */
.navbar-brand img {
    width: 15vh;
}

/* ============================================
   Import Page Styles
   ============================================ */

/* Scrollable table container */
.table-responsive-scrollable {
    max-height: 400px;
    overflow-y: auto;
}

/* Sticky table header */
.table-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f8f9fa;
}

/* Import loader */
#importLoader {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

#importLoader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ============================================
   Create Package Page Styles
   ============================================ */

/* Shipment info card */
#shipmentInfo {
    display: none;
}

/* Textarea height */
.textarea-large {
    height: 100px;
}

/* ============================================
   Register Page Styles
   ============================================ */

.bg-image {
    background-image: url('https://mdbcdn.b-cdn.net/img/Photos/new-templates/search-box/img4.webp');
}

.card-rounded {
    border-radius: 15px;
}

/* ============================================
   Error Page Styles
   ============================================ */

:root {
    --color-bg-primary: #fff;
    --color-text-primary: #0e0620;
    --color-ui-bg-primary: #0e0620;
    --color-ui-bg-inverted: #fff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: #212121;
        --color-text-primary: #fafafa;
        --color-ui-bg-primary: #fafafa;
        --color-ui-bg-inverted: #212121;
    }
}

.error_block {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100vh;
}

.error_block html,
.error_block body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: 'Nunito Sans', sans-serif;
}

.error_block .main_block {
    width: 100%;
    max-width: 1140px;
    display: flex;
    justify-content: space-between;
}

.error_block .picture,
.error_block .content {
    box-sizing: border-box;
    width: 50%;
}

.error_block .content {
    padding: 0 40px;
}

.error_block svg .dark {
    stroke: var(--color-ui-bg-primary);
}

.error_block svg .fill-dark {
    fill: var(--color-ui-bg-primary);
}

.error_block svg .fill-light {
    fill: var(--color-ui-bg-inverted);
}

.error_block h1 {
    font-size: 150px;
    margin: 15px 0;
    font-weight: bold;
}

.error_block h2 {
    font-size: 32px;
    font-weight: bold;
}

.error_block p {
    font-size: 16px;
}

.error_block .details {
    list-style: none;
    padding-left: 0;
    opacity: .7;
}

.error_block .details li span {
    font-size: 14px;
    font-weight: bold;
}

.error_block .details li code {
    font-size: 14px;
    font-weight: normal;
    padding-left: 7px;
}

@media screen and (max-width: 768px) {
    .error_block main {
        display: block;
    }

    .error_block .picture,
    .error_block .content {
        width: 100%;
        text-align: center;
    }

    .error_block .content {
        padding: 0 20px;
    }

    .error_block .picture svg {
        max-width: 60%;
    }
}




