.applications {
    margin-top: 10px;
    background-color: white;
    border-radius: 16px;
    width: 100%;
    flex: 1;
}

.applications .top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.applications .top-section .block {
    display: flex;
    flex-wrap: nowrap;
    margin-top: -6px;
}

.applications .top-section .filters {
    margin-top: 5px;
}

.applications .top-section .block h2 {
    color: #222222;
    font-size: 24px;
    font-weight: 600;
}

.applications .top-section .block h2 b {
    color: #07584C;
    font-weight: 600;
}

.applications .top-section .block .filter-days {
    background-color: #FEE7BC;
    border-radius: 8px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    height: 45px;
}

.applications .top-section .block .filter-days img {
    width: 20px;
    height: 20px;
}

.applications .top-section .block .filter-days svg {
    width: 20px;
    height: 20px;
}

.applications .top-section .block .filter-days span {
    font-size: 14px;
    color: #6C6C6C;
    margin: 0 5px 0 10px;
}

.applications .top-section .block .filter-days:hover svg path {
    margin-top: -2px;
    transition: 0.1s ease-in;
}

.applications .top-section .block .filter-days:hover svg path:hover {
    stroke: #222222;
}

.applications .top-section .block .filter-days .filter-days--dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #FFF6DE;
    border-radius: 8px;
    padding: 6px 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    z-index: 10;
}

.applications .top-section .block .filter-days.active .filter-days--dropdown {
    opacity: 1;
    transform: translateY(-4px);
    pointer-events: auto;
}

.applications .top-section .block .filter-days .filter-days--dropdown p {
    margin: 0;
    padding: 10px 14px;
    transition: background-color 0.15s ease;
}

.applications .top-section .block .filter-days .filter-days--dropdown p a {
    color: #222222;
    font-size: 15px;
    font-weight: 450;
}

.applications .top-section .block .filter-days .filter-days--dropdown p:hover {
    background-color: #FEE7BC;
}

.applications .top-section .block .filter-days .filter-days .arrow {
    transition: transform 0.25s ease;
}

.applications .top-section .block .filter-days .filter-days.active .arrow {
    transform: rotate(180deg);
}

.applications .top-section .block .adding-application {
    background-color: #FFC610;
    border-radius: 8px;
    padding: 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease;
    height: 45px;
    margin-left: 15px;
}

.applications .top-section .block .adding-application:hover {
    background-color: #F2BE0F;
}

.applications .top-section .block .adding-application a span {
    color: #222222;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.applications .top-section .block .adding-application a span img {
    width: 15px;
    height: 15px;
}


/* Таблица */
.applications .main-section {
    min-height: 420px;
    margin-top: -10px;
}

.applications .main-section table {
    width: 100%;
    border-collapse: collapse;
}

.applications .main-section table thead tr td {
    background-color: #E9E9E9;
    color: #6C6C6C;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding: 15px 0;
}

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

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

.applications .main-section table tbody tr {
    border-bottom: 1px solid #E9E9E9;
}

.applications .main-section table tbody tr td:first-child {
    color: #0B8E7A;
    cursor: pointer;
}

.applications .main-section table tbody tr td {
    color: #222222;
    font-size: 16px;
    font-weight: 450;
    padding: 12px 0;
    text-align: left;
}

.applications .main-section table tbody tr td .status {
    padding: 5px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.applications .main-section table tbody tr td .partner-a,
.pdf {
    color: #222222;
    text-decoration: underline;
}

.pdf a {
    color: #222222;
    font-weight: 550;
}

/* Статусы */
.applications .main-section table tbody tr td .dropdown-status {
    position: absolute;
    z-index: 8;
    right: 60px;
    background-color: #E7FDFA;
    border: 1px solid #07584C;
    border-radius: 8px;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s;
}

.applications .main-section table tbody tr td .dropdown-status.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(8px);
}

.applications .main-section table tbody tr td .dropdown-status p {
    margin-bottom: 15px;
    cursor: pointer;
}

.applications .main-section table tbody tr td .dropdown-status p:last-child {
    margin-bottom: 0;
}

.applications .main-section table tbody tr td .dropdown-status p span {
    padding: 5px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
}

.empty {
    font-size: 26px;
    font-weight: 400;
    padding-left: 15px;
    padding-top: 15px;
}

.applications .main-section table tbody tr td .manager-avatar {
    width: 32px;
    height: 32px;
    border-radius: 100px;
}


/* Пагинация */
/* =========================
   Нижняя секция
========================= */

.applications .bottom-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 35px 15px 15px 15px;
    margin-top: 100px;
}

.applications .bottom-section .block {
    margin-right: 35px;
}

.applications .bottom-section .block:last-child {
    margin-right: 0;
}

.applications .bottom-section .block span {
    color: #64748B;
    font-size: 16px;
    font-weight: 450;
}


/* Пагинация */
.pagination {
    display: flex;
    gap: 12px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #00A991;
    color: #00A991;
    background: #ECFDFB;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #D1FAF5;
    border-color: #00A991;
    color: #008E78;
}

.pagination-btn.disabled {
    color: #9CA3AF;
    border-color: #E5E7EB;
    background: #F9FAFB;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn:active:not(.disabled) {
    transform: translateY(1px);
}

.info-icon {
    width: 18px;
    height: 18px;
    margin-left: 15px;
}


/* Причина отказа */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-window {
    background: #ffffff;
    width: 520px;
    padding: 40px 32px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #052F2B;
}

.modal-text {
    font-size: 16px;
    line-height: 1.5;
    color: #5C6C6B;
    margin-bottom: 24px;
}

.modal-textarea {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    border: 1px solid #E0E6E6;
    padding: 14px;
    font-size: 15px;
    resize: none;
    outline: none;
}

.modal-textarea:focus {
    border-color: #0F766E;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.btn {
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
    min-width: 170px;
}

.btn-cancel {
    background: #FF3B30;
    color: #fff;
}

.btn-cancel:hover {
    background: #e32f25;
}

.btn-confirm {
    background: #0F766E;
    color: #fff;
}

.btn-confirm:hover {
    background: #0c5f59;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 16px;
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

@keyframes fadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
