.tw-modal-open { overflow: hidden !important; }

.tw-modal,
.modal.tw-modal,
.modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(2px);
}

.modal.show,
.tw-modal.show {
    display: flex;
}

.modal-dialog {
    width: min(100%, 40rem);
    margin: 0;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 2rem);
}

.modal-dialog.modal-sm {
    width: min(100%, 28rem);
}

.modal-dialog.modal-lg {
    width: min(100%, 62rem);
}

.modal-content {
    border-radius: 14px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    background: #0f1722;
    color: #f1f5f9;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 1rem 1.15rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.modal-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.65);
}

.modal-title {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
}

.fade { transition: opacity .15s linear; }

.offcanvas {
    position: fixed;
    z-index: 1045;
    display: block;
    visibility: hidden;
    background: #0f1722;
    color: #e2e8f0;
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
    transition: transform .25s ease, visibility .25s ease;
}

.offcanvas.show { visibility: visible; }

.offcanvas-end {
    top: 0;
    right: 0;
    width: min(96vw, 420px);
    height: 100vh;
    transform: translateX(100%);
}

.offcanvas-start {
    top: 0;
    left: 0;
    width: min(96vw, 420px);
    height: 100vh;
    transform: translateX(-100%);
}

.offcanvas-bottom {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 90vh;
    transform: translateY(100%);
}

.offcanvas.show.offcanvas-end,
.offcanvas.show.offcanvas-start,
.offcanvas.show.offcanvas-bottom {
    transform: translate3d(0, 0, 0);
}

.offcanvas-backdrop,
.tw-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(1px);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.offcanvas-title {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 700;
}

.offcanvas-body { padding: 1rem 1.1rem; overflow: auto; }

.btn,
.btn--base,
.btn--sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.75);
    background: #0f1722;
    color: #e2e8f0;
    text-decoration: none;
}

.btn { padding: .5rem .8rem; font-size: .82rem; }
.btn--sm { padding: .42rem .7rem; font-size: .76rem; }

.btn-close,
.close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.btn-close:hover,
.close:hover {
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.95);
}

.form-group { margin-bottom: .9rem; }
.form-label { display: block; margin-bottom: .35rem; color: #94a3b8; font-size: .76rem; }

.form-control,
.form-select,
select.form-control,
textarea.form-control {
    width: 100%;
    min-height: 38px;
    padding: .5rem .72rem;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.75);
    background: #111c28;
    color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(71, 85, 105, 0.95);
}

.input-group { display: flex; width: 100%; }
.input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-text {
    display: inline-flex;
    align-items: center;
    padding: .5rem .7rem;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #111c28;
    color: #cbd5e1;
}

.row { display: flex; flex-wrap: wrap; margin-left: -.5rem; margin-right: -.5rem; }
.row > [class*=\"col\"] { padding-left: .5rem; padding-right: .5rem; width: 100%; }
.col { flex: 1 0 0%; }
.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-9 { width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.6667%; }
    .col-md-9 { width: 75%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.3333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.6667%; }
    .col-lg-9 { width: 75%; }
}

.dropdown,
.header-user-dropdown {
    position: relative;
}

.dropdown-menu,
.header-user-dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    min-width: 12rem;
    padding: 0.375rem;
    border-radius: 10px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    background: #0f1722;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
    z-index: 1100;
}

.dropdown-menu.show,
.header-user-dropdown__menu.show {
    display: block;
}

.dropdown-item,
.header-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.82rem;
    text-decoration: none;
}

.dropdown-item:hover,
.header-user-dropdown__item:hover {
    background: rgba(51, 65, 85, 0.42);
    color: #f8fafc;
}

.dropdown-divider,
.header-user-dropdown__divider {
    margin: 0.35rem 0;
    border: 0;
    border-top: 1px solid rgba(51, 65, 85, 0.65);
}

.tw-tooltip {
    position: fixed;
    z-index: 1200;
    max-width: 260px;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    background: #0f1722;
    color: #e2e8f0;
    font-size: 0.72rem;
    line-height: 1.35;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.45);
    pointer-events: none;
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.position-relative { position: relative !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.w-100 { width: 100% !important; }
.gap-2 { gap: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.m-0 { margin: 0 !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.py-3 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.pt-0 { padding-top: 0 !important; }

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .tab-pane.active,
.tab-content > .tab-pane.show {
    display: block;
}

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    .d-sm-inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline-flex { display: inline-flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
    .d-xl-inline-flex { display: inline-flex !important; }
}
