/* Applications page */

.applications-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.applications-duration-value {
    font-size: 25px;
}

.applications-panel {
    padding: 0;
    overflow: hidden;
}

.applications-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 21px;
    border-bottom: 1px solid #eaecf0;
}

    .applications-toolbar .panel-title {
        margin-bottom: 2px;
    }

.applications-filter-form {
    display: flex;
    align-items: center;
    gap: 9px;
}

.applications-search-wrapper {
    position: relative;
}

    .applications-search-wrapper > svg {
        position: absolute;
        top: 50%;
        left: 12px;
        width: 16px;
        height: 16px;
        color: #98a2b3;
        pointer-events: none;
        transform: translateY(-50%);
    }

.applications-search-input {
    width: 235px;
    min-height: 39px;
    padding-left: 37px;
    font-size: 12px;
    border-color: #e2e8f0;
    border-radius: 8px;
}

.applications-date-input {
    width: 150px;
    min-height: 39px;
    font-size: 12px;
    border-color: #e2e8f0;
    border-radius: 8px;
}

.applications-filter-button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #1c67b2;
    border: 0;
    border-radius: 8px;
}

    .applications-filter-button svg {
        width: 15px;
        height: 15px;
    }

.applications-table-wrapper {
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
}

    .applications-table th {
        padding: 11px 13px;
        font-size: 10px;
        font-weight: 600;
        color: #667085;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.035em;
        background: #f8fafc;
        border-bottom: 1px solid #eaecf0;
    }

    .applications-table td {
        padding: 13px;
        font-size: 12px;
        color: #475467;
        vertical-align: middle;
        border-bottom: 1px solid #eef1f5;
    }

    .applications-table tbody tr:hover {
        background: #fbfcfe;
    }

.application-name-cell {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 10px;
}

.application-page-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: #175cd3;
    background: #eff8ff;
    border-radius: 9px;
}

    .application-page-icon svg {
        width: 17px;
        height: 17px;
    }

.application-name-cell strong {
    display: block;
    font-weight: 600;
    color: #344054;
}

.application-name-cell small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #98a2b3;
}

.application-usage-time {
    color: #344054;
}

.application-share-cell {
    min-width: 120px;
}

    .application-share-cell > span {
        display: block;
        margin-bottom: 5px;
        font-size: 10px;
        font-weight: 600;
    }

.application-share-track {
    height: 5px;
    overflow: hidden;
    background: #edf1f5;
    border-radius: 10px;
}

.application-share-value {
    height: 100%;
    background: linear-gradient( 90deg, #2d83ce, #5aa9e6 );
    border-radius: 10px;
}

.application-details-link {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: #667085;
    border-radius: 7px;
}

    .application-details-link:hover {
        color: #175cd3;
        background: #eff8ff;
    }

    .application-details-link svg {
        width: 16px;
        height: 16px;
    }

.applications-page-empty {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

    .applications-page-empty strong {
        margin-top: 12px;
        font-size: 14px;
        color: #344054;
    }

    .applications-page-empty span {
        max-width: 400px;
        margin-top: 5px;
        font-size: 12px;
        color: #667085;
    }

.application-details-panel {
    margin-top: 18px;
}

.application-window-list {
    display: flex;
    flex-direction: column;
}

.application-window-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
}

    .application-window-item:last-child {
        border-bottom: 0;
    }

.application-window-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.application-window-icon {
    display: inline-flex;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    color: #475467;
    background: #f2f4f7;
    border-radius: 8px;
}

    .application-window-icon svg {
        width: 15px;
        height: 15px;
    }

.application-window-title strong {
    display: block;
    max-width: 900px;
    overflow: hidden;
    font-size: 12px;
    color: #344054;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.application-window-title small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #98a2b3;
}

.application-row-selected {
    background: #f0f7ff;
}

    .application-row-selected td:first-child {
        box-shadow: inset 3px 0 0 #2d83ce;
    }
.applications-filter-panel {
    padding: 14px 16px;
    margin-bottom: 18px;
}

.report-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.report-filter-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

    .report-filter-control label {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted, #64748b);
    }

    .report-filter-control .form-control {
        height: 38px;
        min-height: 38px;
        padding: 6px 10px;
    }

.report-search-control {
    flex: 1 1 190px;
    min-width: 180px;
    max-width: 280px;
}

.report-date-control {
    min-width: 140px;
}

.report-custom-date-range {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.report-filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .report-filter-buttons .applications-filter-button,
    .report-filter-buttons .applications-reset-button {
        height: 38px;
        min-height: 38px;
    }

.applications-reset-button {
    width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1000px) {
    .report-filter-control,
    .report-search-control {
        flex: 1 1 180px;
        max-width: none;
    }

    .report-filter-buttons {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .report-filter-bar,
    .report-custom-date-range {
        align-items: stretch;
    }

    .report-filter-control,
    .report-search-control,
    .report-date-control {
        width: 100%;
        max-width: none;
    }

    .report-custom-date-range {
        width: 100%;
        flex-direction: column;
    }
}