@charset "utf-8";

/* law.go.kr 뷰어 — commonForLs.css + 로컬 레이아웃 (굴림) */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body, #wrap, #wrap button, #wrap input, #wrap select, #wrap textarea {
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
  font-size: 12px;
  color: #333;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

body.law-view-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

body.law-view-page #wrap {
  flex: 1;
  min-height: 0;
  height: auto !important;
}

.law-gov-disclaimer {
  flex-shrink: 0;
  background: #eff4f8;
  border-bottom: 1px solid #d6dde5;
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
  font-size: 12px;
  color: #222;
  line-height: 1.4;
}

.law-gov-disclaimer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
}

.law-gov-disclaimer p {
  margin: 0;
}

.law-gov-flag {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 16px;
  border: 1px solid #c5c5c5;
  object-fit: contain;
  background: #fff;
}

.law-gov-blink {
  color: #e60000;
  font-style: normal;
  font-weight: 700;
  animation: law-gov-blink 0.85s step-end infinite;
}

@keyframes law-gov-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

#topDiv.ui-layout-north {
  display: none !important;
}

/* 상단 탭 (법령명 / 법령본문 …) */
.law-sub-tabs {
  flex-shrink: 0;
  padding: 6px 10px 0;
  background: #f4f4f4;
  border-bottom: 2px solid #198cdc;
}

.law-sub-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.law-sub-tabs li {
  margin: 0 0 0 -1px;
}

.law-sub-tabs li a {
  display: block;
  min-width: 54px;
  padding: 5px 9px 6px;
  border: 1px solid #c5c5c5;
  background: linear-gradient(to bottom, #fafafa, #ececec);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #444;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.law-sub-tabs li.on a {
  padding: 7px 9px 8px;
  border: 2px solid #198cdc;
  border-bottom: none;
  background: #fff;
  color: #2974d6;
  font-weight: bold;
  position: relative;
  margin-bottom: -2px;
  z-index: 2;
}

/* law.go.kr 버튼 */
#wrap .btn {
  display: inline-block;
  height: 23px;
  padding: 3px 6px;
  margin-left: 4px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 15px;
  box-sizing: border-box;
  letter-spacing: -0.02em;
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
  cursor: pointer;
  text-decoration: none;
  vertical-align: top;
}

#wrap .btn.type7 {
  border: 1px solid #afafaf;
  background: #fff;
  color: #333;
}

#wrap .btn.type8 {
  border: 1px solid #81a2df;
  background: #d9effd;
  color: #0d41ab;
}

#wrap .btn.type17 {
  border: 1px solid #e28d8d;
  background: #f7e2e2;
  color: #c13535;
}

#wrap .btn.type4 {
  border: 1px solid #7b7671;
  background: #7b7671;
  color: #fff;
  padding: 3px 8px;
}

#wrap .btnfont,
#article-select {
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
  font-size: 12px;
  border: 1px solid #afafaf;
  background: #fff;
}

#wrap .btn.type18 {
  padding: 3px 4px;
  border: 1px solid #bebebe;
  background-color: #e3e3e3;
  color: #333;
}

#wrap .btn.type18 > img {
  margin-top: -2px;
  margin-right: 3px;
  vertical-align: middle;
  border: 0;
}

#wrap .btn_c {
  position: relative;
  display: inline-block !important;
  width: 23px;
  height: 23px;
  margin-left: 2px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  vertical-align: top;
  line-height: 0;
}

#wrap .btn_c > img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 0.3px), calc(-50% - 0.3px));
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: 14px;
  max-height: 14px;
  border: 0;
}

#wrap .btn_c.type {
  background-color: #4ea713;
}

#wrap .btn_c.type2 {
  background-color: #f3ac00;
}

#wrap .btn_c.type3 {
  background-color: #5b6e93;
}

div.pophead {
  display: block;
  overflow: hidden;
  width: 100% !important;
  min-height: 35px;
  background: url('/static/law-img/cssimg_poptopbg2.gif') repeat-x;
}

div.pophead h2 {
  float: left;
  padding: 10px 0 0 20px;
  margin: 0;
  color: #fff;
  font-size: 1.15em;
  font-weight: bold;
}

div.pophead p {
  display: none;
}

#wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  position: static !important;
}

#container {
  flex: 1 !important;
  display: flex !important;
  overflow: visible !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  clear: none !important;
  position: static !important;
}

#west {
  width: 290px;
  min-width: 290px;
  flex-shrink: 0;
  background: #fff;
  border-right: 2px solid #b4b4b4;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  z-index: 5;
}

#west.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  border-right: none;
  overflow: visible;
}

#west.collapsed #leftContent {
  display: none;
}

.ui-layout-toggler-west {
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 63px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: url('/static/law-img/button_leslidev7_1.gif') no-repeat center #fff;
  z-index: 20;
}

#west.collapsed .ui-layout-toggler-west {
  right: -13px;
  background-image: url('/static/law-img/button_leslidev7_2.gif');
}

#center {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #fff;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: relative;
}

/* 상단 유틸바 (조회이력 · 새창 · 국어대사전) */
.law-util-bar {
  flex-shrink: 0;
  padding: 5px 10px 4px;
  background: #f4f4f4;
  border-bottom: 1px solid #d8d8d8;
  text-align: right;
}

.law-util-bar .util_r_bx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#leftContent {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  width: 100%;
}

/* 상단 툴바 접기 — 메뉴영역 위로 숨김 */
#center.toolbar-collapsed .law-util-bar {
  display: none;
}

#center.toolbar-collapsed .body_top_area .l_bx,
#center.toolbar-collapsed .body_top_area .r_bx {
  display: none !important;
}

#center.toolbar-collapsed .body_top_area {
  padding: 0 !important;
  min-height: 0;
  background: #fff;
}

#center.toolbar-collapsed #menuClose {
  display: none;
}

#center.toolbar-collapsed #menuOpen {
  display: inline !important;
}

#center.toolbar-collapsed .search-inline {
  display: none !important;
}

#skipNavi img {
  border: 0;
  vertical-align: top;
}

.law-util-bar .util-dict {
  display: inline-block;
  padding: 2px 12px 3px;
  border: 1px solid #d4a84b;
  border-radius: 12px;
  background: #fffef5;
  color: #333;
  font-size: 12px;
  text-decoration: none;
  line-height: 16px;
}

.law-util-bar .util-dict::after {
  content: ' ↗';
  font-size: 10px;
  color: #888;
}

.law-util-bar .util-chk,
.law-util-bar .chk_bx {
  display: inline-block;
  padding: 1px 3px 0;
  border: 1px solid #dcdcdc;
  background: #fff;
  font-size: 11px;
  color: #333;
  cursor: pointer;
  user-select: none;
  line-height: 14px;
  vertical-align: middle;
}

.law-util-bar .chk_bx input {
  margin-top: 1px;
  width: 11px;
  height: 11px;
  vertical-align: top;
}

.law-util-bar .chk_bx label {
  padding: 0;
  font-size: 11px;
  line-height: 14px;
  vertical-align: top;
  cursor: pointer;
}

.law-hist-layer {
  position: absolute;
  top: 34px;
  right: 10px;
  z-index: 100;
  width: 260px;
  border: 1px solid #9a9a9a;
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

.law-hist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #f0f0f0;
  border-bottom: 1px solid #d4d4d4;
  font-size: 12px;
}

.law-hist-head button {
  border: 1px solid #9a9a9a;
  background: #fff;
  font-size: 11px;
  padding: 1px 6px;
  cursor: pointer;
}

.law-hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.law-hist-list li {
  border-bottom: 1px solid #eee;
}

.law-hist-list a {
  display: block;
  padding: 6px 10px;
  color: #3366cc;
  font-size: 12px;
  text-decoration: none;
}

.law-hist-list a:hover {
  background: #fff9df;
}

.law-hist-list .empty {
  padding: 12px 10px;
  color: #888;
  font-size: 12px;
}

.law-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 8px 16px;
  background: rgba(40, 40, 40, 0.92);
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.law-toast.show {
  opacity: 1;
}

#wrap.hanja-on .pgroup p {
  letter-spacing: 0.02em;
}

#fav-btn.on {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #c88600;
}

#hanja-btn.on {
  opacity: 0.85;
  outline: 2px solid #3366cc;
  border-radius: 50%;
}

.body_top_area {
  position: relative;
  flex-shrink: 0;
  padding: 7px 8px 6px !important;
  background: url('/static/law-img/newimg_bg_body_top.gif') repeat-x 0 100% #f7f7f7;
  overflow: visible !important;
}

.body_top_area::after {
  display: block;
  clear: both;
  content: '';
}

.body_top_area .l_bx {
  float: left;
  margin-bottom: 5px;
}

.body_top_area .l_bx > a {
  float: left;
  margin-left: 4px !important;
}

.body_top_area .l_bx > a:first-child {
  margin-left: 0 !important;
}

.body_top_area .r_bx {
  float: right;
  display: block !important;
  margin-bottom: 5px;
  position: relative;
}

.body_top_area .r_bx a,
.body_top_area .r_bx select {
  vertical-align: top;
}

.body_top_area .rr_bx {
  position: absolute;
  bottom: -13px;
  left: 44%;
  z-index: 1;
}

.body_top_area select.btnfont,
#article-select {
  height: 23px !important;
  line-height: 21px !important;
  padding: 2px 13px 2px 5px !important;
  margin-left: 10px;
  vertical-align: top;
  box-sizing: border-box;
}

.left_list_bx {
  margin: 0;
  padding: 0;
  list-style: none;
}

.left_list_bx > li {
  border-bottom: 1px solid #d4d4d4;
}

.left_list_bx > li > a {
  display: block;
  padding: 5px 20px 3px !important;
  background: transparent !important;
  text-decoration: none;
}

#liBgcolor > a.law-side-head {
  background: #fff9df !important;
}

.left_list_bx > li > a:hover,
.left_list_bx > li > a:focus {
  background: #fff9df !important;
}

.left_list_bx .tx {
  display: block;
  color: #8f2e2e;
  font-weight: bold;
  line-height: 17px;
  font-size: 12px;
}

.left_list_bx .tx2 {
  display: block;
  color: #3c7aac;
  line-height: 17px;
  font-size: 11px;
  white-space: nowrap;
}

.list_bx_in {
  display: block !important;
  padding: 5px 10px;
  border-top: 1px solid #d4d4d4;
}

.list_bx_in .inner {
  padding-left: 20px;
  margin: 0;
  list-style: none;
}

.list_bx_in .inner > li {
  list-style: none;
}

.list_bx_in .inner > li.on > a,
.list_bx_in .inner > li > a {
  font-weight: bold;
  color: #333;
  text-decoration: none;
  background: transparent;
}

.list_bx_in .inner > li > a:hover {
  color: #333;
  text-decoration: none;
}

.law-side-empty {
  margin: 4px 0 2px 7px;
  padding: 0;
  color: #888;
  font-size: 11px;
}

.list_bx_in .depth_bx {
  display: none;
  padding: 0 !important;
}

.list_bx_in li.on > .depth_bx {
  display: block;
}

.list_bx_in .ico {
  display: inline-block;
  margin: 1px 4px 0 0;
  width: 9px;
  height: 9px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  background: url('/static/law-img/button_btn_lmop.gif') no-repeat;
  vertical-align: top;
}

.list_bx_in li.on > a .ico,
.list_bx_in .on > a .ico {
  background: url('/static/law-img/button_btn_lmcl.gif') no-repeat;
}

.depth_bx .list_bx_in02 {
  border-top: 0;
  padding: 0 10px 5px;
}

.list_bx_in02 .inner {
  padding-left: 20px;
}

.list_bx_in02 a {
  position: relative;
  display: block;
  padding: 3px 0;
  line-height: 14px;
  white-space: nowrap;
  color: #333;
  font-weight: normal;
  text-decoration: none;
  outline: none;
  background: transparent;
}

.list_bx_in02 a:hover {
  text-decoration: underline;
}

.list_bx_in02 .dep05 {
  padding-left: 31px;
}

.list_bx_in02 a.type {
  padding-left: 7px;
  background: url('/static/law-img/cssimg_bul_arrow6.gif') no-repeat 0 6px;
}

.list_bx_in02 a.active {
  color: #151594;
  font-weight: bold;
}

ul.cont_icon {
  width: auto;
  max-width: 100%;
  margin: 6px 0 4px 8px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  list-style: none;
}

ul.cont_icon li {
  float: left;
  padding-right: 10px;
  font-size: 12px;
  line-height: 18px;
}

ul.cont_icon li a {
  vertical-align: middle;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
}

ul.cont_icon li img {
  vertical-align: middle;
  padding-right: 3px;
  margin-top: -2px;
  border: 0;
  width: 17px !important;
  height: 13px !important;
}

#bodyContentTOP,
#viewwrapCenter,
#contentBody.scr_ctrl,
.cont_area,
#sideCenter,
#law-document {
  width: 100% !important;
  max-width: none !important;
}

#bodyContentTOP {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
}

#viewwrapCenter {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#contentBody.scr_ctrl {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cont_area {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.cont_area > ul.cont_icon {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

#law-document {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#conTop.cont_top {
  flex-shrink: 0;
}

#conScroll.scr_area {
  flex: 1;
  min-height: 0;
  width: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  padding: 0 28px 24px 36px !important;
  margin: 0 !important;
}

.law-pgroups {
  padding-top: 4px;
}

.search-inline {
  padding: 6px 10px;
  background: #eef3f8;
  border-bottom: 1px solid #dcdcdc;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.search-inline input {
  flex: 1;
  height: 22px;
  border: 1px solid #afafaf;
  padding: 0 6px;
  font-size: 12px;
}

.search-inline button {
  height: 22px;
  padding: 0 10px;
  border: 1px solid #7b7671;
  background: #7b7671;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.pgroup {
  margin: 0 0 18px 0 !important;
  clear: both;
  overflow: hidden;
  line-height: 1.9;
  font-size: 12px;
  padding: 0 8px 0 4px !important;
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
}

.pgroup::after {
  content: '';
  display: table;
  clear: both;
}

ul.lawico01 {
  float: left;
  width: auto;
  padding: 0;
  margin: 0 6px 0 0;
  list-style: none;
  overflow: hidden;
}

ul.lawico01 li {
  float: left;
  padding: 2px;
  margin: 0;
  list-style: none;
  line-height: 0;
}

ul.lawico01 li a {
  display: block;
  font-size: 0;
  line-height: 0;
}

ul.lawico01 li img {
  display: block;
  width: 17px !important;
  height: 13px !important;
  border: 0;
  vertical-align: top;
}

.lawcon {
  overflow: hidden;
}

.pgroup p.pty1_p4,
.pgroup p.pty1_de2_1,
.pgroup p.pty1_de2h {
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
  font-size: 12px;
}

.pgroup p.pty1_p4 {
  padding: 0 0 0 32px;
  text-indent: -30px;
  margin: 0;
}

.pgroup p.pty1_de2_1 {
  padding: 0 0 0 33px;
  text-indent: -2px;
  margin: 0;
}

.pgroup p.pty1_de2h {
  padding: 0 0 0 48px;
  text-indent: -15px;
  margin: 0;
}

.pgroup p span.bl,
.pgroup p span.bl label {
  color: #151594;
  font-weight: bold;
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
}

.pgroup.search-highlight {
  background: #fff3cd;
}

.cont_top {
  flex-shrink: 0;
  padding: 20px 0 13px 0;
}

#law-document > .cont_top {
  padding-bottom: 0;
}

.cont_top h2 {
  padding: 0;
  margin: 0;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
  color: #111;
}

.ct_sub {
  margin-top: 10px;
  text-align: center;
}

.ct_sub span {
  display: inline-block;
  margin-top: 3px;
  font-size: 12px;
  color: #3c7fbc;
}

.cont_subtit {
  margin-bottom: 10px;
  padding: 0 20px;
}

.cont_subtit p {
  margin: 0;
  color: #444;
  font-size: 12px;
  text-align: right;
}

.cont_area::after {
  content: '';
  display: table;
  clear: both;
}

.cont_subtit p a,
.cont_subtit p span {
  font-family: Gulim, '굴림', Dotum, '돋움', sans-serif;
  color: #444;
  text-decoration: none;
}

@media print {
  .law-sub-tabs, .law-util-bar, .law-hist-layer, .body_top_area, #west, .search-inline, .cont_icon { display: none !important; }
  html, body, #wrap, #container, #center, .scr_area { overflow: visible; height: auto; }
}
