/* ===== Стили для загрузки чеков ===== */

/* Кнопки выбора загрузки */
.upload-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
}

.upload-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 40px;
    background: rgba(128, 128, 128, 0.1);
    border: 2px dashed #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-option:hover {
    border-color: #910101;
    background: rgba(145, 1, 1, 0.05);
}

.upload-option img {
    width: 50px;
    height: 50px;
    opacity: 0.7;
}

.upload-option span {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* Статусы чеков */
.check-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.check-status.status-approved {
    background: rgba(34, 139, 34, 0.9);
}

.check-status.status-rejected {
    background: rgba(220, 20, 60, 0.9);
}

/* Сообщение "нет чеков" */
.no-receipts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #666;
}

/* Превью с возможностью удаления */
.upload-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upload-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.preview-remove:hover {
    transform: scale(1.1);
}

.preview-remove img {
    width: 20px;
    height: 20px;
}

/* ===== Информация о ближайшем розыгрыше ===== */
.next-drawing-info {
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.next-drawing-title {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 5px;
}

.next-drawing-name {
    font-family: 'K_TCCCUnity', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.next-drawing-date {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.next-drawing-days {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #910101;
    font-weight: 500;
}

/* ===== Блоки периодов ===== */
.period-block {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.period-header {
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.05);
}

.period-name {
    font-family: 'K_TCCCUnity', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.period-date {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
}

.period-status.status-passed {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
	padding:5px;
	border-radius:5px;
	text-align:center;
}
.chances-count{
	width:inherit !important;
}
/* ===== Сетка чеков в периоде ===== */
.period-receipts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

/* ===== Бейджи на чеках ===== */
.check-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
}

.check-badge.active {
    background: #4CAF50;
}

.check-badge.today {
    background: #FF9800;
}

.check-badge.passed {
    background: rgba(0, 0, 0, 0.5);
}

/* ===== Дата загрузки чека ===== */
.check-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: #fff;
    text-align: center;
}

.check-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
}

.check-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
/* ===== Прошедшие чеки ===== */
.check-item.check-passed {
    filter: grayscale(50%);
}

.check-item.check-passed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}