.cont {
    height: 300px;
}

.tableFixHead {
    overflow: auto;
    height: 100px;
}

.tableFixHead thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.header {
    position: sticky;
    top: 0;
}

html {
    scrollbar-gutter: stable;
}

.inputWidth {
    width: 500px;
}

p {
    margin-bottom: 0;
}

div.info__body > li {
    list-style-type: none;
    margin-left: 30px;
}

div.info__body > li:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.info {
    padding: 10px;
}

.info__switch {
    display: none;
}

.info__body {
    max-height: 0;
    overflow: hidden;
    transition: 0.1s;
}

.info__switch:checked ~ .info__body {
    max-height: 1000px;
}

.info__headline::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 8px;
    border: 5px solid black;
    border-bottom-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
}

.info__switch:checked ~ .info__headline::before {
    transform: rotate(90deg) translateY(0px);
}

.info__headline {
    display: block;
    position: relative;
    /* margin-bottom: 10px; */
    user-select: none;
    font-weight: normal;
    cursor: pointer;
}

tbody tr:not(.no-hover):hover {
    background: #d0f2fb; /* Цвет фона при наведении */
    color: #000000; /* Цвет текста при наведении */
}

.selected {
    background: #87CEEB;
}


.decode_body {
    text-align: left;
    width: 840px;
    transition: 0.15s;
    margin-left: 30px;
}

.decode_head {
    text-align: left;
    text-decoration: none;
    color: black;
}

.dropdown-t {
    white-space: nowrap
}

.dropdown-t::before {
    display: inline-block;
    margin-left: .255em;
    margin-right: 2px;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent
}

.dropdown-t:empty::after {
    margin-left: 0
}

.dropdown-t::before {
    transform: rotate(-90deg);
    transition: 0.15s;
}

.dropdown-t[aria-expanded="true"]::before {
    transform: rotate(0deg);
}

.decode_width {
    width: 450px;
}

#height_changer tr {
    height: 50px;
}

div.keys#sortContainer {
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 50%;
    cursor: grab;
}

div.values#rightSide {
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 50%;
}

div.practice-question-text,
div.sortable,
div.matching {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #e2e5f1;
    border-radius: 6px;
    margin: 8px;
    padding: 16px;
    font-size: 18px;
    font-weight: normal;
}

.emptySpace {
    border: medium dotted #e2e5f1;
    height: 40px;
    margin: 8px;
}

div.form-check {
    line-height: normal;
    margin-left: 8px;
    margin-bottom: 8px;
}

label.form-check-label {
    margin-left: 8px;
    font-size: 18px;
    font-weight: normal;
}

.container#explanation {
    max-width: 600px;
    padding: 16px;
    margin-left: 46px;
}

.container#explanation text {
    font-size: 18px;
}

.unit-drag-disabled {
    pointer-events: none;
    opacity: 0.5;
}

#answersCount,
#timeCount {
    font-size: 22px;
    margin: 8px 0 8px 0;
}

p.lastResult {
    margin-right: 35px;
    background-color: rgb(99 102 241 / 13%);
    border-radius: 6px;
    padding-left: 5px;
    padding-right: 5px;
}

a.lastResult {
    margin-right: 35px;
    border-radius: 6px;
    padding: 5px;
}

.noselect {
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

#decode {
    line-height: 1.1;
}

.byte:hover,
.ascii-char:hover {
    outline: 1px solid #99f;
    outline-offset: -1px;
    cursor: pointer;
    z-index: 999;
}

.highlight {
    background: #a2c9e8 !important;
    color: #fff !important;
    transition: background 0.15s ease;
    box-shadow: 0 0 0 1px #a2c9e8;
}

.decode_body p:hover {
    color: var(--si-link-color);
    cursor: pointer;
}

#bytes div[class] {
    margin-right: 8px;
}

#bytes .byte {
    margin-right: 8px;
}

#bytes .byte:last-child {
    margin-right: 0;
}

#bytes div[class] {
    gap: 8px;
    margin-right: 8px;
}

#bytes div[class]:last-child {
    margin-right: 0; 
}

.col-6.text-center.border > div {
    max-height: 282px;
    overflow-y: auto;
}

/* Edit mode styles */
.editing-command {
    background-color: #f0f9ff !important;
    border-left: 4px solid #38bdf8 !important;
    box-shadow: 0 2px 4px rgba(56, 189, 248, 0.15) !important;
    transition: all 0.3s ease;
}

/* Highlight editing form area */
.editing-form-area {
    background-color: #f0f9ff !important;
    border-left: 4px solid #38bdf8 !important;
    box-shadow: 0 2px 4px rgba(56, 189, 248, 0.15) !important;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.edit-banner {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 50%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.profile-avatar-link:hover,
.profile-avatar-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(124, 166, 247, 0.4);
    transform: translateY(-1px);
}

.profile-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #adb5bd;
    display: block;
}

.organization-logos-row {
    align-items: stretch;
}

.organization-logo-card {
    min-height: 11.5rem;
}

.organization-logo-image {
    width: min(100%, 11rem);
    max-height: 6.75rem;
    object-fit: contain;
}

.organization-logo-image--baik {
    width: min(100%, 12rem);
    max-height: 7.25rem;
}

@media (max-width: 575.98px) {
    .organization-logo-card {
        min-height: 9.5rem;
    }

    .organization-logo-image,
    .organization-logo-image--baik {
        width: min(100%, 10rem);
    }
}
