.tech-board {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 15px 70px;
    color: #152238;
}

.tech-board__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #65748b;
    font-size: 13px;
}

.tech-board__table-wrap {
    overflow-x: auto;
    border-top: 1px solid #d9e0e9;
}

.tech-board__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.tech-board__table th {
    height: 42px;
    background: #f3f6fa;
    color: #52627a;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.tech-board__table td {
    height: 66px;
    border-bottom: 1px solid #d9e0e9;
    color: #26364d;
}

.tech-board__table th,
.tech-board__table td {
    padding: 0 14px;
}

.tech-board__number {
    width: 68px;
    text-align: center !important;
}

.tech-board__category {
    width: 150px;
}

.tech-board__attachment {
    width: 120px;
    text-align: center !important;
}

.tech-board__badge {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #dce8f8;
    background: #f4f8fe;
    color: #3472bd;
    font-size: 11px;
    white-space: nowrap;
}

.tech-board__title {
    color: #1c2b41;
    font-weight: 500;
}

.tech-board__title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tech-board__title-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.tech-board__title-button:hover,
.tech-board__title-button:focus {
    color: #1769c2;
    text-decoration: underline;
}

.tech-board__delete {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #e2caca;
    background: #fff;
    color: #9b3d3d;
    font-size: 11px;
}

.tech-board__edit {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #34445b;
    font-size: 11px;
}

.tech-board__file {
    display: inline-block;
    margin: 0 4px;
    color: #607692;
    font-size: 12px;
    text-decoration: none;
}

.tech-board__file:hover,
.tech-board__file:focus {
    color: #1769c2;
    text-decoration: underline;
}

.tech-board__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.tech-board__action {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #34445b;
    font-size: 12px;
}

.tech-board__action--primary {
    border-color: #17375e;
    background: #17375e;
    color: #fff;
}

.tech-dialog {
    width: min(560px, calc(100% - 28px));
    max-height: calc(100% - 32px);
    padding: 26px;
    border: 1px solid #d9e0e9;
    color: #152238;
}

.tech-dialog::backdrop {
    background: rgba(11, 24, 42, .58);
}

.tech-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tech-dialog__header h2 {
    margin: 0;
    font-size: 20px;
}

.tech-dialog__close {
    border: 0;
    background: transparent;
    color: #52627a;
    font-size: 22px;
}

.tech-dialog__field {
    display: block;
    margin-bottom: 14px;
    color: #34445b;
    font-size: 13px;
}

.tech-dialog__field input,
.tech-dialog__field select,
.tech-dialog__field textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #152238;
    font-size: 14px;
}

.tech-dialog__field textarea {
    min-height: 130px;
    resize: vertical;
}

.tech-dialog__message {
    min-height: 20px;
    color: #a33333;
    font-size: 13px;
}

.tech-dialog__body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tech-dialog--post {
    width: min(900px, calc(100% - 28px));
}

.tech-dialog__attachments {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.tech-dialog__attachments a {
    color: #1769c2;
    text-decoration: underline;
}

.tech-dialog__post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.tech-dialog__image-link img {
    display: block;
    max-width: 100%;
    max-height: 65vh;
    border: 1px solid #d9e0e9;
    object-fit: contain;
}

.tech-dialog__existing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 14px;
}

.tech-dialog__existing-file {
    display: grid;
    justify-items: start;
    gap: 4px;
    color: #1769c2;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.tech-dialog__existing-image {
    display: block;
    max-width: 120px;
    max-height: 90px;
    border: 1px solid #d9e0e9;
    object-fit: contain;
}

.tech-dialog__caption {
    display: block;
    margin-top: 6px;
    color: #65748b;
    font-size: 12px;
}

.tech-board-legacy {
    display: none !important;
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .tech-board {
        padding: 56px 15px 45px;
    }

    .tech-board__table {
        min-width: 520px;
    }

    .tech-board__table th,
    .tech-board__table td {
        padding: 0 10px;
    }

    .tech-board__category {
        width: 120px;
    }
}