/* BizInfo 스타일 */

#main{
    min-height: 1000px;
}

/* 검색 바 */
#bizinfoQuery{
    height: auto;
    margin: 0;
}

/* 페이지 제목 & 배너 */
.bizinfo-page-header{
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.bizinfo-page-title{
    margin: 40px 0 40px 0px;
    font-size: 40px;
    font-weight: 700;
    color: #304986;
    text-align: center;
    font-style: oblique;
}

.bizinfo-banner img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* 헤더 전체 링크 영역 */
.bizinfo-page-header-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.bizinfo-page-header-link:hover .bizinfo-page-title{
    text-decoration: underline;
}

.bizinfo-page-header-link{ cursor: pointer; }

/* 사업자 정보 테이블 */
.biz-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.biz-info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.biz-info-table td.label {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    width: 140px;
    min-width: 140px;
    white-space: nowrap;
}

.biz-info-table td.status-trigger,
.biz-info-table td.status-trigger-status{
    cursor: pointer;
    color: blue;
}

.biz-info-table td.value {
    color: #212529;
    word-break: break-all;
}

.biz-info-table tr:last-child td {
    border-bottom: none;
}

.biz-info-table tr:hover {
    background-color: #f5f5f5;
}

.biz-info-table a {
    color: #007bff;
    text-decoration: none;
}

.biz-info-table a:hover {
    text-decoration: underline;
}

.biz-info-result h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

/* 로딩 효과 스타일 */

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.56); /* 반투명 검은색 */
    z-index: 9999;
    display: none;
    backdrop-filter: grayscale(100%); /* 화면 흑백화 */
    -webkit-backdrop-filter: grayscale(100%); /* Safari 지원 */
}

/* 로딩 스피너 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}


/* 결과 컨테이너 */
#divBizinfo {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* 검색 바 */
.bizinfo-search-wrap {
    margin-top: 16px;
}

.bizinfo-search-bar {
    display: flex;
    gap: 8px;
}

.bizinfo-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.btnBizinfoDoSearch {
    background-color: #354e89;
    color: white;
    margin: 0;
    padding: 5px 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btnBizinfoDoSearch:hover {
    background-color: #2a3f6f;
}

.bizinfo-search-result {
    margin-top: 14px;
}

.bizinfo-search-error {
    text-align: center;
    padding: 24px;
}

/* 아코디언 */
.biz-accordion {
    display: grid;
    gap: 10px;
}

.biz-acc-item {
    border: 1px solid #bcbcbc;
    border-radius: 8px;
    box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.biz-acc-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 8px;
    background: #f8f9fa;
    padding: 12px 14px;
}

.biz-acc-left {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 4px;
    cursor: pointer;
}

.biz-acc-left .biz-line {
    color: #212529;
}

.biz-acc-left .biz-line.name {
    font-weight: 600;
    color: #2c3e50;
}

.biz-acc-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.biz-acc-right button {
    background: #354e89;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
    height: 100%;
}

.biz-acc-right button:hover {
    background: #2a3f6f;
}

.biz-acc-title {
    font-weight: 600;
    color: #2c3e50;
}

.biz-acc-meta {
    color: #6c757d;
    font-size: 14px;
}

.biz-acc-panel {
    padding: 0 14px 12px 14px;
    background: #fff;
    background-color: #f8f9fa;
}

.biz-acc-content .biz-acc-row {
    display: flex;
    gap: 8px;
    padding: 6px 0;
}

.biz-acc-content .label {
    min-width: 120px;
    color: #495057;
    font-weight: 600;
}

.biz-acc-content .value {
    color: #212529;
}

.biz-acc-actions {
    margin-top: 12px;
}
/* 사업자 정보 결과 스타일 */
.biz-info-result h3 {
    color: #354e89;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-item strong {
    color: #495057;
    display: inline-block;
    min-width: 120px;
}

/* 오류 메시지 스타일 */
.biz-info-error {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-message {
    color: #dc3545;
    font-size: 18px;
    font-weight: 500;
}

