/* 계량기 조사현황관리 페이지 전용 CSS */

/* 메인 컨테이너 */
.survey-container {
    background-color: #0f172a;
    /* background-dark */
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: rgb(226 232 240);
    /* slate-200 */
    height: 100vh;
    overflow: hidden;
    letter-spacing: -0.025em;
}

/* 래퍼 */
.survey-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 메인 콘텐츠 영역 */
.survey-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* 콘텐츠 컨테이너 */
.survey-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    /* px-8 py-8 */
    gap: 2rem;
    /* gap-8 */
    overflow-y: auto;
}

/* 섹션 컨테이너 */


/* 대시보드 헤더 */
.survey-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    /* mb-5 */
}

.survey-dashboard-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
}

.survey-dashboard-icon {
    color: #3b82f6;
    /* primary */
    font-size: 1.5rem;
    /* text-2xl */
}

.survey-dashboard-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 900;
    color: rgb(241 245 249);
    /* slate-100 (dark mode) */
}

.survey-dashboard-subtitle {
    font-size: 0.6875rem;
    /* text-[11px] */
    font-weight: 700;
    color: rgb(148 163 184);
    /* slate-400 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 통계 카드 그리드 */
.survey-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    /* gap-4 */
}

@media (min-width: 768px) {
    .survey-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .survey-stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 통계 배지 그룹 */
.survey-stat-badges {
    display: flex;
    gap: 0.5rem;
    /* gap-2 */
    margin-top: 0.5rem;
    /* mt-2 */
}

.survey-stat-badge {
    font-size: 0.6875rem;
    /* text-[11px] */
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    /* px-2 py-1 */
    border-radius: 0.375rem;
    /* rounded-md */
    letter-spacing: 0.025em;
}

.survey-stat-badge-emerald {
    background-color: rgb(16 185 129 / 0.15);
    /* emerald-500/15 */
    color: rgb(16 185 129);
    /* emerald-500 */
}

.survey-stat-badge-primary {
    background-color: rgb(59 130 246 / 0.15);
    /* primary/15 */
    color: rgb(59 130 246);
    /* primary */
}

.survey-stat-badge-amber {
    background-color: rgb(245 158 11 / 0.15);
    /* amber-500/15 */
    color: rgb(245 158 11);
    /* amber-500 */
}

.survey-stat-badge-rose {
    background-color: rgb(244 63 94 / 0.15);
    /* rose-500/15 */
    color: rgb(244 63 94);
    /* rose-500 */
}

.survey-stat-badge-slate {
    background-color: rgb(100 116 139 / 0.15);
    /* slate-500/15 */
    color: rgb(148 163 184);
    /* slate-400 */
}

/* 테이블 컨테이너 */
.survey-table-container {
    background-color: rgb(30 41 59);
    /* panel-bg */
    border: 1px solid rgb(51 65 85);
    /* panel-border */
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    /* sap-shadow */
}

/* 테이블 헤더 */
.survey-table-header {
    padding: 1.5rem;
    /* p-6 */
    border-bottom: 1px solid rgb(51 65 85);
    /* panel-border */
}

.survey-table-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    margin-bottom: 1rem;
    /* mb-4 */
}

.survey-table-title-icon {
    color: #3b82f6;
    /* primary */
    font-size: 1.25rem;
    /* text-xl */
}

.survey-table-title {
    font-size: 1rem;
    /* text-base */
    font-weight: 700;
    color: rgb(241 245 249);
    /* slate-100 */
}

/* 필터 그리드 */
.survey-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* gap-4 */
    align-items: flex-end;
}

.survey-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    /* gap-1.5 */
}

.survey-search-wrapper {
    flex: 1;
    min-width: 300px;
}

.survey-filter-label {
    font-size: 0.8125rem;
    /* text-[13px] */
    font-weight: 600;
    color: rgb(148 163 184);
    /* slate-400 */
}

/* 검색 컨테이너 */
.survey-search-container {
    position: relative;
}

.survey-search-icon {
    position: absolute;
    left: 0.75rem;
    /* left-3 */
    top: 50%;
    transform: translateY(-50%);
    color: rgb(148 163 184);
    /* slate-400 */
    font-size: 1.125rem;
    /* text-lg */
    pointer-events: none;
}

.survey-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    /* py-2 pr-3 pl-10 */
    background-color: rgb(15 23 42);
    /* dashboard-bg */
    border: 1px solid rgb(51 65 85);
    /* panel-border */
    border-radius: 0.375rem;
    /* rounded-md */
    color: rgb(226 232 240);
    /* slate-200 */
    font-size: 0.875rem;
    /* text-sm */
    outline: none;
    transition: all 150ms;
    box-sizing: border-box;
    height: 38px;
}

.survey-search-input:focus {
    border-color: #3b82f6;
    /* primary */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.survey-search-input::placeholder {
    color: rgb(100 116 139);
    /* slate-500 */
}

/* 셀렉트 박스 */
.survey-select {
    padding: 0.5rem 0.75rem;
    /* py-2 px-3 */
    background-color: rgb(15 23 42);
    /* dashboard-bg */
    border: 1px solid rgb(51 65 85);
    /* panel-border */
    border-radius: 0.375rem;
    /* rounded-md */
    color: rgb(226 232 240);
    /* slate-200 */
    font-size: 0.875rem;
    /* text-sm */
    cursor: pointer;
    outline: none;
    transition: all 150ms;
    min-width: 180px;
    box-sizing: border-box;
    height: 38px;
}

.survey-select:focus {
    border-color: #3b82f6;
    /* primary */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 버튼 - Primary */
.survey-button-primary {
    height: 38px;
    padding: 0 1.5rem;
    /* px-6 */
    background-color: #3b82f6;
    /* primary */
    color: white;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    /* rounded-md */
    cursor: pointer;
    transition: all 150ms;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.survey-button-primary:hover {
    background-color: #2563eb;
    /* primary-600 */
}

.survey-button-primary:active {
    transform: scale(0.98);
}

/* 버튼 - Secondary */
.survey-button-secondary {
    height: 38px;
    padding: 0 1rem;
    /* px-4 */
    background-color: transparent;
    color: rgb(226 232 240);
    /* slate-200 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    border: 1px solid rgb(51 65 85);
    /* panel-border */
    border-radius: 0.375rem;
    /* rounded-md */
    cursor: pointer;
    transition: all 150ms;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
}

.survey-button-secondary:hover {
    background-color: rgb(30 41 59);
    /* panel-bg */
}

.survey-button-secondary:active {
    transform: scale(0.98);
}

.survey-button-icon {
    font-size: 1.125rem;
    /* text-[18px] */
}

/* 테이블 래퍼 */
.survey-table-wrapper {
    overflow-x: auto;
}

/* 테이블 */
.survey-table {
    width: 100%;
    border-collapse: collapse;
}

.survey-table-th {
    background-color: rgb(15 23 42);
    /* dashboard-bg */
    color: rgb(148 163 184);
    /* slate-400 */
    font-size: 0.8125rem;
    /* text-[13px] */
    font-weight: 600;
    padding: 0.75rem;
    /* p-3 */
    text-align: left;
    border-bottom: 1px solid rgb(51 65 85);
    /* panel-border */
    white-space: nowrap;
}

.survey-table-th-center {
    text-align: center;
}

.survey-table-td {
    background-color: rgb(30 41 59);
    /* panel-bg */
    color: rgb(226 232 240);
    /* slate-200 */
    font-size: 0.875rem;
    /* text-sm */
    padding: 0.75rem;
    /* p-3 */
    border-bottom: 1px solid rgb(51 65 85);
    /* panel-border */
}

.survey-table-td-center {
    text-align: center;
}

.survey-table-td-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    /* text-[13px] */
}

/* 상태 배지 */
.survey-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    /* px-2 py-0.5 */
    font-size: 0.6875rem;
    /* text-[11px] */
    font-weight: 700;
    border-radius: 0.25rem;
    /* rounded */
    letter-spacing: 0.025em;
}

.survey-badge-emerald {
    background-color: rgb(16 185 129 / 0.15);
    /* emerald-500/15 */
    color: rgb(16 185 129);
    /* emerald-500 */
}

.survey-badge-amber {
    background-color: rgb(245 158 11 / 0.15);
    /* amber-500/15 */
    color: rgb(245 158 11);
    /* amber-500 */
}

.survey-badge-rose {
    background-color: rgb(244 63 94 / 0.15);
    /* rose-500/15 */
    color: rgb(244 63 94);
    /* rose-500 */
}

.survey-badge-slate {
    background-color: rgb(100 116 139 / 0.15);
    /* slate-500/15 */
    color: rgb(148 163 184);
    /* slate-400 */
}

/* 테이블 링크 */
.survey-link {
    color: #3b82f6;
    /* primary */
    font-weight: 500;
    font-size: 0.875rem;
    /* text-sm */
    background: none;
    border: none;
    cursor: pointer;
    transition: all 150ms;
}

.survey-link:hover {
    text-decoration: underline;
}

/* 페이지네이션 컨테이너 */
.survey-pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    /* px-6 py-4 */
}

.survey-pagination-info {
    font-size: 0.8125rem;
    /* text-[13px] */
    color: rgb(148 163 184);
    /* slate-400 */
}

/* 페이지네이션 */
.survey-pagination {
    display: flex;
    gap: 0.25rem;
    /* gap-1 */
}

.survey-pagination-nav {
    width: 2rem;
    /* w-8 */
    height: 2rem;
    /* h-8 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(51 65 85);
    /* panel-border */
    border-radius: 0.375rem;
    /* rounded-md */
    background-color: transparent;
    color: rgb(226 232 240);
    /* slate-200 */
    cursor: pointer;
    transition: all 150ms;
}

.survey-pagination-nav:hover:not(:disabled) {
    background-color: rgb(30 41 59);
    /* panel-bg */
}

.survey-pagination-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.survey-pagination-nav .material-symbols-outlined {
    font-size: 1.125rem;
    /* text-[18px] */
}

.survey-pagination-number {
    width: 2rem;
    /* w-8 */
    height: 2rem;
    /* h-8 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(51 65 85);
    /* panel-border */
    border-radius: 0.375rem;
    /* rounded-md */
    background-color: transparent;
    color: rgb(226 232 240);
    /* slate-200 */
    font-size: 0.8125rem;
    /* text-[13px] */
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms;
}

.survey-pagination-number:hover {
    background-color: rgb(30 41 59);
    /* panel-bg */
}

.survey-pagination-number-active {
    background-color: #3b82f6;
    /* primary */
    border-color: #3b82f6;
    color: white;
    font-weight: 700;
}

.survey-pagination-number-active:hover {
    background-color: #2563eb;
    /* primary-600 */
}

.survey-pagination-ellipsis {
    width: 2rem;
    /* w-8 */
    height: 2rem;
    /* h-8 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(148 163 184);
    /* slate-400 */
    font-size: 0.8125rem;
    /* text-[13px] */
}

/* 푸터 액션 */
.survey-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    /* gap-3 */
}

/* 푸터 */
.survey-footer {
    background-color: rgb(30 41 59);
    /* panel-bg */
    border-top: 1px solid rgb(51 65 85);
    /* panel-border */
    padding: 0.75rem 2.5rem;
    /* px-10 py-3 */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    /* gap-3 */
    margin-top: auto;
}

.survey-footer-text {
    font-size: 0.875rem;
    /* text-sm */
    color: rgb(148 163 184);
    /* slate-400 */
}