/**
 * v7/widgets/home/home.admin-reminder.css
 * 관리자 홈 알림 위젯 스타일
 *
 * 부드러운 톤 + 깔끔한 정렬. 방패 아이콘 배지로 관리자 영역 표시.
 */

.v7-admin-reminder {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    position: relative;
    font-size: 0.85em;
}

/* 헤더: 배지 + 타이틀을 한 줄에 정렬 */
.v7-admin-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.v7-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    background: #4f46e5;
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    padding: 0.2em 0.55em;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.v7-admin-badge i {
    font-size: 0.9em;
}

.v7-admin-reminder-title {
    font-size: 0.85em;
    font-weight: 500;
    margin: 0;
    color: #64748b;
}

/* 섹션 */
.v7-admin-section {
    margin-bottom: 0.6rem;
}

.v7-admin-section:last-child {
    margin-bottom: 0;
}

.v7-admin-section-title {
    font-size: 0.8em;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.35em;
}

.v7-admin-section-title i {
    color: #94a3b8;
    width: 1em;
    text-align: center;
}

/* 더보기 링크: 섹션 제목 오른쪽 끝 */
.v7-admin-more {
    margin-left: auto;
    font-size: 0.82em;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
}

.v7-admin-more:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 건수 표시 */
.v7-admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.85em;
    font-weight: 600;
    min-width: 1.4em;
    height: 1.4em;
    padding: 0 0.35em;
    border-radius: 99px;
    line-height: 1;
}

/* 만료 임박 광고 섹션 강조 */
.v7-admin-expiring-section {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
}

/* 만료 임박 광고 카드 */
.v7-expiring-ad-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 5px;
    background: #fff;
    border-left: 3px solid #f59e0b;
    margin-bottom: 0.3rem;
    color: inherit;
    transition: background 0.15s;
}
.v7-expiring-ad-card:hover {
    background: #fef9ee;
    cursor: default;
}
.v7-expiring-ad-card.urgent {
    border-left-color: #dc2626;
    background: #fef2f2;
}
.v7-expiring-ad-card.urgent:hover {
    background: #fee2e2;
}
.v7-expiring-ad-card.expired {
    border-left-color: #6b7280;
    background: #f3f4f6;
}
.v7-expiring-ad-card.expired:hover {
    background: #e5e7eb;
}

/* 썸네일 */
.v7-expiring-ad-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v7-expiring-ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v7-expiring-ad-no-img {
    color: #cbd5e1;
    font-size: 1rem;
    text-decoration: none;
}

/* 정보 영역 */
.v7-expiring-ad-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.v7-expiring-ad-name {
    font-weight: 700;
    font-size: 0.82em;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v7-expiring-ad-title {
    font-size: 0.72em;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v7-expiring-ad-banners {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.v7-expiring-banner-tag {
    font-size: 0.6em;
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.05em 0.35em;
    border-radius: 3px;
    font-weight: 600;
}

/* 액션 버튼 영역 */
.v7-expiring-ad-actions {
    display: flex;
    gap: 0.15rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}
.v7-expiring-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    font-size: 0.65em;
    font-weight: 600;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.v7-expiring-action-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.v7-expiring-action-chat {
    color: #2563eb;
    background: #eff6ff;
}
.v7-expiring-action-chat:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* 남은 일수 배지 */
.v7-expiring-ad-days {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
}
.v7-expiring-ad-days.urgent {
    background: #fecaca;
    color: #991b1b;
}
.v7-expiring-ad-days.expired {
    background: #e5e7eb;
    color: #6b7280;
}
.v7-days-num {
    font-size: 0.85em;
    font-weight: 800;
    line-height: 1.1;
}
.v7-days-label {
    font-size: 0.55em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.v7-days-date {
    font-size: 0.6em;
    font-weight: 700;
    margin-top: 0.05em;
}

/* 만료 임박 일수 표시 (레거시 호환) */
.v7-admin-days-left {
    color: #a16207;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}
.v7-admin-days-left.urgent {
    color: #dc2626;
}

/* 신고 글 아이템 */
.v7-admin-item {
    margin: 0 0 0.15rem 0;
    font-size: 0.85em;
    padding-left: 1.35em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v7-admin-item a {
    color: #2563eb;
    text-decoration: none;
}

.v7-admin-item a:hover {
    text-decoration: underline;
}

.v7-admin-empty {
    font-size: 0.8em;
    color: #94a3b8;
    margin: 0;
    padding-left: 1.35em;
}

/* 테이블 */
.v7-admin-table {
    font-size: 0.78em;
    width: 100%;
    padding-left: 1.35em;
}

.v7-admin-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 2.5fr;
    gap: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.35rem;
    margin-bottom: 0.2rem;
    color: #475569;
}

.v7-admin-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 2.5fr;
    gap: 0.75rem;
    padding: 0.2rem 0;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.v7-admin-table-row:last-child {
    border-bottom: none;
}

/* 테이블 셀 텍스트 넘침 시 말줄임(...) */
.v7-admin-table-header span,
.v7-admin-table-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 업소록 2칼럼 컴팩트 리스트 */
.v7-admin-company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-left: 1.35em;
}

.v7-admin-company-item {
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.15rem 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    font-size: 0.82em;
    line-height: 1.4;
}

.v7-admin-company-item:hover .v7-admin-company-name {
    text-decoration: underline;
}

.v7-admin-company-name {
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
    flex-shrink: 0;
}

.v7-admin-company-sep {
    color: #cbd5e1;
    flex-shrink: 0;
}

.v7-admin-company-title {
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.v7-admin-table-row a {
    color: #2563eb;
    text-decoration: none;
}

.v7-admin-table-row a:hover {
    text-decoration: underline;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
    .v7-admin-reminder {
        padding: 0.75rem 1rem;
    }
    .v7-admin-table {
        font-size: 0.72em;
        padding-left: 0;
    }
    .v7-admin-table-header,
    .v7-admin-table-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .v7-admin-table-header:not(.v7-admin-company-header) span:nth-child(3),
    .v7-admin-table-row:not(.v7-admin-company-row) span:nth-child(3) {
        display: none;
    }
    .v7-admin-item,
    .v7-admin-empty {
        padding-left: 0;
    }
    .v7-expiring-ad-thumb {
        width: 32px;
        height: 32px;
    }
    .v7-expiring-ad-banners {
        display: none;
    }
    .v7-admin-company-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
    }
}
