.ttn-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 20px;
    padding: 20px;
    background: var(--main-background);
    border: 1px var(--main-text-sub-color-beauty) solid;
    border-radius: 12px;
    box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.25), 0 0 3px 0 rgba(0, 0, 0, 0.55);
    -webkit-box-shadow: 0 0.5px 2.5px 0 rgba(0, 0, 0, .3), 0 0 0 0.5px rgba(0, 122, 255, 0.05) !important;
}

.ttn-body-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 20px;
    padding: 4px;
    align-items: start;
    border-radius: 12px;
    width:-webkit-fill-available;
    overflow: auto;
}

.ttn-tab-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 8px;
}

.ttn-tab-content__header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.ttn-tab-content__header-text {
    display: flex;
    gap: 5px;
    font-size: 12px;
}

.ttn-tab-content__header-text span:first-child {
    font-weight: 700;
}

.ttn-tab-content__header-download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
}

.ttn-tab-content__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.Modal .interactButton.active {
    font-weight: bold;
    background: var(--main-sub-background);
}

.ttn-destination {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ttn-destination-item {
    display: flex;
    justify-content: space-between;
    overflow: auto;
    flex-direction: column;
    gap: 20px;
}

.ttn-destination__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 16px;
    padding: 0 5px;
}

.ttn-destination__body-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    margin-top: 4px;
    padding: 0 5px;
}

.ttn-destination__body-info-data {
    font-size: 10px;
    font-weight: 700;
    width: max-content;
    white-space: nowrap;
}

.ttn-destination__header .count {
    font-size: 10px;
    width: 26px;
    overflow: visible;
    text-wrap-mode: nowrap;
}

.ttn-destination__header .toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-text-color);;
    transition: transform 0.2s;
}

.ttn-destination__header.collapsed .toggle {
    transform: rotate(-90deg);
}

.ttn-destination__body {
    background-color: var(--main-background);
}

.ttn-destination__body-info-fio {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 135px;
    min-width: 135px;
    max-width: 135px;

    div {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.ttn-destination__avatar {
    border-radius: 50%;
}

.ttn-destination__body-info-comment {
    font-size: 12px;
    width: 600px;
}

.ttn-equipment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-radius: 4px;
    height: 14px;
}

.ttn-equipment-item:last-child {
    border-bottom: none;
}

.ttn-equipment-info {
    display: grid;
    grid-template-columns: 135px 3fr 2fr 2fr 2fr 60px;
    gap: 10px;
    font-weight: 900;
    width: 100%;
    align-items: center;
}

.ttn-equipment-info input {
    margin: 1px;
}


.ttn-equipment-delete {
    display: flex;
    align-items: center;
}

.ttn-equipment-delete img {
    min-width: 16px;
}

.ttn-equipment-delete img:hover {
    opacity: 0.5;
}

.ttn-equipment-type {
    display: flex;
    gap: 5px;
    white-space: nowrap;
    font-size: 11px;
    flex: 1;
    max-width: 150px;
}

.ttn-equipment-name {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    max-width: 200px;
}

.ttn-equipment-sn {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.ttn-equipment-status,
.ttn-equipment-status-right {
    text-align: right;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    justify-content: end;
    align-items: center;
    /*margin-right: 20px;*/
}

.ttn-equipment-count {
    text-align: right;
    font-size: 11px;
}

.ttn-add-equipment {
    display: flex;
    gap: 30px;
    margin-top: 5px;
}

.ttn-add-equipment a {
    text-decoration: none;
    font-size: 10pt;
    display: inline-flex;
    align-items: center;
}

.ttn-textarea,
.ttn-input {
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", sans-serif, "Segoe UI", system-ui, Roboto, Ubuntu;
    background: var(--input-background);
    outline: 1px solid var(--main-delimiter-light);
    color: var(--main-text-color);
    border: 0;
    border: none;
    padding: 5px;
    border-radius: 6px;
    height: 28px;
    background: var(--input-background);
    width:100%;
    box-sizing: border-box;
}

/* Инфо */
.ttn-info-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    font-size: 14px;
    overflow-x: auto;
}

.ttn-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttn-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.ttn-status.accepted {
    background-color: #d4edda;
    color: #155724;
}

.ttn-status.in-transit {
    background-color: #fff3cd;
    color: #856404;
}

.ttn-status.draft {
    background-color: #f8f9fa;
    color: #383d41;
}

.ttn-info-row {
    display: flex;
    margin-bottom: 10px;
}

.ttn-info-label {
    font-weight: bold;
    min-width: 150px;
}

.ttn-info-value {
    flex-grow: 1;
}


/* checkbox */

.ttn-accept-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ttn-accept-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.ttn-accept-checkbox label {
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.ttn-acceptance-container {
    padding: 15px;
}

.ttn-acceptance-section {
    margin-bottom: 20px;
}

.ttn-acceptance-section h3 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.ttn-count {
    font-size: 10px;
    font-weight: normal;
}

.ttn-equipment-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.ttn-equipment-type, .ttn-equipment-name, .ttn-equipment-sn {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ttn-reason {
    color: #d9534f;
    font-style: italic;
}

.ttn-redirect-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.ttn-redirect-target {
    font-weight: bold;
    margin-bottom: 8px;
}

.ttn-redirected {
    background-color: rgba(255, 174, 0, 0.05);
    border-left: 3px solid #FFAE00;
}

.ttn-redirected-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ttn-redirected-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttn-receiving-container {
    padding: 15px;
}

.ttn-status-selector {
    position: relative;
    cursor: pointer;
    text-align: right;
}

.ttn-status-menu {
    position: absolute;
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", sans-serif, "Segoe UI", system-ui, Roboto, Ubuntu;
    font-size: 13px;
    font-weight: bold;
    color: var(--main-text-sub-color);
    z-index: 11;
    width: 170px;
    height: max-content;
    background: var(--main-background);
    border: 1px solid var(--main-delimiter-light);
    overflow: hidden;
    padding: 7px;
    will-change: margin, opacity;
}

.ttn-status-current {
    font-size: 9px;
    font-weight: 500;
}

.ttn-status-menu div {
    padding: 5px;
    cursor: pointer;
    border-radius: 10px;
}

.ttn-status-menu div:hover {
    background-color: #f5f5f5;
}

.ttn-redirection-item {
    margin-top: 10px;
}

.ttn-redirection-header {
    font-weight: bold;
    color: #FFAE00;
    margin-bottom: 10px;
}

.ttn-redirection-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#redirection-equipment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ttn-status-menu div.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.ttn-status-menu div {
    cursor: pointer;
    padding: 5px 10px;
    transition: background-color 0.2s;
}

.ttn-status-menu div:hover:not(.disabled) {
    background-color: #f5f5f5;
}