/* ==========================================================================
   광고주센터 PC — 흰 배경 + 얇은 헤더 (2026-11-20, 코빗 레퍼런스)
   이 파일은 PC 헤더(biz/_components/top_bar.php)가 모든 PC 화면에서 불러온다. 모바일(biz/mob)은 영향 없음.

   1) 바탕: 헤더 흰색, 본문 칸은 위 흰색 → 아래 wash(#FBFBFC) 아주 연한 그라디언트. 구분선은 사이드바 오른쪽 한 줄만 (헤더 아래 선 없음).
      2026-11-13 '바탕 wash 한 색, 흰색은 카드만' 결정을 대체한다.
   2) 흰 면(.ds-page .ds-surface): 바탕과 같은 색이 되므로 면·그림자·둥근 모서리·좌우 여백을 걷고, 흰 면끼리는 선 한 줄로 나눈다.
      카드가 나란히 놓이는 화면(대시보드 .ajt-pc__card)은 그림자 대신 연한 선 테두리.
   3) 헤더: 높이 56. [월간 체험단 한도] [아싸뷰 파트너스 칩] [메시지 아이콘] [프로필 ▼]
   ========================================================================== */

/* ───────── 1) 바탕 ───────── */
body { --biz-header-h: 56px; }
#header { background-color: var(--color-surface-default); }
/* 본문 칸 전체(사이드바 포함)에 위 흰색 → 아래 wash 로 아주 연한 그라디언트 (2026-11-20). 사이드바·본문은 투명해서 같은 결이 이어진다 */
body #container { background: linear-gradient(var(--color-surface-default), var(--color-surface-wash)); }
body #container #wrap,
body #container #wrap.page-canvas { background: transparent; }
body #footer { background-color: var(--color-surface-wash); } /* 그라디언트 끝 색에서 이어짐 */
body #container #side-menu { align-self: stretch; min-height: calc(100vh - var(--biz-header-h)); border-right: 1px solid var(--color-border-subtle); background: transparent; } /* 본문이 화면보다 길어도 오른쪽 선이 끝까지 — #container 가 align-items:flex-start */
.page-canvas,
#container:has(> .page-canvas) { --canvas-bg: var(--color-surface-default); }

/* ───────── 2) 흰 면 · 카드 ───────── */
html body #container #wrap .ds-page .ds-surface,
html body #container #wrap .ds-page > :is(.section-area, ._tab, .ui-infomation),
html body #container #wrap .ds-page > form > :is(.section-area, ._tab, .ui-infomation) { padding-left: 0; padding-right: 0; border-radius: 0; box-shadow: none; background-color: transparent; }
html body #container #wrap .ds-page .ds-surface + .ds-surface { border-top: 1px solid var(--color-border-subtle); }
/* 구분선 아래에도 위와 같은 여백 — 선 바로 아래에 제목이 붙던 것(계정 설정 '계정 보안' 등, 2026-11-25). 탭으로 시작하는 면은 아래 규칙대로 탭이 선 역할 */
html body #container #wrap .ds-page .ds-surface + .ds-surface:not(:has(> .ds-tabs:first-child, > :first-child > .ds-tabs:first-child)) { padding-top: var(--ds-pad-card-l); }
/* 다음 흰 면이 탭으로 시작하면 위 구분선은 빼고 탭 아래 선 하나만 (탭 위·아래 선 두 줄로 보이던 것, 쿠폰함 2026-11-20) */
html body #container #wrap .ds-page .ds-surface + .ds-surface:has(> .ds-tabs:first-child, > :first-child > .ds-tabs:first-child) { border-top: 0; }
/* 대시보드: 카드가 나란히 있어 영역이 필요하다 → 연한 선 테두리 (흰 바탕 위 유일한 테두리 카드) */
html body #container #wrap .ds-page .ajt-pc__card,
html body #container #wrap .ajt-pc__card { box-shadow: none; border: 1px solid var(--color-border-subtle); }
/* 흰 면이 사라지면 안쪽 폭 제한이 끝선을 하나 더 만든다 → 제목 줄과 같은 끝선으로 */
html body #container #wrap .ds-page .ds-surface .sub-manage--pc { max-width: none; }

/* ───────── 3) 헤더 ───────── */
#header { border-bottom: 0; }
/* 광고주센터 ↔ 체험단센터 토글: 알약 모양 (2026-11-23). 바깥 36(안쪽 여백 4) · 칸 28 — 파트너스 칩(28)과 같은 높이 */
#header .logo_wrap .center-toggle { gap: 0; padding: var(--spacing-4); border-radius: var(--radius-full); }
#header .logo_wrap .center-toggle .center-toggle__item { height: 28px; padding: 0 var(--spacing-12); border-radius: var(--radius-full); }

#header .gnb .top-bar__links:not(:has(li)) { display: none; } /* 파트너스 버튼이 없는 계정 */

/* 아싸뷰 파트너스: 연청록 칩 28 (홍보 링크). 파트너 체크 배지는 그대로. 광고주센터 헤더만 (체험단센터 헤더는 그대로) */
#header .gnb .top-bar__links a.partners-entry.partners-entry--header { gap: var(--spacing-4); height: 28px; padding: 0 var(--spacing-12); border: 0; border-radius: var(--radius-full); background: var(--color-surface-brand-subtle); font: var(--font-body-s-medium); color: var(--color-content-brand); }
#header .gnb .top-bar__links a.partners-entry.partners-entry--header:hover { background: var(--color-surface-brand-muted, var(--color-surface-brand-subtle)); color: var(--color-content-brand); }

/* 내 도구: 메시지 아이콘 · 프로필 */
#header .gnb .top-bar__tools { display: flex; align-items: center; gap: var(--spacing-4); height: 100%; }
#header .gnb .top-bar__tools > ul { gap: var(--spacing-8); }

/* 메시지: 아이콘 버튼 40(편지봉투 20), 새 메시지는 오른쪽 위 빨간 점 6. 마우스를 올리면 '메시지' 툴팁(title) */
#header .gnb .top-bar__tools .message_cont_btn { position: relative; justify-content: center; width: var(--spacing-40); height: var(--spacing-40); padding: 0; border: 0; border-radius: var(--radius-8); background: none; color: var(--color-content-default); cursor: pointer; }
#header .gnb .top-bar__tools .message_cont_btn:hover { background: var(--color-surface-subtle); }
#header .gnb .top-bar__tools .message_cont_btn .top-bar__msg-label { display: inline-flex; align-items: center; color: inherit; }
#header .gnb .top-bar__tools .message_cont_btn .top-bar__msg-label svg { width: 20px; height: 20px; }
#header .gnb .top-bar__tools .top-bar__msg-text { display: none; }
#header .gnb .top-bar__tools .message_cont_btn .message_count { position: absolute; top: var(--spacing-8); right: var(--spacing-8); width: 6px; height: 6px; min-width: 0; padding: 0; border-radius: var(--radius-full); background: var(--color-status-error-default); font-size: 0; }
#header .gnb .top-bar__tools .message_cont_btn .message_count.displaynone { display: none; }

/* 프로필: 사진 24 · 이름 · 화살표, 누르는 영역 40 */
#header .gnb .top-bar__tools .use-info .profile { gap: var(--spacing-8); height: var(--spacing-40); padding: 0 var(--spacing-8); border-radius: var(--radius-8); cursor: pointer; }
#header .gnb .top-bar__tools .use-info .profile:hover { background: var(--color-surface-subtle); }
#header .gnb .top-bar__tools .use-info .profile p { margin: 0; }
#header .gnb .top-bar__tools .use-info .profile .profile_img { width: var(--spacing-24); height: var(--spacing-24); }

/* 목록 줄: 흰 면 안에서 쓰던 좌우 -16 내어쓰기를 걷는다 — 흰 바탕에선 줄 선이 제목보다 16 삐져나와 보인다 (진행 전·결제 관리·캠페인 관리 리스트) */
html body #container #wrap .ds-page .pl-list { margin-left: 0; margin-right: 0; }
html body #container #wrap .ds-page .pl-row { padding-left: 0; padding-right: 0; }
html body #container #wrap .ds-page .section-area.projectAll .item_box { margin-left: 0; margin-right: 0; }
html body #container #wrap .ds-page .section-area.projectAll { padding-left: 0; padding-right: 0; }
html body #container #wrap .ds-page .section-area.projectAll .status_item.pa-card .container { padding-left: 0; padding-right: 0; }
/* (특이도) 화면별 CSS(#wrap.cart 등)·page-surface.css 보다 앞서도록 html body 로 시작한다 */

/* 페이지 제목 (2026-11-20): 흰 배경에서 제목이 약해 20 → 24 한 단계, 제목 아래 24.
   제목 글자의 세로 가운데를 사이드바 첫 메뉴(시작하기) 글자 가운데에 맞춘다 — 페이지 위 여백 16 → 24 (둘 다 가운데 96) */
html body #container #wrap .ds-page { padding-top: var(--spacing-24); }
html body #container #wrap .ds-page > .ds-page-title { margin-bottom: 0; }
html body #container #wrap .ds-page > .ds-page-title .ds-page-title__title { font: var(--font-title-s); letter-spacing: var(--title-s-letter); }

/* 흰 배경에서 남은 흰 상자(페이지 틀 바로 아래가 아닌 레거시 바깥 상자) — 면·둥근 모서리 걷고 상자끼리 선 한 줄 (2026-11-20)
   캠페인 만들기(.accordion_section·고정 단계 줄) · 캠페인 상세(.section-area·._tab) · 진행 전 목록(.scroll-wrap) */
html body #container #wrap .ds-page :is(.section-area, .accordion_section, ._tab, .scroll-wrap.inshdow) { border-radius: 0; box-shadow: none; background-color: transparent; }
html body #container #wrap .ds-page .accordion_section + .accordion_section,
html body #container #wrap .ds-page .section-area.maxContent + .section-area.maxContent { border-top: 1px solid var(--color-border-subtle); }
/* 캠페인 요청(create.php) 단계 섹션은 각자 접고 펴는 독립 덩어리라 대시보드처럼 연한 선 테두리 카드로 둔다 (2026-11-20).
   단계 표시 줄(#scroll-area)은 카드 없이 */
html body #container #wrap.page-create .ds-page :is(.accordion_section, .right_section .pay_btn_cont) { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-16); background-color: var(--color-surface-default); }
html body #container #wrap.page-create .ds-page .accordion_section + .accordion_section { border-top: 1px solid var(--color-border-subtle); }
/* 테두리 카드(대시보드·캠페인 요청 단계)에 아주 약한 그림자를 더해 바탕과 분리 (2026-11-20) */
html body #container #wrap .ds-page .ajt-pc__card,
html body #container #wrap .ajt-pc__card,
html body #container #wrap.page-create .ds-page :is(.accordion_section, .right_section .pay_btn_cont) { box-shadow: var(--ds-shadow-card); }


/* 카드는 선 없이 그림자만 (2026-11-20 결정): 대시보드·캠페인 요청 단계 */
html body #container #wrap .ds-page .ajt-pc__card,
html body #container #wrap .ajt-pc__card,
html body #container #wrap.page-create .ds-page :is(.accordion_section, .right_section .pay_btn_cont) { border-color: transparent; }

/* 새 메시지 말풍선: DS 말풍선(노랑·꼬리 위 오른쪽)을 메시지 버튼 아래에 띄운다. 꼬리 끝이 아이콘 가운데를 가리키게 (2026-11-20) */
html body #header .gnb .message_cont_btn .message_read_tooltip.ds-bubble { position: absolute; top: calc(100% + var(--spacing-12)); right: calc(var(--spacing-4) * -1); left: auto; z-index: 10; width: auto; padding: var(--spacing-8) var(--spacing-12) var(--spacing-8) var(--spacing-16); /* 닫기 있는 말풍선 시각 보정: 오른쪽 12 */ border-radius: var(--radius-full); font: var(--font-body-s-medium); color: var(--bubble-fg); }
html body #header .gnb .message_cont_btn .message_read_tooltip.ds-bubble.displaynone { display: none; }
html body #header .gnb .message_cont_btn .message_read_tooltip.ds-bubble::before { content: none; } /* 레거시 삼각 꼬리 제거 — DS 꼬리(::after) 하나만 */
/* 메시지 아이콘 버튼(40)의 빈 테두리(좌우 10) 때문에 파트너스 ↔ 편지봉투 사이가 34 로 넓어 보인다 → 12 당겨 22 (편지봉투 ↔ 프로필 22, 한도 ↔ 파트너스 24 와 맞춤) */
html body #header .gnb .top-bar__tools { margin-left: calc(var(--spacing-12) * -1); }

/* 페이지 번호 줄: 레거시 흰 면(.pagenate)이 그라디언트 바탕 위에 떠 보인다 → 면 걷기 (결제 관리만 고쳐 두었던 것을 전 화면으로, 2026-11-20) */
html body #container #wrap .ds-page .pagenate { border-radius: 0; background: none; }

/* 표(.ds-table) 머리줄 — 광고주센터 공통 (2026-11-20): 글자 12 → 14(라벨 최소 14), 레거시 th 회색 면 걷기, 아래 선은 기본 선 한 겹.
   리포트·결제 내역이 화면마다 따로 덮던 것을 한 곳으로. 파트너스(partners.css)는 자체 머리 모양이라 그대로 */
html body #container #wrap .ds-page .ds-table th { background: none; font: var(--font-body-s-medium); border-bottom-color: var(--color-border-default); }

/* 페이지 제목 옆 보조 버튼(모두 읽음 처리 등) (2026-11-20): 회색 바탕 시절의 회색 면 → 흰 바탕 위 DS 테두리 버튼 그대로 */
html body #container #wrap .ds-page-title__actions .ds-btn--stroke { border-color: var(--color-border-default); background: var(--color-surface-default); }
html body #container #wrap .ds-page-title__actions .ds-btn--stroke:hover { background: var(--color-surface-subtle); }

/* 탭 줄 아래 선 통일 (2026-11-20): 오늘 할 일·리포트만 연한 선, 비즈머니는 진한 선, 캠페인 관리·결제 관리·캠페인 상세는 선 없음이었다.
   흰 바탕에선 탭이 어디까지인지 잡아 줄 선이 필요 → 광고주센터 탭 줄은 모두 아래 연한 선 한 줄 */
html body #container #wrap .ds-page .ds-tabs,
html body #container #wrap .ds-page .bm-page__tabs { border-bottom: 1px solid var(--color-border-subtle); }
/* 선택 탭 밑줄이 아래 선 위에 겹쳐 앉게(오늘 할 일·리포트와 같은 방식) */
html body #container #wrap .ds-page .ds-tabs > .ds-tabs__item,
html body #container #wrap .ds-page .bm-page__tabs > .bm-page__tab { margin-bottom: -1px; }

/* 푸터 = 화면 전체 바닥 (2026-11-20 결정, 시안 A/B 중 B): 사이드바 아래까지 덮고 글자는 헤더와 같은 시작선·끝선
   (왼쪽 = 로고 24, 오른쪽 = 프로필 끝 32). 본문 폭(1120)에 맞추지 않는다 — 화면마다 본문 폭이 달라도 푸터는 같은 자리 */
html body #footer .sf-footer__inner,
html body #footer .footer_top .inner { box-sizing: border-box; width: auto; max-width: none; margin-left: 0; margin-right: 0; padding-left: var(--spacing-24); padding-right: var(--spacing-32); }

/* 캠페인 목록 4화면(진행 중·완료·진행 전·임시저장) 시작점 통일 (2026-11-20)
   제목 아래 24 → 첫 내용. 흰 면 시절 안쪽 위 여백(16/24)과 첫 줄 위 여백(0/20)이 화면마다 달라 첫 썸네일이 160/180/200 으로 흩어졌다 */
html body #container #wrap .ds-page > :is(.section-area, .ds-surface),
html body #container #wrap .ds-page .ds-surface:has(> :first-child > .ds-tabs),
html body #container #wrap.cart .ds-page .ds-surface { padding-top: 0; } /* page-surface.css:81 · biz-cart.css:32 의 탭 위 16 도 걷는다 */
/* 탭이 없는 목록: 첫 줄 위 여백 0 (제목 아래 24 가 맡는다) */
html body #container #wrap .ds-page .pl-list > .pl-row:first-child,
html body #container #wrap .ds-page .section-area.projectAll .item_box > .status_item:first-child .container { padding-top: 0; }
/* 탭이 있는 목록: 탭 아래 → 첫 줄 24 */
html body #container #wrap .ds-page .ds-tabs + * .status_item:first-child .container,
html body #container #wrap .ds-page article.tab + * .status_item:first-child .container { padding-top: 0; }
html body #container #wrap .ds-page article.tab { margin-bottom: var(--spacing-24); }
/* 탭 글자 시작선 = 제목·본문 시작선 (2026-11-20). 탭 칸 좌우 8 이 글자를 8 안쪽으로 밀었다 → 칸 여백 0, 탭 사이 16 (요금제·리포트·오늘 할 일과 같은 방식) */
html body #container #wrap .ds-page .ds-tabs:not(.ds-tabs--fill) { gap: var(--spacing-16); }
html body #container #wrap .ds-page .ds-tabs:not(.ds-tabs--fill) > .ds-tabs__item { padding-left: 0; padding-right: 0; }
