/* 관리업무 화면 공통 스타일 (유지관리·하자관리·일용직관리와 같은 모양) */
@import url("../theme.css");
:root { --line:#d3d8e2; --ink:#1e2a3b; --hd:#98a4bd; --bad:#d03a3a; --teal:#cfe8ea; --gray:#ececec; }
* { box-sizing: border-box; }
body { font-family: var(--app-font); background: #fff; margin: 0; padding: 10px 16px 14px; color: var(--ink); font-size: 12.5px; }
h1 { font-size: 20px; margin: 0; padding-left: 8px; border-left: 5px solid #222; letter-spacing: -.3px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.btn { border: 1px solid #b9c0cf; background: #fff; padding: 2px 14px; font-size: 12.5px; cursor: pointer; border-radius: 5px; font-family: inherit; height: 28px; transition: background .12s; }
.btn:hover:not(:disabled) { background: #f1f5fb; border-color: #8fa0bf; } .btn:disabled { opacity: .45; cursor: default; }
.btn.blue { background: #0a8cc9; color: #fff; border-color: #0a8cc9; box-shadow: 0 1px 2px rgba(20,40,80,.18); } .btn.blue:hover:not(:disabled) { background: #0879b0; }
.btn.dark { background: #2b2f38; color: #fff; border-color: #2b2f38; font-weight: 700; padding: 2px 24px; box-shadow: 0 1px 2px rgba(20,40,80,.18); } .btn.dark:hover:not(:disabled) { background: #1b1f27; }
.btn.ol { color: #0a6fb0; border-color: #0a8cc9; }
select, input[type=text], input:not([type]) { height: 26px; font: inherit; border: 1px solid #b9c0cf; border-radius: 4px; padding: 0 6px; background: #fff; color: var(--ink); }
select:focus, input:focus, textarea:focus { outline: 2px solid #5aa9e6; outline-offset: -1px; }
.hdr { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; background: #f4f6fa; border: 1px solid #e1e5ee; border-radius: 6px; margin-bottom: 10px; white-space: nowrap; }
.hdr .l { font-weight: 700; margin-left: 10px; } .hdr .l:first-child { margin-left: 0; } .hdr .push { margin-left: auto; }
.hdr .m { cursor: pointer; border: 1px solid #b9c0cf; background: #fff; border-radius: 3px; min-width: 40px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.hdr .m:hover { background: #eaf3ff; } .hdr .m.on { background: #0a8cc9; color: #fff; border-color: #0a8cc9; font-weight: 700; }
.pgfoot { display: flex; gap: 8px; justify-content: center; margin-top: 14px; } .pgfoot .btn { height: 30px; padding: 2px 20px; }
#toast { position: fixed; top: 10px; right: 16px; background: #1d7a3d; color: #fff; padding: 8px 14px; border-radius: 4px; display: none; z-index: 99; max-width: 520px; line-height: 1.5; white-space: pre-line; } #toast.bad { background: var(--bad); }
.note { background: #f7f9fc; border: 1px solid #e6eaf2; border-radius: 6px; padding: 7px 12px; margin-top: 10px; line-height: 1.6; color: #444; }
/* 보고서 표 */
table.rp { border-collapse: collapse; width: 100%; table-layout: fixed; background: #fff; }
table.rp th, table.rp td { border: 1px solid #cdd3df; padding: 0; height: 24px; font-size: 12.5px; vertical-align: middle; }
table.rp th { background: #f1f3f7; font-weight: 500; text-align: center; padding: 2px 4px; }
table.rp th.lb, table.rp td.lb { background: #f1f3f7; text-align: center; padding: 2px 6px; }
table.rp td.g { background: var(--gray); padding: 0 6px; text-align: right; } table.rp td.gl { background: var(--gray); padding: 0 6px; text-align: left; }
table.rp td.v { padding: 0 6px; } table.rp td.n { text-align: right; padding: 0 6px; }
table.rp td input, table.rp td textarea { display: block; width: 100%; border: 0; background: transparent; font: inherit; padding: 2px 6px; margin: 0; border-radius: 0; height: 100%; min-height: 22px; resize: none; }
table.rp td textarea { resize: vertical; line-height: 1.45; } table.rp td input.r { text-align: right; }
table.rp td input:focus, table.rp td textarea:focus { background: #fffdf0; outline: 2px solid #5aa9e6; outline-offset: -2px; }
.sec { background: var(--teal); font-weight: 700; padding: 5px 10px; border: 1px solid #b9d9dc; margin-top: 10px; }
.sec:first-child { margin-top: 0; }
.sidelb { background: var(--teal) !important; font-weight: 700; color: #4b6a6d; text-align: center; width: 100px; }
.rep { max-width: 1200px; margin: 0 auto; }
.neg { color: var(--bad); }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 170px; align-content: flex-start; } .thumbs .ph { position: relative; } .thumbs img { height: 150px; border: 1px solid #ccd; border-radius: 3px; cursor: zoom-in; display: block; } .thumbs .x { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 3px; cursor: pointer; }
#pv { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 90; } #pv img { max-width: 94vw; max-height: 94vh; }
@media print { .top .btn, .hdr, .pgfoot, #toast, .noprint { display: none !important; } body { padding: 0; } .rep { max-width: none; } textarea { resize: none; } table.rp td input, table.rp td textarea { border: 0; } .thumbs { min-height: 0; } }
