body {
    font-family: Arial, sans-serif;
    margin: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}
th {
    background-color: #f2f2f2;
}
.media {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.media-thumb {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.media-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.media-overlay-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.media-overlay-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

.media-overlay img,
.media-overlay video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
}

.media-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.media-wrapper:hover .media-thumb {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.media-wrapper:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.play-icon svg {
    width: 100%;
    height: 100%;
}

.report-filter {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.report-filter label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.days-filter input {
    width: 90px;
}

.revenue-positive {
    color: #1e8e3e; /* зелёный */
    font-weight: 600;
}

.revenue-negative {
    color: #d93025; /* красный */
    font-weight: 600;
}

.strategy-info {
    display: inline-block;
    margin-left: 4px;
    cursor: help;
    font-size: 0.9em;
    color: #555;
}
.strategy-info:hover {
    color: #000;
}

/* Избранное */
.fav-col {
    width: 40px;
}

.fav-cell {
    text-align: center;
}

.fav-star {
    cursor: pointer;
    font-size: 1.4em;
    color: #ccc;
    transition: color 0.2s ease;
    user-select: none;
}

.fav-star:hover {
    color: #f5c518;
}

.fav-star.fav-active {
    color: #f5c518;
}

.favorites-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.local-fav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.local-fav-toggle:hover {
    border-color: #f5c518;
    color: #333;
}

.local-fav-toggle.active {
    border-color: #f5c518;
    background: #fff8e1;
    color: #b8860b;
}


