.menu {
    padding: 0 15px;
}

.menu:first-child {
    border-left: none;
}

.app-navbar {
    width: 100%;
    padding: 0.45rem 0;
    border-bottom: 1px solid #dfe7ef;
    box-shadow: 0 4px 18px rgba(25, 52, 75, 0.08);
}

.app-navbar .navbar-collapse {
    min-width: 0;
}

.primary-nav-shell {
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.primary-nav-filter {
    width: 130px;
    margin: 0.2rem 0 0;
}

.primary-nav-filter input {
    width: 130px;
    height: 28px;
    padding: 0.2rem 0.45rem;
    border-color: #cbd5e1;
    border-radius: 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
}

.primary-nav-filter input:focus {
    border-color: #6cb2eb;
    box-shadow: 0 0 0 0.15rem rgba(108, 178, 235, 0.2);
}

.primary-nav {
    max-width: 100%;
    padding: 0.15rem 0.2rem;
    gap: 0.2rem;
    overflow: visible;
    flex-wrap: wrap;
    align-content: center;
}

.primary-nav .nav-item {
    flex: 0 0 auto;
}

.primary-nav .nav-link {
    padding: 0.42rem 0.68rem !important;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    color: #000000 !important;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.primary-nav .nav-link:hover,
.primary-nav .nav-link:focus {
    color: #000000 !important;
    background: #f1f6fb;
    border-color: #d7e5f2;
}

.primary-nav .nav-link.active {
    color: #332c00 !important;
    background: #ffde02;
    border-color: #dfc100;
    box-shadow: 0 3px 9px rgba(179, 151, 0, 0.18);
}

.primary-nav .nav-link.active:hover,
.primary-nav .nav-link.active:focus {
    color: #292300 !important;
    background: #ffde02;
    border-color: #c9ad00;
}

.primary-nav .nav-link--with-metrics {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(25, 52, 75, 0.1);
}

.menu-today-metrics {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}

.menu-today-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
    padding: 0.17rem 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(25, 52, 75, 0.2);
    color: #ffffff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
}

.menu-today-badge--transfer {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

.menu-today-badge--quantity {
    background: linear-gradient(135deg, #075985, #0284c7);
}

.menu-today-badge--amount {
    background: linear-gradient(135deg, #047857, #10b981);
}

.menu-today-badge.menu-today-badge--mismatch {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.menu-today-badge--processing-amount {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.account-nav {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-left: 0.65rem !important;
    margin-top: 0.15rem;
    padding-left: 0.65rem;
    border-left: 1px solid #dfe7ef;
}

.account-nav .nav-link {
    padding: 0.42rem 0.7rem !important;
    border-radius: 0.55rem;
    color: #000000 !important;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.account-nav .nav-link:hover,
.account-nav .nav-link:focus {
    color: #000000 !important;
    background: #eef4f9;
}

.app-navbar .dropdown-item {
    color: #000000;
}

@media (max-width: 767.98px) {
    .app-navbar {
        padding: 0.45rem 0;
    }

    .app-navbar .navbar-collapse {
        max-height: calc(100vh - 62px);
        padding-top: 0.5rem;
        overflow-y: auto;
    }

    .primary-nav-shell {
        width: 100%;
        overflow: visible;
    }

    .primary-nav-filter {
        width: 100%;
        margin: 0.25rem 0 0.4rem;
    }

    .primary-nav-filter input {
        width: 100%;
    }

    .primary-nav {
        max-height: calc(100vh - 145px);
        padding: 0.25rem 0;
        gap: 0.12rem;
        overflow-x: hidden;
        overflow-y: auto;
        flex-wrap: nowrap;
    }

    .primary-nav .nav-link {
        padding: 0.55rem 0.75rem !important;
    }

    .primary-nav .nav-link--with-metrics {
        display: flex;
        justify-content: space-between;
    }

    .account-nav {
        margin: 0.45rem 0 0 !important;
        padding: 0.45rem 0 0;
        border-top: 1px solid #dfe7ef;
        border-left: 0;
    }
}

.select2-container {
    width: 100% !important;
}

.confirm-invoice {
    display: block;
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.select2-selection--single.select2-selection {
    height: 38px !important;
}

.select2-selection--single .select2-selection__rendered {
    line-height: 35px !important;
}

.select2-selection--single .select2-selection__arrow {
    height: 35px !important;
}

.checkbox-inline input {
    margin: 5px;
}

.boolean-filter-options {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.boolean-filter-options .checkbox-inline {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.invoice-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.invoice-follow-filters .checkbox {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.invoice-follow-filters .checkbox-inline {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.invoice-follow-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.invoice-follow-actions .btn {
    min-width: 0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-delete-size {
    display: block;
    margin-top: 5px;
}

.time-input {
    width: 48%;
    display: inline-block;
}

#statistic-table td {
    vertical-align: baseline !important;
}

#statistic-table p {
    border-bottom: 1px solid gainsboro;
}

.div-scroll {
    max-height: 50vh;
    overflow-y: scroll;
}

.min-with-150 {
    min-width: 150px;
}

.modal-xxl {
    width: 98%;
    max-width: 100% !important;
}

.box {
    border: 1px solid;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 10px 10px 5px lightgrey;
}

.text-success {
    font-size: 14px !important;
}


.notify.text-success {
    font-size: 12px;
}

.inline-block {
    display: inline-block;
}

.copy .select2-container {
    width: 204px !important;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.btn-warning {
    background-color: #fb9545;
    color: white;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 400px;
}

[type="checkbox"][readonly="readonly"]::before {
    background: rgba(255,255,255,.5);
    content: '';
    display: block;
    height: 100%;
    width: 100%;
}

.pt-10 {
    padding-top: 10rem;
}

.modal-over {
    z-index: 1051 !important;
}

#debts-page .debt-export-note-wrap {
    width: 220px;
    max-width: 100%;
    margin: 6px auto 0;
    text-align: left;
}

#debts-page .debt-export-note {
    display: block;
    width: 100%;
    min-height: 34px;
    height: auto;
    padding: 6px 8px;
    overflow-y: hidden;
    resize: none;
    line-height: 1.45;
    color: #47330d;
    font-weight: 600;
    background: #fff2c4;
    border-color: #d3a742;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#debts-page .debt-export-note::placeholder {
    color: #806f51;
    opacity: 1;
}

#debts-page .debt-export-note:focus {
    color: #47330d;
    background: #fff6d9;
    border-color: #af8129;
    box-shadow: 0 0 0 0.16rem rgba(175, 129, 41, 0.2);
}

#debts-page .debt-export-note-status {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
}

#debts-page .debt-export-note-status:empty {
    display: none !important;
}
