/* Таблица */
.edit-partner {
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-partner img {
    width: 18px;
    height: 18px;
}

.edit-partner span {
    color: #07584C;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
}

.partner-web {
    color: #222222;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
}

/* Чекбокс */
.checkbox-edit-management {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    user-select: none;
}

.checkbox-edit-management input {
    display: none;
}

.checkmark-edit-management {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background-color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkmark-edit-management::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-edit-management input:not(:checked) + .checkmark-edit-management {
    background-color: transparent;
    border: 1px solid #d1d5db;
}

.checkbox-edit-management input:not(:checked) + .checkmark-edit-management::after {
    display: none;
}


/* Форма редактирования */
.edit-page {
    background-color: white;
    border-radius: 16px;
    padding: 15px;
    margin-top: 10px;
    width: 100%;
}

.edit-page h2,
.edit-page h2 b {
    color: #222222;
    font-size: 28px;
    font-weight: 600;
    padding: 15px 0;
}

.edit-page h2 b {
    color:#07584C;
}

.edit-page form {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.edit-page form label {
    color: #222222;
    font-size: 18px;
    font-weight: 400;
    margin: 20px 0 5px 0;
}

.edit-page form input {
    border: 1px solid #9F9F9F;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    outline: none;
    color: #9F9F9F;
}

.edit-page form input:hover::placeholder {
    color: rgba(67, 66, 66, 1);
}

.edit-page form input:not(:placeholder-shown),
.edit-page form input:focus,
.edit-page form input:hover {
    border: 1px solid rgba(67, 66, 66, 1);
    color: rgba(67, 66, 66, 1);
}

.edit-page form .button-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 200%;
    padding-bottom: 10px;
}

.edit-page form .buttons {
    display: flex;
    gap: 15px;
    padding-top: 25px;
}

.edit-page form .buttons button {
    padding: 10px 35px;
    font-size: 16px;
    font-weight: 600;
    color: #07584C;
    background-color: transparent;
    border-radius: 100px;
    outline: none;
    border: 1px solid #07584C;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.edit-page form .buttons button:hover {
    background-color: #07584C;
    color: #ffffff;
}

.edit-page form .buttons button:active {
    background-color: #06483F;
    border-color: #06483F;
}

.edit-page form .buttons button a {
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.edit-page form .buttons .submit-btn {
    background-color: #FFC610;
    color: #222222;
    border: 1px solid #FFC610;
}

.edit-page form .buttons .submit-btn:hover {
    background-color: #e6b200;
    color: #222222;
}

.edit-page form .buttons .submit-btn:active {
    background-color: #d9a800;
}

.edit-page form .current-logo {
    padding-top: 15px;
}

.edit-page form .current-logo p {
    font-size: 18px;
    color: #222222;
    font-weight: 400;
    margin-bottom: 10px;
}

.edit-page form .current-logo img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid #07584C;
    padding: 10px;
}


/* Таблица */
.main-section-blogs {
    min-height: 420px;
    background-color: #ffffff;
    overflow: hidden;
}

.main-section-blogs table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.main-section-blogs table thead tr td {
    background-color: #F1F1F1;
    color: #6C6C6C;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
    white-space: nowrap;
}

.main-section-blogs table tbody tr {
    border-bottom: 1px solid #E9E9E9;
    transition: background-color 0.2s ease;
}

.main-section-blogs table tbody tr:hover {
    background-color: #FAFAFA;
}

.main-section-blogs table tbody tr td {
    color: #222222;
    font-size: 15px;
    font-weight: 450;
    padding: 12px 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-section-blogs table td:first-child,
.main-section-blogs table thead td:first-child {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    font-weight: 600;
}

.main-section-blogs table td:nth-child(2),
.main-section-blogs table td:nth-child(3),
.main-section-blogs table td:nth-child(4),
.main-section-blogs table thead td:nth-child(2),
.main-section-blogs table thead td:nth-child(3),
.main-section-blogs table thead td:nth-child(4) {
    width: auto;
}

.main-section-blogs table td:nth-child(5),
.main-section-blogs table td:nth-child(6),
.main-section-blogs table thead td:nth-child(5),
.main-section-blogs table thead td:nth-child(6) {
    width: 130px;
    text-align: left;
}

.main-section-blogs table tbody tr td:first-child,
.main-section-blogs table thead tr td:first-child {
    padding-left: 20px;
}

.main-section-blogs table tbody tr td:last-child,
.main-section-blogs table thead tr td:last-child {
    padding-right: 20px;
}


.main-section-blogs .edit-partner,
.main-section-blogs .delete-employee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.main-section-blogs .edit-partner {
    color: #0B8E7A;
    text-decoration: none;
}

.main-section-blogs .edit-partner img {
    width: 16px;
    height: 16px;
}

/* Delete */
.main-section-blogs .delete-employee {
    color: #D64545;
    background: none;
    border: none;
}

.main-section-blogs .delete-employee img {
    width: 16px;
    height: 16px;
}


/* Textarea */
textarea {
    border: 1px solid rgba(108, 108, 108, 1);
    border-radius: 8px;
    background: #fff;
    width: 100%;
    font-size: 16px;
    color: rgba(108, 108, 108, 1);
    padding: 10px;
    height: 350px;
    outline: none;
}

textarea:hover::placeholder {
    color: rgba(67, 66, 66, 1);
}

textarea:not(:placeholder-shown),
textarea:focus,
textarea:hover {
    color: rgba(67, 66, 66, 1);
}


/* Модальное окно */
.delete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
    z-index: 4;
}

.delete-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    background-color: #FFFFFF;
    padding: 35px 50px;
    border-radius: 12px;

    transform: translate(-50%, -45%) scale(0.96);
    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;

    z-index: 5;
}

.delete-overlay.active {
    opacity: 1;
    visibility: visible;
}

.delete-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.delete-notification img {
    float: right;
    width: 16px;
    height: 16px;
    margin-right: -35px;
    margin-top: -17px;
    cursor: pointer;
}

.delete-notification h2 {
    color: #021814;
    font-size: 26px;
    font-weight: 600;
    padding-top: 25px;
    text-align: center;
}

.delete-notification .text {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 30px 0;
}

.delete-notification .text span {
    color: #021814;
    font-size: 16px;
    font-weight: 450;
}

.delete-notification .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.delete-notification .buttons button {
    font-size: 16px;
    font-weight: 500;
    width: 220px;
    padding: 12px 0;
    border-radius: 100px;
    border: none;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.2s ease;
}

.delete-notification .buttons button.refuse {
    background-color: #C8CDCC;
    color: black;
}

.delete-notification .buttons button.refuse:hover {
    background-color: #b1b5b5;
}

.delete-notification .buttons button:not(.refuse) {
    background-color: #FF311D;
    color: #fff;
}

.delete-notification .buttons button:not(.refuse):hover {
    background-color: #e42b1a;
}


/* Блоги */
.blog-delete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
    z-index: 4;
}

.blog-delete-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    background-color: #FFFFFF;
    padding: 35px 50px;
    border-radius: 12px;

    transform: translate(-50%, -45%) scale(0.96);
    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;

    z-index: 5;
}

.blog-delete-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-delete-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.blog-delete-modal img {
    float: right;
    width: 16px;
    height: 16px;
    margin-right: -35px;
    margin-top: -17px;
    cursor: pointer;
}

.blog-delete-modal h2 {
    color: #021814;
    font-size: 26px;
    font-weight: 600;
    padding-top: 25px;
    text-align: center;
}

.blog-delete-modal .text {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 30px 0;
}

.blog-delete-modal .text span {
    color: #021814;
    font-size: 16px;
    font-weight: 450;
}

.blog-delete-modal .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.blog-delete-modal .buttons button {
    font-size: 16px;
    font-weight: 500;
    width: 220px;
    padding: 12px 0;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.blog-delete-modal .buttons button.refuse {
    background-color: #C8CDCC;
    color: black;
}

.blog-delete-modal .buttons button.refuse:hover {
    background-color: #b1b5b5;
}

.blog-delete-modal .buttons button:not(.refuse) {
    background-color: #FF311D;
    color: #fff;
}

.blog-delete-modal .buttons button:not(.refuse):hover {
    background-color: #e42b1a;
}
