/* R368 (Claude): 안정화 화면 CSS 묶음 — 적용된 번호만(apply_r368.py 가 만듦). 화면에만(인쇄 X). */
@layer r368{@media screen{
/* R368-C3 c3/date.css */
/* R368-C3: 날짜 칸 오류 안내 — 칸 상자 안에 끼워 넣지 않고 칸 바로 아래 작은 말풍선(자리 차지 안 함). 모든 화면 공통(date153). */
.date153-wrap{position:relative!important}
.date153-wrap>.date-error292{position:absolute!important;left:0!important;top:calc(100% + 5px)!important;z-index:60!important;display:block!important;width:max-content!important;max-width:280px!important;min-width:0!important;height:auto!important;margin:0!important;padding:5px 9px!important;border:1px solid #f1b0aa!important;border-radius:3px!important;background:#fff4f3!important;color:#b42318!important;font-size:12px!important;font-weight:500!important;line-height:1.45!important;white-space:normal!important;text-align:left!important;box-shadow:0 4px 12px rgba(180,35,24,.14)!important;pointer-events:none!important;flex:none!important}
.date153-wrap>.date-error292[hidden]{display:none!important}
.date153-wrap>.date-error292::before{content:''!important;position:absolute!important;left:12px!important;top:-5px!important;width:8px!important;height:8px!important;background:#fff4f3!important;border-left:1px solid #f1b0aa!important;border-top:1px solid #f1b0aa!important;transform:rotate(45deg)!important}
/* 가족관계 표: 안내가 다음 줄을 가리지 않게 그 줄 아래 자리를 비움 */
html.writing302 #family-rows>tr:has(.date-error292:not([hidden])){padding-bottom:52px!important}
/* R368-C4 c4/help.css */
/* R368-C4: [?] 바로 옆에 뜬 도움말 창의 꼭지(누른 [?] 를 가리킴) */
html body .hp365.at368{overflow:visible!important}
html body .hp365.at368::before{content:''!important;position:absolute!important;left:calc(var(--ax368,28px) - 7px)!important;top:-7px!important;width:12px!important;height:12px!important;background:#f6f9fe!important;border-left:1px solid #c9d2dc!important;border-top:1px solid #c9d2dc!important;transform:rotate(45deg)!important;z-index:1!important}
html body .hp365.at368.up368::before{top:auto!important;bottom:-7px!important;background:#fff!important;border:0!important;border-right:1px solid #c9d2dc!important;border-bottom:1px solid #c9d2dc!important}
/* R368-C5 c5/family.css */
/* R368-C5: 나이로 추정한 생년월일 표시 */
html body #family-rows .f365-birth .est368{display:inline-block!important;margin:2px 0 0 4px!important;padding:0 5px!important;border:1px solid #f0c36d!important;border-radius:2px!important;background:#fff8e6!important;color:#8a5a00!important;font-size:11px!important;font-weight:600!important;line-height:16px!important;white-space:nowrap!important}
/* R368-C6 c6/link.css */
/* R368-C6: 채권자목록 — 등록된 채권사 목록에서 등록정보를 자동으로 넣었다는 안내(되돌리기) */
html body #auto368{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 10px!important;margin:0 0 8px!important;padding:7px 12px!important;border:1px solid #b9cff5!important;border-radius:2px!important;background:#f5f9ff!important;color:#1559c9!important;font-size:12.5px!important;font-weight:600!important;line-height:1.5!important}
html body #auto368 span{flex:1 1 360px!important}
html body #auto368 button{height:26px!important;min-height:0!important;width:auto!important;padding:0 10px!important;border:1px solid #b9cff5!important;border-radius:2px!important;background:#fff!important;color:#1559c9!important;font-size:12px!important;font-weight:700!important;cursor:pointer!important}
/* R368-C7 c7/outcolor.css */
/* R368-C7: 출력 단추 상징색 — 인쇄 남색(중립) · PDF 빨강 · CSV/엑셀 녹색 · 미리보기 파랑 · 다운로드/내보내기 회색, 켜진 미리보기·선택된 탭은 진한 파랑, 못 누르는 단추는 흐리게.
   색만 바꿈(크기·모양은 R351·R361·각 화면 그대로). outcolor.js 가 단추에 data-oc368=print|pdf|csv|preview|download|tab 을 붙임.
   @layer r368 은 화면 <head> 맨 앞에 선언돼 cs321(R351 파랑)·cs323~325·공통 '읽기 쉬운 화면'(단추 순서별 아이콘 색)보다 셈. */
@media screen{
:root{
  --oc368-print:#2f3d55;--oc368-print-bg:#f3f5f8;--oc368-print-bd:#c9d2de;--oc368-print-hv:#e7ecf2;
  --oc368-pdf:#c9302c;--oc368-pdf-bg:#fdf3f2;--oc368-pdf-bd:#f1c5c2;--oc368-pdf-hv:#fbe6e4;
  --oc368-csv:#1e7145;--oc368-csv-bg:#eff8f2;--oc368-csv-bd:#bcdfca;--oc368-csv-hv:#e0f1e6;
  --oc368-pv:#2463b5;--oc368-pv-bg:#f5f9ff;--oc368-pv-bd:#d3dff0;--oc368-pv-hv:#eaf2ff;
  --oc368-on:#1a5fd0;--oc368-on-bg:#e3edff;--oc368-on-bd:#a8c4f6;
  --oc368-dl:#475467;--oc368-dl-bg:#f5f6f8;--oc368-dl-bd:#d5d9e0;--oc368-dl-hv:#eceef2;
  --oc368-tab:#43536b;--oc368-tab-bg:#fff;--oc368-tab-bd:#d6dee9;
}
html body [data-oc368=print]{--oc-c:var(--oc368-print);--oc-bg:var(--oc368-print-bg);--oc-bd:var(--oc368-print-bd);--oc-hv:var(--oc368-print-hv);
  --oc-f:brightness(0) saturate(100%) invert(17%) sepia(36%) saturate(673%) hue-rotate(179deg) brightness(100%) contrast(85%)}
html body [data-oc368=pdf]{--oc-c:var(--oc368-pdf);--oc-bg:var(--oc368-pdf-bg);--oc-bd:var(--oc368-pdf-bd);--oc-hv:var(--oc368-pdf-hv);
  --oc-f:brightness(0) saturate(100%) invert(23%) sepia(44%) saturate(4032%) hue-rotate(344deg) brightness(93%) contrast(90%)}
html body [data-oc368=csv]{--oc-c:var(--oc368-csv);--oc-bg:var(--oc368-csv-bg);--oc-bd:var(--oc368-csv-bd);--oc-hv:var(--oc368-csv-hv);
  --oc-f:brightness(0) saturate(100%) invert(34%) sepia(81%) saturate(354%) hue-rotate(96deg) brightness(88%) contrast(96%)}
html body [data-oc368=preview]{--oc-c:var(--oc368-pv);--oc-bg:var(--oc368-pv-bg);--oc-bd:var(--oc368-pv-bd);--oc-hv:var(--oc368-pv-hv);
  --oc-f:brightness(0) saturate(100%) invert(29%) sepia(88%) saturate(1189%) hue-rotate(193deg) brightness(87%) contrast(88%)}
html body [data-oc368=download]{--oc-c:var(--oc368-dl);--oc-bg:var(--oc368-dl-bg);--oc-bd:var(--oc368-dl-bd);--oc-hv:var(--oc368-dl-hv);
  --oc-f:brightness(0) saturate(100%) invert(30%) sepia(17%) saturate(708%) hue-rotate(176deg) brightness(96%) contrast(87%)}

/* readability nth-child (4n+2 purple / 4n+3 green / 4n gold) and child.css --ts60-icon: re-point their variables to the kind color */
html body [data-oc368]{--ts-color-icon:var(--oc-c)!important;--ts60-icon:var(--oc-c)!important}

/* 1) tinted chip (default for toolbar buttons) */
html body [data-oc368]:not([data-oc368-solid]):not([data-oc368=tab]){
  color:var(--oc-c)!important;background-color:var(--oc-bg)!important;background-image:none!important;border-color:var(--oc-bd)!important}
html body [data-oc368]:not([data-oc368-solid]):not([data-oc368=tab]):not(:disabled):hover{background-color:var(--oc-hv)!important}
html body [data-oc368]:not([data-oc368-solid]) :is(span,b,small):not(.ic-pdf):not(.export-icon){color:inherit!important}
/* register/application 'export-icon' boxes (▣ / PDF / X): take the kind colour too */
html body [data-oc368]:not([data-oc368-solid]) .export-icon{color:var(--oc-c)!important;background-color:#fff!important;border-color:currentColor!important}
/* icons: inline svg follows currentColor; img.i needs a filter (can't use currentColor) */
html body [data-oc368]:not([data-oc368-solid]) svg{color:var(--oc-c)!important}
html body [data-oc368]:not([data-oc368-solid]) svg[fill=currentColor]{fill:var(--oc-c)!important}
html body [data-oc368]:not([data-oc368-solid]) :is(img.i,img[src*="/design_r23/"]){filter:var(--oc-f)!important;opacity:1!important}

/* 2) solid CTA (선택 서류 출력·전체 미리보기·계좌 보고서 출력 …): keep the screen's fill, just make the icon follow the text */
html body [data-oc368][data-oc368-solid] svg{color:currentColor!important}
html body [data-oc368][data-oc368-solid] svg[fill=currentColor]{fill:currentColor!important}
html body [data-oc368][data-oc368-solid] :is(img.i,img[src*="/design_r23/"]){filter:brightness(0) invert(1)!important}

/* 3) preview toggles that are ON (R351 .on351 · R361 aria-pressed · expanded) */
html body [data-oc368=preview]:is(.on351,[aria-pressed=true],[aria-expanded=true]):not([data-oc368-solid]){
  color:var(--oc368-on)!important;background-color:var(--oc368-on-bg)!important;border-color:var(--oc368-on-bd)!important}
html body [data-oc368=preview]:is(.on351,[aria-pressed=true],[aria-expanded=true]):not([data-oc368-solid]) svg{color:var(--oc368-on)!important}

/* 4) preview document tabs (변제계획안/변제예정액표/수입·지출 · 파산 신청서/표지/…) — one look everywhere */
html body [data-oc368=tab]{color:var(--oc368-tab)!important;background-color:var(--oc368-tab-bg)!important;background-image:none!important;border-color:var(--oc368-tab-bd)!important;font-weight:600!important}
html body [data-oc368=tab]:hover{background-color:var(--oc368-pv-bg)!important}
html body [data-oc368=tab]:is([aria-selected=true],.active,.on361,.on){color:var(--oc368-on)!important;background-color:var(--oc368-on-bg)!important;border-color:var(--oc368-on-bd)!important;font-weight:700!important}

/* 5) disabled: keep the hue (still recognisable as PDF/CSV), just faded */
html body [data-oc368]:is(:disabled,[aria-disabled=true]){opacity:.45!important;cursor:default!important}
html body [data-oc368]:focus-visible{outline:2px solid var(--oc-c,#1a6cf0)!important;outline-offset:2px!important}
}
/* R368-C8 c8/danger.css */
/* R368-C8: 삭제(위험) 단추의 아이콘은 글자와 같은 빨강 — 공통 '읽기 쉬운 화면' 규칙이 단추 순서마다(3·7·11번째 …) 아이콘을 녹색 등으로 칠하던 것을 막음 */
@media screen{
html body :is(button,a):is(.danger,.delete-btn,.btn-danger,[class*="delete-action"]){--ts-color-icon:currentColor!important;--ts60-icon:currentColor!important}
html body :is(button,a):is(.danger,.delete-btn,.btn-danger,[class*="delete-action"]) svg{color:currentColor!important}
html body :is(button,a):is(.danger,.delete-btn,.btn-danger,[class*="delete-action"]) img.i{filter:brightness(0) saturate(100%) invert(30%) sepia(26%) saturate(4748%) hue-rotate(334deg) brightness(95%) contrast(91%)!important;opacity:1!important}
}
/* R368-C9 c9/load.css */
/* R368-C9: 처음 열 때 화면 튐 줄이기.
   채권자목록: 예전 CSS 가 빠지는 순간에도 도구줄·근거자료 아이콘은 16px(아이콘 그림 원래 크기도 20px 로 바꿈 — design_r23/*.svg).
   고객파일함(files_r30 — #docList 있는 화면만): 위쪽 단계 줄(#steps346)이 붙기 전에는 본문을 잠깐 감춤(1.5초 안에 안 붙으면 그냥 보임) — 3~4번 밀리는 대신 한 번에 그림.
   visibility 에 !important 를 쓰지 않음(1.5초 뒤 animation 이 이겨야 함). */
body.creditor310 .list-tools img,body.creditor310 #creditList .evidence-trigger img{width:16px!important;height:16px!important}
main.page:has(#docList):not(:has(#steps346)){visibility:hidden;animation:r368c9 0s 1.5s forwards!important}
@keyframes r368c9{to{visibility:visible}}
/* R368-C10 c10/secured.css */
/* R368-C10: 변제계획 화면 — 별제권 ④ 부족액 미입력 안내 */
html body #sec368{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 12px!important;margin:0 0 12px!important;padding:10px 14px!important;border:1px solid #f1b0aa!important;border-left:4px solid #d93a40!important;border-radius:2px!important;background:#fff6f5!important;color:#7a1d17!important;font-size:13px!important;line-height:1.55!important}
html body #sec368 b{color:#b42318!important;font-weight:700!important}
html body #sec368 span{flex:1 1 420px!important}
html body #sec368 button{height:30px!important;padding:0 12px!important;border:1px solid #d93a40!important;border-radius:2px!important;background:#fff!important;color:#b42318!important;font-size:12.5px!important;font-weight:700!important;cursor:pointer!important;white-space:nowrap!important}
html body .credit-row .badge.need368{background:#fff1f1!important;border:1px solid #f2b8bb!important;color:#c2272d!important}
/* R368-C11 c11/combo.css */
/* R368-C11: 가족관계 표 동거(동거/별거)·부양(인정/절반/안 함)을 동그라미 단추 대신 선택 상자(콤보)로 — 원래 칸(select)을 그대로 보여 줌(저장 값·방식 그대로). 둥근 모양 X. */
html body #family-rows :is(.f365-co,.f365-sup) .rg365{display:none!important}
html body #family-rows :is(.f365-co,.f365-sup) select.h365{display:block!important;position:static!important;visibility:visible!important;opacity:1!important;box-sizing:border-box!important;width:100%!important;min-width:64px!important;max-width:none!important;height:var(--h367,30px)!important;min-height:0!important;margin:0!important;padding:0 24px 0 7px!important;border:1px solid #c3ccd6!important;border-radius:2px!important;background-color:#fff!important;-webkit-appearance:none!important;appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6b80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 8px center!important;background-size:10px 6px!important;color:#1f2d3d!important;font-size:12.5px!important;font-weight:500!important;line-height:1!important;cursor:pointer!important;flex:1 1 auto!important}
html body #family-rows :is(.f365-co,.f365-sup) select.h365:focus{border-color:#1a6cf0!important;outline:2px solid rgba(26,108,240,.18)!important;outline-offset:0!important}
html body #family-rows .f365-co select.h365.empty368{color:#8a96a6!important}
html body #family-rows .f365-sup select.h365.sup1-368{color:#1a5fd0!important;font-weight:700!important}
}}
