/* ========== 콘텐츠 래퍼 ========== */
.nas-content-wrapper {
    padding: 0;
    min-height: 100vh;
    background: #ffffff;
    font-family:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        system-ui,
        sans-serif;
}

/* ========== 페이지 헤더 ========== */
.nas-page-header {
    padding: 1.75rem 2rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    height: 78px;
}

.nas-page-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nas-page-category {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nas-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ========== 메인 콘텐츠 ========== */
.nas-content-body {
    /* padding: 1.5rem 2.5rem 2.5rem; */
    padding: 0;
}

/* ========== 통계 카드 ========== */
.nas-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.nas-stat-card {
    padding: 1.25rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    transition: border-color 0.15s;
}

.nas-stat-card:hover {
    border-color: #ddd;
}

.nas-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.nas-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}

.nas-stat-card.blue .nas-stat-value {
    color: #2563eb;
}
.nas-stat-card.green .nas-stat-value {
    color: #16a34a;
}
.nas-stat-card.orange .nas-stat-value {
    color: #ea580c;
}
.nas-stat-card.purple .nas-stat-value {
    color: #9333ea;
}

/* ========== 툴바 ========== */
.nas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.nas-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nas-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 검색박스 */
.nas-search {
    position: relative;
}

.nas-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #999;
}

.nas-search input {
    width: 240px;
    height: 36px;
    padding: 0 0.75rem 0 2.25rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.15s;
}

.nas-search input:focus {
    border-color: #111;
}

.nas-search input::placeholder {
    color: #999;
}

/* 필터 셀렉트 */
.nas-filter {
    height: 36px;
    padding: 0 2rem 0 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L1 3h8z'/%3E%3C/svg%3E")
        no-repeat right 0.75rem center;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.15s;
}

.nas-filter:focus {
    border-color: #111;
}

/* 버튼 */
.nas-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 36px;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.nas-btn i {
    font-size: 0.875rem;
}

.nas-btn-primary {
    background: #111;
    color: #fff;
    border: none;
}

.nas-btn-primary:hover {
    background: #333;
}

.nas-btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.nas-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* ========== 데이터 테이블 ========== */
.nas-data-table {
    border: 1px solid #eee;
    border-radius: 0.5rem;
    overflow: hidden;
}

.nas-table {
    width: 100%;
    border-collapse: collapse;
}

.nas-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.nas-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.nas-table tbody tr {
    transition: background 0.1s;
}

.nas-table tbody tr:hover {
    background: #fafafa;
}

.nas-table tbody tr:last-child td {
    border-bottom: none;
}

/* 체크박스 열 */
.nas-col-check {
    width: 44px;
    text-align: center;
}

/* 액션 열 */
.nas-col-action {
    width: 88px;
    text-align: right;
}

/* 체크박스 */
.nas-check {
    width: 16px;
    height: 16px;
    accent-color: #111;
    cursor: pointer;
}

/* 회사명 */
.nas-company {
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.nas-company:hover {
    text-decoration: underline;
}

/* 전화번호 */
.nas-phone {
    color: #555;
    font-size: 0.8125rem;
}

/* 사업자번호 */
.nas-bizno {
    color: #888;
    font-size: 0.8125rem;
}

/* 태그 */
.nas-tag {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

.nas-tag-blue {
    background: #eff6ff;
    color: #2563eb;
}

.nas-tag-green {
    background: #f0fdf4;
    color: #16a34a;
}

.nas-tag-purple {
    background: #faf5ff;
    color: #9333ea;
}

/* 액션 버튼 */
.nas-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.nas-action-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    color: #999;
    cursor: pointer;
    transition: all 0.15s;
}

.nas-action-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.nas-action-btn.delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.nas-action-btn i {
    font-size: 0.875rem;
}

/* ========== 테이블 푸터 ========== */
.nas-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.nas-table-info {
    font-size: 0.8125rem;
    color: #888;
}

.nas-table-info strong {
    color: #111;
    font-weight: 600;
}

/* 페이지네이션 */
.nas-paging {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.nas-page {
    min-width: 28px;
    height: 28px;
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    color: #666;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s;
}

.nas-page:hover:not(:disabled):not(.active) {
    background: #eee;
}

.nas-page.active {
    background: #111;
    color: #fff;
}

.nas-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 페이지 사이즈 */
.nas-page-size {
    height: 28px;
    padding: 0 1.5rem 0 0.5rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: #666;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23999' d='M4 6L0 2h8z'/%3E%3C/svg%3E")
        no-repeat right 0.5rem center;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    appearance: none;
    cursor: pointer;
}

/* ========== 반응형 ========== */
@media (max-width: 1280px) {
    .nas-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nas-page-header {
        padding: 1.5rem;
    }

    .nas-content-body {
        padding: 1.25rem 1.5rem;
    }

    .nas-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .nas-toolbar-right {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .nas-page-header {
        padding: 1.25rem 1rem;
    }

    .nas-page-title {
        font-size: 1.25rem;
    }

    .nas-content-body {
        padding: 1rem;
    }

    .nas-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .nas-search input {
        width: 100%;
    }

    .nas-table th,
    .nas-table td {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .nas-table-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* 메인 레이아웃 */
.nas-layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.nas-main-content {
    flex: 1;
    /* margin-left: 260px; */
    min-width: 0;
    transition: margin-left 0.3s ease;
}

body.sidebar-collapsed .nas-main-content {
    margin-left: 72px;
}

@media (max-width: 768px) {
    .nas-main-content {
        margin-left: 0;
    }

    body.sidebar-collapsed .nas-main-content {
        margin-left: 0;
    }
}
