/* ==========================================================================
   СПИСОК НЕДОЗВОНА
   ========================================================================== */


/* --------------------------------------------------------------------------
   СЧЕТЧИК В ВЕРХНЕМ МЕНЮ
   -------------------------------------------------------------------------- */

.missed-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
}

.missed-nav-badge {
    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border-radius: 10px;

    background: #fd5d93;
    color: #ffffff;

    font-size: 10px;
    font-weight: 900;

    line-height: 1;

    border: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        0 0 9px rgba(253, 93, 147, 0.45);
}

.missed-nav-badge.pulse {
    animation:
        missedBadgePulse 1.8s ease-in-out infinite;
}

@keyframes missedBadgePulse {

    0%,
    100% {
        box-shadow:
            0 0 5px rgba(253, 93, 147, 0.35);
    }

    50% {
        box-shadow:
            0 0 16px rgba(253, 93, 147, 0.95);
    }
}


/* --------------------------------------------------------------------------
   ОСНОВНАЯ ПАНЕЛЬ
   -------------------------------------------------------------------------- */

.missed-panel {
    width: 100%;
    height: calc(100vh - 155px);

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    animation:
        missedPanelAppear 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes missedPanelAppear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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


/* --------------------------------------------------------------------------
   ШАПКА СО СЧЕТЧИКОМ
   -------------------------------------------------------------------------- */

.missed-summary {
    flex-shrink: 0;

    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 14px;

    box-sizing: border-box;

    border-radius: 13px;

    background:
        linear-gradient(135deg,
            rgba(253, 93, 147, 0.085),
            rgba(253, 93, 147, 0.025));

    border:
        1px solid rgba(253, 93, 147, 0.22);

    margin-bottom: 15px;
}

.missed-summary-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 18px;
}

.missed-summary-dot {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    margin-left: 2px;

    border-radius: 50%;

    background: #fd5d93;

    box-shadow:
        0 0 10px rgba(253, 93, 147, 0.8);

    animation:
        missedSummaryPulse 1.8s ease-in-out infinite;
}

@keyframes missedSummaryPulse {
    50% {
        opacity: 0.45;

        box-shadow:
            0 0 4px rgba(253, 93, 147, 0.35);
    }
}

.missed-summary-title {
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.35;
}

.missed-summary-subtitle {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 600;
}

.missed-summary-count {
    min-width: 35px;
    height: 35px;

    padding: 0 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border-radius: 11px;

    background:
        rgba(253, 93, 147, 0.13);

    border:
        1px solid rgba(253, 93, 147, 0.32);

    color: #fd5d93;

    font-size: 16px;
    font-weight: 900;

    box-shadow:
        inset 0 0 12px rgba(253, 93, 147, 0.04);
}


/* --------------------------------------------------------------------------
   СПИСОК
   -------------------------------------------------------------------------- */

.missed-list {
    flex: 1;
    min-height: 0;

    overflow-y: auto;

    padding-right: 3px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.15) transparent;
}

.missed-list::-webkit-scrollbar {
    width: 5px;
}

.missed-list::-webkit-scrollbar-track {
    background: transparent;
}

.missed-list::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.14);

    border-radius: 5px;
}


/* --------------------------------------------------------------------------
   КАРТОЧКА НОМЕРА
   -------------------------------------------------------------------------- */

.missed-card {
    position: relative;

    padding: 14px;

    margin-bottom: 10px;

    box-sizing: border-box;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.065);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

    overflow: hidden;
}

.missed-card::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: #fd5d93;
}

.missed-card.lost::before {
    background: #ff8d72;
}

.missed-card:hover {
    transform: translateY(-1px);

    background:
        rgba(255, 255, 255, 0.05);

    border-color:
        rgba(255, 255, 255, 0.11);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.13);
}

.missed-card.claimed {
    opacity: 0.72;
}


/* --------------------------------------------------------------------------
   ВЕРХ КАРТОЧКИ
   -------------------------------------------------------------------------- */

.missed-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-bottom: 10px;
}

.missed-card-source {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #fd5d93;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.65px;
}

.missed-card.lost .missed-card-source {
    color: #ff9d86;
}

.missed-source-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: currentColor;

    box-shadow:
        0 0 7px currentColor;
}

.missed-card-time {
    color: rgba(255, 255, 255, 0.42);

    font-size: 10px;
    font-weight: 700;

    font-family: monospace;
}


/* --------------------------------------------------------------------------
   КЛИЕНТ
   -------------------------------------------------------------------------- */

.missed-card-title {
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    line-height: 1.3;

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

.missed-card-phone {
    margin-top: 3px;

    color: var(--accent-alt);

    font-size: 11px;
    font-weight: 700;
}

.missed-card-org {
    margin-top: 6px;

    color: var(--success);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.5px;
    text-transform: uppercase;

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


/* --------------------------------------------------------------------------
   МЕТАДАННЫЕ
   -------------------------------------------------------------------------- */

.missed-card-meta {
    display: flex;
    justify-content: space-between;

    gap: 8px;

    margin-top: 11px;
    padding-top: 9px;

    border-top:
        1px solid rgba(255, 255, 255, 0.05);

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   КНОПКА ПОЗВОНИТЬ
   -------------------------------------------------------------------------- */

.missed-card-action {
    margin-top: 11px;
}

.missed-call-btn {
    width: 100%;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 10px;

    border:
        1px solid rgba(0, 242, 195, 0.3);

    background:
        rgba(0, 242, 195, 0.07);

    color: var(--success);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.65px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.missed-call-btn:hover:not(:disabled) {
    transform: translateY(-1px);

    background: var(--success);
    color: #171722;

    border-color:
        rgba(255, 255, 255, 0.8);

    box-shadow:
        0 0 14px rgba(0, 242, 195, 0.25);
}

.missed-call-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}


/* --------------------------------------------------------------------------
   БРОНЬ НОМЕРА
   -------------------------------------------------------------------------- */

.missed-claimed {
    width: 100%;
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 10px;

    box-sizing: border-box;

    border-radius: 10px;

    border:
        1px solid rgba(255, 193, 7, 0.22);

    background:
        rgba(255, 193, 7, 0.055);

    color: #ffd166;

    font-size: 9px;
    font-weight: 800;

    text-align: center;
}

.missed-claimed.mine {
    color: var(--success);

    border-color:
        rgba(0, 242, 195, 0.22);

    background:
        rgba(0, 242, 195, 0.05);
}

.missed-claimed-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: currentColor;

    box-shadow:
        0 0 7px currentColor;

    animation:
        missedClaimPulse 1.2s ease-in-out infinite;
}

@keyframes missedClaimPulse {
    50% {
        opacity: 0.3;
    }
}


/* --------------------------------------------------------------------------
   LOADER
   -------------------------------------------------------------------------- */

.missed-loading {
    padding-top: 65px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 13px;

    color: var(--text-muted);

    font-size: 11px;
}

.missed-loading-ring,
.missed-btn-loader {
    border-radius: 50%;

    border:
        2px solid rgba(255, 255, 255, 0.1);

    border-top-color:
        var(--accent);
}

.missed-loading-ring {
    width: 25px;
    height: 25px;

    animation:
        missedSpin 0.8s linear infinite;
}

.missed-btn-loader {
    width: 12px;
    height: 12px;

    animation:
        missedSpin 0.7s linear infinite;
}

@keyframes missedSpin {
    to {
        transform: rotate(360deg);
    }
}


/* --------------------------------------------------------------------------
   ПУСТОЙ СПИСОК
   -------------------------------------------------------------------------- */

.missed-summary-clear {
    border-color:
        rgba(0, 242, 195, 0.18);

    background:
        rgba(0, 242, 195, 0.035);
}

.missed-summary-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--success);
    color: #171722;

    font-size: 16px;
    font-weight: 900;

    box-shadow:
        0 0 12px rgba(0, 242, 195, 0.2);
}

.missed-empty {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding-bottom: 90px;

    text-align: center;
}

.missed-empty-icon {
    color:
        rgba(0, 242, 195, 0.32);

    margin-bottom: 13px;
}

.missed-empty-text {
    max-width: 230px;

    color: var(--text-muted);

    font-size: 11px;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   ERROR
   -------------------------------------------------------------------------- */

.missed-error {
    padding-top: 55px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.missed-error-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(253, 93, 147, 0.1);

    border:
        1px solid rgba(253, 93, 147, 0.3);

    color: #fd5d93;

    font-weight: 900;
}

.missed-error-title {
    margin-top: 12px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}

.missed-retry-btn {
    margin-top: 15px;

    padding: 8px 15px;

    border-radius: 8px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    background:
        rgba(255, 255, 255, 0.04);

    color: #ffffff;

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}

#sidebarTitle+#dynamicSidebar .missed-panel {
    margin-top: 18px;
}

#sidebarTitle+#dynamicSidebar .missed-panel {
    margin-top: 24px;
}