body {
    background: #f4f7fb;
    font-size: 15px;
}

.password-field-shell {
    position: relative;
}

.password-field-shell .form-control {
    padding-right: 5.25rem;
}

.password-field-controls {
    position: absolute;
    top: 50%;
    right: .45rem;
    display: inline-flex;
    gap: .2rem;
    transform: translateY(-50%);
}

.password-field-controls__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #607084;
    cursor: pointer;
}

.password-field-controls__button:hover,
.password-field-controls__button:focus {
    background: #edf4ff;
    color: #0969da;
    outline: none;
}

.password-field-controls__button:focus-visible {
    box-shadow: 0 0 0 3px rgba(9, 105, 218, .25);
}

.password-field-controls__button.is-copied {
    color: #1f8f45;
}

.password-field-controls__button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

body.org-has-header {
    padding-top: var(--org-header-height, 2.65rem);
}

body.login-page .page-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(2rem, 7vh, 5rem) 1rem 2rem;
}

body.login-page .login-form {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(40, 58, 78, .08);
}

.auth-card__content {
    display: grid;
    gap: .85rem;
}

.auth-card h1 {
    margin: 0 0 .25rem;
    font-weight: 700;
    text-align: left;
}

.auth-card .alert {
    margin: 0;
    text-align: left;
}

.auth-card .form-group {
    margin-bottom: 0;
}

.auth-card .form-control {
    min-height: 3rem;
    padding: .65rem .8rem;
    font-size: 1rem;
    font-style: normal;
}

.auth-card .form-control:placeholder-shown {
    font-style: normal;
}

.auth-card__remember {
    margin: .15rem 0 0;
}

.auth-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: .25rem;
}

.auth-card__actions .btn-primary {
    min-width: 8rem;
}

.auth-card__secondary-link {
    margin: .15rem 0 0;
}

.searchable-select__native {
    display: none;
}

@media (max-width: 575.98px) {
    body.login-page .page-container {
        padding: 1rem;
    }

    body.login-page .login-form {
        padding: 1rem;
    }

    .auth-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-card__actions .btn {
        width: 100%;
    }
}

.searchable-select {
    position: relative;
}

.searchable-select__input {
    cursor: text;
}

.searchable-select__menu {
    position: absolute;
    z-index: 1060;
    top: calc(100% + 2px);
    right: 0;
    left: 0;
    display: none;
    max-height: min(24rem, 58vh);
    overflow-y: auto;
    padding: .25rem 0;
    border: 1px solid #c8d4e3;
    border-radius: .25rem;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
}

.searchable-select--open .searchable-select__menu {
    display: block;
}

.searchable-select__option {
    display: block;
    width: 100%;
    padding: .42rem .75rem;
    border: 0;
    background: transparent;
    color: #1f2937;
    text-align: left;
}

.searchable-select__option:hover,
.searchable-select__option--active {
    background: #e7f0ff;
}

.searchable-select__empty,
.searchable-select__more {
    padding: .45rem .75rem;
    color: #6b7280;
    font-size: .92rem;
}

.page-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.org-shell {
    padding-top: .65rem;
    padding-bottom: 1.25rem;
    padding-right: clamp(.75rem, 1.4vw, 1.25rem);
    padding-left: clamp(.75rem, 1.4vw, 1.25rem);
}

.org-layout {
    position: relative;
}

.org-menu-drawer {
    position: fixed;
    z-index: 1050;
    top: var(--org-header-height, 2.65rem);
    bottom: 0;
    left: 0;
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #d9e2ee;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
    transform: translateX(-105%);
    transition: transform .18s ease;
}

.org-menu-open {
    overflow: hidden;
}

.org-menu-open .org-menu-drawer {
    transform: translateX(0);
}

.org-menu-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid #e5edf6;
}

.org-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #d9e2ee;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: 1.75rem;
    line-height: 1;
}

.org-menu-backdrop {
    position: fixed;
    z-index: 1040;
    inset: var(--org-header-height, 2.65rem) 0 0 0;
    display: none;
    border: 0;
    background: rgba(15, 23, 42, .38);
}

.org-menu-open .org-menu-backdrop {
    display: block;
}

.org-side-menu {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.org-side-menu .nav-link {
    border-radius: 6px;
    color: #2563eb;
    font-weight: 600;
}

.org-side-menu .nav-link.active {
    background: #e7f0ff;
    color: #1f2937;
}

.org-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.org-menu-toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .4rem;
    min-height: 1.9rem;
    padding: .18rem .5rem;
    border: 1px solid #c8d4e3;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.org-menu-toggle__icon,
.org-menu-toggle__icon::before,
.org-menu-toggle__icon::after {
    display: block;
    width: 1.05rem;
    height: 2px;
    background: #1f2937;
    border-radius: 999px;
}

.org-menu-toggle__icon {
    position: relative;
}

.org-menu-toggle__icon::before,
.org-menu-toggle__icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.org-menu-toggle__icon::before {
    top: -.36rem;
}

.org-menu-toggle__icon::after {
    top: .36rem;
}

.org-header {
    align-items: center;
    flex-wrap: nowrap;
    gap: .45rem;
    justify-content: flex-start;
    min-height: 2.55rem;
    padding: .25rem .75rem;
    border-bottom: 1px solid #d8e1ec;
    box-shadow: 0 1px 7px rgba(15, 23, 42, .08);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1070;
}

.navbar-brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: .35rem;
    margin-right: .25rem;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.org-header__account {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: .4rem;
    margin: 0 !important;
    white-space: nowrap;
}

.org-header__disk {
    color: #526071;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.15;
}

.org-header__disk--low {
    color: #b45309;
}

.org-header .btn {
    min-height: 1.9rem;
    padding: .2rem .58rem;
}

.org-header .org-header__logout {
    min-height: 1.7rem;
    padding: .12rem .42rem;
    font-size: .85rem;
    line-height: 1.25;
}

.org-header__context {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.org-header__context .breadcrumb {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: .28rem .5rem;
    font-size: .9rem;
    line-height: 1.15;
}

.org-header__context .breadcrumb-item {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-header__section {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: .35rem;
    min-width: 0;
    overflow: hidden;
}

.org-header__title {
    color: #1f2937;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.org-header__tabs {
    align-items: center;
    display: inline-flex;
    flex: 0 1 auto;
    gap: .15rem;
    min-width: 0;
    overflow: hidden;
}

.org-header__tab {
    border-radius: 5px;
    color: #2563eb;
    flex: 0 0 auto;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.15;
    padding: .24rem .45rem;
    white-space: nowrap;
}

.org-header__tab.active {
    background: #e7f0ff;
    color: #1f2937;
}

.header__logo {
    width: 1.15rem;
    height: 1.15rem;
}

.holders-balance-grid__name {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.holders-balance-grid__amount {
    white-space: nowrap;
}

.finance-tag-group-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.finance-tag-picker {
    display: grid;
    gap: .45rem;
}

.finance-tag-picker__search {
    max-width: 22rem;
}

.finance-tag-picker__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .45rem;
}

.finance-tag-picker__group {
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 6px;
    background: #fff;
}

.finance-tag-picker__group.is-hidden,
.finance-tag-picker__option.is-hidden {
    display: none;
}

.finance-tag-picker__summary {
    cursor: pointer;
    padding: .4rem .55rem;
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
    line-height: 1.15;
}

.finance-tag-picker__options {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
    padding: .45rem;
}

.finance-tag-picker__option {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: 0;
    padding: .23rem .45rem;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1.15;
}

.finance-tag-picker__option:has(.finance-tag-picker__input:checked) {
    border-color: #80bdff;
    background: #e7f0ff;
    color: #0f172a;
    font-weight: 700;
}

.finance-tag-picker__input {
    margin: 0;
}

.finance-tag-picker__empty {
    display: none;
    color: #6c757d;
    font-size: .9rem;
}

.finance-tag-picker[data-filter-empty="1"] .finance-tag-picker__empty {
    display: block;
}

.grid-view {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.grid-view table,
.table {
    background: #fff;
}

.grid-view table {
    min-width: 0;
    margin-bottom: .55rem;
}

.grid-view.holders-balance-grid table {
    min-width: 0;
}

.grid-view .summary {
    margin: 0 0 .3rem;
}

.grid-view .table th,
.grid-view .table td,
.table th,
.table td {
    padding: .42rem .5rem;
    vertical-align: middle;
}

.grid-view .table thead th {
    border-bottom-width: 2px;
    font-weight: 700;
}

.grid-view td:last-child,
.grid-view th:last-child {
    white-space: nowrap;
}

h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .65rem;
    font-size: 1.85rem;
    line-height: 1.1;
}

h1 .btn {
    white-space: nowrap;
}

p {
    margin-bottom: .55rem;
}

dl,
ol,
ul {
    margin-bottom: .65rem;
}

.nav-tabs {
    margin-bottom: .65rem !important;
}

.nav-tabs .nav-link {
    padding: .45rem .8rem;
}

.btn {
    border-radius: .25rem;
}

.btn:not(.btn-sm):not(.btn-lg) {
    min-height: 2.15rem;
    padding: .32rem .7rem;
}

.btn-sm {
    padding: .18rem .45rem;
}

.form-inline {
    gap: .5rem;
}

.form-inline .form-control {
    min-width: 14rem;
}

.form-control {
    min-height: 2.15rem;
    padding-top: .32rem;
    padding-bottom: .32rem;
}

.form-control-sm {
    min-height: 1.95rem;
    padding-top: .18rem;
    padding-bottom: .18rem;
}

.form-group {
    margin-bottom: .75rem;
}

label {
    margin-bottom: .25rem;
}

.alert {
    border-radius: 8px;
}

textarea.form-control {
    min-height: 7rem;
}

.error-summary {
    color: #721c24;
}

.error-summary p {
    margin-bottom: .5rem;
    font-weight: 700;
}

.error-summary ul {
    margin-bottom: 0;
}

.form-group .help-block {
    color: #6c757d;
}

.has-error .control-label,
.has-error .help-block {
    color: #dc3545;
}

.has-error .form-control {
    border-color: #dc3545;
}

.has-error .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .25);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: .3rem .55rem;
}

@media (max-width: 1199.98px) {
    body.org-has-header {
        padding-top: var(--org-header-height, 4.9rem);
    }

    .org-menu-drawer {
        top: var(--org-header-height, 4.9rem);
    }

    .org-menu-backdrop {
        inset: var(--org-header-height, 4.9rem) 0 0 0;
    }

    .org-header {
        align-items: center;
        flex-wrap: wrap;
        gap: .4rem .5rem;
        padding: .4rem .6rem;
    }

    .navbar-brand {
        flex: 1 1 auto;
        margin-right: 0;
        order: 2;
    }

    .org-header__account {
        margin-left: auto !important;
        order: 3;
    }

    .org-header__context {
        flex-basis: 100%;
        order: 4;
        width: 100%;
    }

    .org-menu-toggle {
        order: 1;
    }

    .org-header__context .breadcrumb {
        width: 100%;
    }

    .org-header__section {
        flex-wrap: wrap;
        overflow: visible;
    }

    .org-header__tabs {
        flex-wrap: wrap;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    body.org-has-header {
        padding-top: var(--org-header-height, 4.8rem);
    }

    .org-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        column-gap: .45rem;
        row-gap: .28rem;
    }

    .org-menu-toggle {
        min-width: 2.65rem;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: start;
        order: initial;
    }

    .navbar-brand {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        min-height: 1.9rem;
        min-width: 0;
        margin: 0;
        order: initial;
    }

    .header__text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .org-header__account {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        display: inline-flex !important;
        flex-wrap: wrap;
        gap: .35rem;
        justify-content: flex-end;
        margin-left: 0 !important;
        width: auto;
        order: initial;
    }

    .org-header__disk {
        flex-basis: 100%;
        font-size: .72rem;
        text-align: right;
    }

    .org-header__user {
        display: none;
    }

    .org-header__context {
        grid-column: 1 / -1;
        grid-row: 2;
        order: initial;
        overflow: hidden;
    }

    .org-header__context .breadcrumb {
        max-height: 1.9rem;
    }

    .org-header__tabs {
        flex-wrap: wrap;
        max-height: none;
        overflow: visible;
        width: 100%;
    }

    .page-container,
    .container-fluid {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    h1 {
        display: block;
        font-size: 1.55rem;
        line-height: 1.15;
    }

    h1 .btn {
        display: inline-block;
        margin: 0 0 .75rem !important;
    }

    .form-inline {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .form-inline .form-control,
    .form-inline .btn {
        width: 100%;
        min-width: 0;
    }

    .form-inline label {
        margin: .25rem 0;
    }

    .btn {
        min-height: 2.35rem;
    }

    .org-header__account .btn {
        width: auto;
    }

    .org-header .org-header__logout {
        min-height: 1.6rem;
        padding: .08rem .38rem;
        font-size: .8rem;
    }

    .org-header__section {
        gap: .25rem;
    }

    .org-header__tab {
        font-size: .85rem;
        padding: .2rem .38rem;
    }

    .holders-balance-grid {
        overflow-x: visible;
    }

    .holders-balance-grid table {
        table-layout: fixed;
        width: 100%;
    }

    .holders-balance-grid th,
    .holders-balance-grid td {
        white-space: normal;
    }

    .holders-balance-grid__amount {
        font-size: .92rem;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .finance-tag-picker__groups {
        grid-template-columns: 1fr;
    }

    .finance-tag-picker__search {
        max-width: none;
    }

    .finance-tag-picker__option {
        font-size: .86rem;
    }

    .table-sm td,
    .table-sm th {
        padding: .42rem;
    }

    .grid-view,
    .tickets-table-wrap,
    .table-responsive {
        overflow-x: visible;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) table {
        display: block;
        width: 100%;
        min-width: 0;
        border: 0;
        background: transparent;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) thead {
        display: none;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) tbody,
    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) tr,
    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) td {
        display: block;
        width: 100%;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) tr {
        margin: 0 0 .65rem;
        overflow: hidden;
        border: 1px solid #d9e2ee;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) .table-striped tbody tr:nth-of-type(odd) {
        background: #fff;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) td {
        display: grid;
        grid-template-columns: minmax(6.8rem, 36%) minmax(0, 1fr);
        gap: .5rem;
        align-items: start;
        min-width: 0;
        padding: .5rem .65rem;
        border: 0;
        border-bottom: 1px solid #e5edf6;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) td:last-child {
        border-bottom: 0;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) td::before {
        content: attr(data-label);
        min-width: 0;
        color: #6c757d;
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) td[data-label=""] {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
        align-items: center;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) td[data-label=""]::before {
        display: none;
    }

    .grid-view:not(.holders-balance-grid):not(.tickets-grid-view):not(.finance-grid) td > * {
        min-width: 0;
        max-width: 100%;
    }

    .tickets-grid {
        width: 100%;
        min-width: 0;
        font-size: .92rem;
    }

    .tickets-grid td,
    .tickets-grid th {
        white-space: normal;
    }

    .tickets-grid .ticket-code {
        min-width: 0;
    }

    .ticket-code__content,
    .finance-actions {
        flex-wrap: wrap;
    }
}
