/*
 * 통합 레이어/배너 — 목록 페이지군의 자리 배치 + 전용 조각 스타일 (건·전 공용).
 * 싣는 곳 = 입찰·낙찰·맞춤 목록과 나의방 입찰 목록 화면(`@push('styles')`).
 *
 * 자리별 배치 CSS 는 페이지군마다 자기 파일이다(`slots-{페이지군}.css`) — 공용 골격은 `display.css`.
 * 원문 = CI3 `resource/common/css/display.css:22-27`(목록·나의방 자리) · 나의방 우측 묶음의 인라인 스타일 ·
 * 조각 안 `<style>`(전기넷 맞춤달력 레이어).
 */

/* ── 목록·나의방 배너 자리 ──
 * 구 판은 배너가 전부 inline `<img>` 라 한 줄에 가로로 놓였다. 자리는 블록 div 이고 그 안의 조각도 블록이라 그대로 두면 세로로 쌓인다
 * → 자리를 inline-flex 로, 조각 폭을 내용 폭으로(원문 통합 판의 같은 보정). DOM 순서 = 칸 번호 순.
 * 입찰·낙찰 목록 자리는 목록 머리의 `.banner_ad`(absolute · 오른쪽 위 — `{site}/{bbs,nbbs}/list.css`) 안이라 비어 있어도 목록 높이를 먹지 않는다. */
#display_banner_bidlst,
#display_banner_nbdlst,
#display_banner_myroom { display: inline-flex; vertical-align: top; align-items: flex-start; gap: 5px; }
#display_banner_bidlst .display_banner,
#display_banner_nbdlst .display_banner,
#display_banner_myroom .display_banner { width: auto; }
/* 그림이 안 와도(파일 삭제 · CDN 장애 · 로컬 CI3 에 파일 없음) 칸은 그림 크기를 지킨다 — 메인 이야기·하단 광고 칸과 같은 처리.
 * `<img>` 에 크기 속성이 없어 깨지면 alt 글자 크기(높이 20 · 폭 제각각)로 줄어 옆 칸 자리와 목록 머리 모양이 흔들린다. 깨진 아이콘·alt 글자는 칸 밖으로 안 나간다.
 * 크기 = 입찰·낙찰 목록 칸은 원문 자리 규격(「가로 배너 높이 50px」)과 운영 그림(건·전 입찰·물품입찰·낙찰·물품낙찰 칸 모두 245×50) ·
 * 나의방 칸은 지금 걸린 두 그림(세무노무 · 낙찰코칭 240×88). 그림이 이 크기라 정상 화면은 그대로다. */
#display_banner_bidlst .display_banner > a,
#display_banner_nbdlst .display_banner > a { width: 245px; height: 50px; overflow: hidden; }
#display_banner_myroom .display_banner > a { width: 240px; height: 88px; overflow: hidden; }
/* 그림을 못 불러온 칸(로더가 다는 `is-broken`) — 깨진 아이콘·alt 글자 대신 빈 배너 상자(테두리 + 옅은 면)로 둔다.
 * 색 = 메인 로드 실패 칸(`slots-main.css` 「로드 실패 모양」)과 같은 계열 — 사이트 주색(건 #3267e9 · 전 #00993a)을 흰색에 섞은 값(면 6% · 테두리 25%).
 * 테두리는 상자 안으로 그린다(재구축 전역 `box-sizing: border-box`) — 칸 크기는 위 값 그대로다. */
#display_banner_bidlst, #display_banner_nbdlst, #display_banner_myroom { --display-broken-tint: #f3f6fe; --display-broken-line: #ccd9fa; }
body[data-site="jungi"] #display_banner_bidlst,
body[data-site="jungi"] #display_banner_nbdlst,
body[data-site="jungi"] #display_banner_myroom { --display-broken-tint: #f0f9f3; --display-broken-line: #bfe6ce; }
#display_banner_bidlst .display_banner.is-broken > a,
#display_banner_nbdlst .display_banner.is-broken > a,
#display_banner_myroom .display_banner.is-broken > a { border: 1px solid var(--display-broken-line); background: var(--display-broken-tint); box-sizing: border-box; }
#display_banner_bidlst .display_banner.is-broken > a > img,
#display_banner_nbdlst .display_banner.is-broken > a > img,
#display_banner_myroom .display_banner.is-broken > a > img { visibility: hidden; }

/* 나의방 우측 묶음 — 원문 `<div id='right_area' style="display: flex;">` 안에 배너 묶음(`.myroom_banners` · 좌우 10px)과 업체분석 표가 나란히 선다.
 * 우측 묶음은 float:right(`my-folder/calendar.css`)라 빈 배너 묶음(폭 20px)은 표 왼쪽으로만 자란다. */
.myroomSetWrap #right_area { display: flex; }
.myroomSetWrap #right_area .myroom_banners { padding: 0 10px; }

/* ── 맞춤달력 홍보 레이어(1296 · 전기넷) — 원문 조각의 <style> + 인라인 스타일 ──
 * 바깥 3겹(폭 100% → 1000px → 550px · 높이 0)과 absolute 상자가 레이어 좌표를 만든다 — 헤더 뒤 흐름 위치 + 위 여백 20px,
 * 가로는 550px 상자의 왼쪽 끝(화면 가운데에서 275px 왼쪽)에서 600px 그림이 시작한다. */
#display_layers .display-my-bid-calendar { position: absolute; margin-top: 20px; z-index: 1000000; width: 100%; height: 0; }
#display_layers .display-my-bid-calendar .my-bid-calendar-center { width: 1000px; margin: 0 auto; height: 0; }
#display_layers .display-my-bid-calendar .my-bid-calendar-box { width: 550px; margin: 0 auto; height: 0; }
#display_layers .display-my-bid-calendar .my-bid-calendar-pos { position: absolute; z-index: 101; }

#display_layers .display-my-bid-calendar .layer_bottom_bar { text-align: right; color: white; padding-right: 7px; }
#display_layers .display-my-bid-calendar .layer_bottom_bar label { cursor: pointer; font-size: 16px; font-weight: 500; }
#display_layers .display-my-bid-calendar .layer_bottom_bar input { cursor: pointer; margin-bottom: 7px; }

#display_layers .display-my-bid-calendar #layer_600x600 { width: 600px; height: 600px; background-color: #d3e0f5; }
#display_layers .display-my-bid-calendar #layer_600x600 .content { width: 600px; height: 600px; position: relative; background: url('/images/shared/display/my-bid-calendar/layer_600x600_bg.png') no-repeat center/cover; }

#display_layers .display-my-bid-calendar #layer_600x600 .content .close_btn { width: 45px; height: 45px; position: absolute; right: 0; top: 0; background: url('/images/shared/display/my-bid-calendar/btn_close_off.png') no-repeat center/100%; transition: all 0.2s; cursor: pointer; }
#display_layers .display-my-bid-calendar #layer_600x600 .content .close_btn:hover { background: url('/images/shared/display/my-bid-calendar/btn_close_on.png') no-repeat center/100%; transition: all 0.2s; }

#display_layers .display-my-bid-calendar #layer_600x600 .content .bottom_btn { width: 436px; height: 55px; position: absolute; top: 525px; left: 82px; }
#display_layers .display-my-bid-calendar #layer_600x600 .content .bottom_btn .left_btn { background: url('/images/shared/display/my-bid-calendar/bottom_btn_left_txt.png') no-repeat center; position: absolute; left: 0; background-color: #eef2f7; }
#display_layers .display-my-bid-calendar #layer_600x600 .content .bottom_btn .right_btn { background: url('/images/shared/display/my-bid-calendar/bottom_btn_right_txt.png') no-repeat center; position: absolute; right: 0; background-color: #eef2f7; }

#display_layers .display-my-bid-calendar #layer_600x600 .content .bottom_btn > button {
    position: absolute; width: 205px; height: 55px;
    background: #d3e0f5; border: solid #074ad6 1px; border-radius: 15px;
    box-shadow: 0.1em 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.139);
}
#display_layers .display-my-bid-calendar #layer_600x600 .content .bottom_btn > button::before {
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #d3e0f5 0%, #d3e0f5 50%, #e8edff 50%, #ffffff 60%);
    border-radius: 0 0 15px 0;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0.3, 0, 0.3);
    transition: 0.5s;
}
#display_layers .display-my-bid-calendar #layer_600x600 .content .bottom_btn > button:hover::before {
    position: absolute;
    width: 30px; height: 30px; left: -2px; top: -2px;
    border-style: solid; border-color: #074ad6; border-width: 0 1px 1px 0;
}
#display_layers .display-my-bid-calendar #layer_600x600 .content .bottom_btn > button:active {
    box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.1);
    transform: translate(1px, 1px);
}

/* 이용 팁 상자 — 원문 `#my_bid_calendar_tip_layer`(position absolute · margin-top 20px · 폭 85% · 높이 0 · z 1000000)는
 * 홍보 레이어의 형제라 같은 흐름 위치에 선다. 재구축은 루트 안이므로 루트 위끝(이미 20px 내려온 자리)에 top 0 으로 겹치고 폭 85% —
 * 원문 좌표와 같다. 안쪽 3겹(1000 → 550 → absolute)은 위 규칙을 그대로 받는다. z = 레이어 그림 상자(101)보다 위(원문은 뒤에 온 형제라 위). */
#display_layers .display-my-bid-calendar .my-bid-calendar-tip { position: absolute; top: 0; left: 0; width: 85%; height: 0; z-index: 102; }
/* ⚠ 재구축 layout.css 전역 `* { box-sizing: border-box }` 가 iframe 기본 테두리 2px 을 879×750 안으로 넣어 안쪽이 875×746 으로 준다 —
 * 원문은 기본값(content-box)이라 안쪽 879×750 + 테두리 = 883×754. */
#display_layers .display-my-bid-calendar .my-bid-calendar-tip iframe { box-sizing: content-box; }
