/* 거래처 등록 및 관리(위하고 가져오기) · 모달 · 틀과 메뉴 — styles.css 에서 잘라 낸 조각. 자른 순서대로 읽힌다 · 순서를 바꾸면 생김새가 바뀐다 */
.law-reference-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.law-reference-summary strong { color: #263b50; font-size: 13px; line-height: 1.55; }
.law-reference-body { display: grid; gap: 0; padding: 6px 22px 28px; }
.law-reference-body section { padding: 20px 0; border-bottom: 1px solid #e3e9ef; }
.law-reference-body section:last-child { border-bottom: 0; }
.law-reference-body h4 { margin: 0 0 11px; color: #173b60; font-size: 16px; }
.law-reference-body p { margin: 0; color: #334155; font-size: 14px; line-height: 1.95; white-space: pre-wrap; }
.law-reference-body p::first-letter { color: #075fc0; }
.law-reference-empty { min-height: 360px; }
.law-preview-note { margin: 10px 2px 0; color: #9a4d05; font-size: 12px; }

.law-chain-results-panel { padding-bottom: 14px; }
.law-explorer-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.law-chain-main { min-width: 0; }
.law-explorer-layout .law-chain-results-panel { position: sticky; top: 14px; max-height: calc(70vh + 96px); overflow: hidden; }
.law-explorer-layout .law-search-results { max-height: 70vh; overflow-y: auto; }
.law-search-results-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  max-height: 250px;
  overflow-y: auto;
}
.law-chain-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 620px;
  margin-top: 12px;
  border: 1px solid #b9c9d9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}
.law-chain-pane {
  min-width: 0;
  height: min(70vh, 820px);
  border-right: 1px solid #c8d5e2;
  overflow-y: auto;
  background: #f8fbfe;
}
.law-chain-pane:last-child { border-right: 0; }
.law-chain-pane-head {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 14px 15px;
  border-bottom: 1px solid #c8d5e2;
  background: rgba(233, 241, 249, .97);
  backdrop-filter: blur(8px);
}
.law-chain-pane-head h3 { margin: 3px 0 6px; color: #173b60; font-size: 17px; }
.law-chain-pane-head p:not(.hero-label) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.law-chain-pane-head a { display: inline-block; margin-top: 8px; color: var(--primary); font-size: 12px; font-weight: 700; }
.law-history-field { display: grid; gap: 4px; margin-top: 9px; }
.law-history-field span { color: #53677d; font-size: 11px; font-weight: 700; }
.law-history-field select { width: 100%; min-width: 0; padding: 7px 28px 7px 9px; border: 1px solid #b9c9d9; border-radius: 7px; background: #fff; color: #173b60; font-size: 12px; }
.law-history-field select:focus { border-color: var(--primary); outline: 2px solid rgba(37, 99, 235, .14); }
.law-history-badge { display: inline-flex; margin-left: 5px; padding: 2px 6px; border: 1px solid #d97706; border-radius: 999px; background: #fff7ed; color: #9a4d05; font-size: 10px; font-weight: 800; vertical-align: middle; }
.law-chain-pane-body { display: grid; gap: 10px; padding: 12px; }
.law-chain-pane .law-article-card { margin: 0; }
.law-chain-pane .law-article-content { max-height: none; overflow: visible; font-size: 13px; line-height: 1.85; }
.law-citation-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #075fc0;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.law-citation-link:hover { background: transparent; color: #064994; text-decoration-thickness: 2px; }
.law-citation-link:focus-visible { background: transparent; color: #064994; outline: 1px dotted #075fc0; outline-offset: 2px; }

@media (max-width: 1100px) {
  .law-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .law-compare-toolbar { align-items: flex-start; flex-direction: column; }
  .law-toolbar-actions { justify-content: flex-start; }
  .law-explorer-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .law-reference-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .law-reference-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .app-shell { padding: 10px; }
  .topbar { gap: 10px; padding: 14px; border-radius: 16px; }
  .spacer-box { display: none; }
  .user-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .user-box .ghost-button { min-width: 0; white-space: nowrap; }
  .user-box .user-chip { grid-column: 1 / -1; }
  .layout { gap: 10px; }
  .sidebar .menu-card { display: flex; gap: 6px; padding: 9px; overflow-x: auto; border-radius: 14px; }
  .sidebar .section-title { display: none; }
  .sidebar .menu-item { flex: 0 0 auto; padding: 9px 11px; white-space: nowrap; }
  .sidebar .menu-group { display: flex; flex: 0 0 auto; align-items: center; }
  .sidebar .menu-group-toggle { flex: 0 0 auto; width: auto; padding: 9px 11px; white-space: nowrap; }
  .sidebar .menu-submenu { display: flex; gap: 6px; max-width: 0; max-height: none; opacity: 0; transform: translateX(-4px); transition: max-width .25s ease, opacity .2s ease, transform .2s ease; }
  .sidebar .menu-group.open .menu-submenu { max-width: 420px; max-height: none; opacity: 1; transform: translateX(0); }
  .sidebar .menu-subitem { margin-left: 0; padding: 9px 11px; }
  .law-hero, .law-search-form { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .law-workspace { grid-template-columns: 1fr; }
  .law-results-panel { position: static; max-height: none; }
  .law-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 310px; }
  .law-column-head { display: none; }
  .law-comparison-board { border-top: 1px solid #c8d5e2; border-radius: 10px; }
  .law-comparison-row { grid-template-columns: 1fr; }
  .law-cell { border-right: 0; border-bottom: 1px dashed #c8d5e2; }
  .law-cell::before { display: block; margin-bottom: 8px; color: var(--primary); font-size: 11px; font-weight: 800; }
  .law-cell:nth-child(1)::before { content: "법률"; }
  .law-cell:nth-child(2)::before { content: "시행령"; }
  .law-cell:nth-child(3)::before { content: "시행규칙"; }
  .law-cell:last-child { border-bottom: 0; }
  .law-find-panel { align-items: stretch; flex-direction: column; }
  .law-find-panel label { grid-template-columns: 1fr; }
  .law-prototype-label { width: 100%; margin-left: 0; text-align: center; }
  .law-reference-layout, .law-reference-layout.results-collapsed { grid-template-columns: 1fr; gap: 10px; }
  .law-reference-results { position: static; max-height: none; }
  .law-reference-result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
  .law-reference-layout.results-collapsed .law-reference-results { display: none; }
  .law-reference-document-head { align-items: stretch; flex-direction: column; }
  .law-reference-actions { flex-wrap: wrap; }
  .law-explorer-layout { grid-template-columns: 1fr; }
  .law-explorer-layout .law-chain-results-panel { position: static; max-height: none; }
  .law-explorer-layout .law-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 320px; }
  .law-chain-board { grid-template-columns: 1fr; overflow: visible; }
  .law-chain-pane { height: auto; min-height: 420px; max-height: 70vh; border-right: 0; border-bottom: 1px solid #c8d5e2; }
  .law-chain-pane:last-child { border-bottom: 0; }
}
@media print {
  body { background: #fff; }
  .topbar, .sidebar, .law-search-panel, .law-results-panel, .law-find-panel, .law-toolbar-actions, .law-disclaimer { display: none !important; }
  .app-shell, .main-content { padding: 0 !important; }
  .layout, .law-workspace { display: block !important; }
  .view-section { display: none !important; }
  #view-law { display: block !important; }
  .law-hero, .law-compare-toolbar { box-shadow: none; border: 0; }
  .law-column-head { position: static; }
  .law-article-content { max-height: none; overflow: visible; }
  .law-comparison-row { break-inside: avoid; }
  .law-chain-board { display: block; border: 0; box-shadow: none; }
  .law-chain-pane { height: auto; overflow: visible; border: 0; }
  .law-chain-pane-head { position: static; }
}
.wehago-import-trigger{background:#244a87;border-color:#244a87}
.accounting-term-preview{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:68px;padding:10px 14px;border:1px solid #cfe0f2;border-radius:12px;background:#f2f7fd;color:#60708a}
.accounting-term-preview span{font-size:12px}
.accounting-term-preview strong{font-size:20px;color:#175da8}
.wehago-import-shell{width:min(1180px,calc(100vw - 36px));max-height:calc(100vh - 36px)}
.wehago-import-body{display:flex;flex-direction:column;gap:14px;min-height:360px}
.wehago-import-summary{display:flex;justify-content:space-between;align-items:center;gap:16px}
.wehago-import-summary .status-text{margin:0}
.wehago-import-board{max-height:56vh;overflow:auto}
.wehago-import-board table{min-width:1040px}
.wehago-import-board td,.wehago-import-board th{white-space:nowrap}
.wehago-import-board .wehago-address-cell{white-space:normal;min-width:260px}
.wehago-import-board .wehago-row-duplicate{background:#f6f7f9;color:#7b8492}
.wehago-import-board .wehago-row-invalid{background:#fff5f3}
.wehago-import-state{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:700;background:#e8f2ff;color:#145ca8}
.wehago-import-state.duplicate{background:#eef0f3;color:#68717e}
.wehago-import-state.invalid{background:#ffe7e2;color:#b43a28}
.wehago-import-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:10px;background:#f2f7fd;color:#52617a;font-size:13px;line-height:1.5}
.wehago-import-note strong{color:#203657;white-space:nowrap}
.wehago-extension-install-shell{width:min(680px,calc(100vw - 32px));height:auto;max-height:calc(100vh - 64px)}
.wehago-extension-install-shell .modal-card{height:auto;max-height:calc(100vh - 64px)}
.wehago-extension-install-body{gap:18px}
.wehago-extension-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:wehago-step}
.wehago-extension-steps li{display:grid;gap:4px;padding:13px 15px;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc;color:#58697e;font-size:13px;line-height:1.5}
.wehago-extension-steps strong{color:#1f3554;font-size:14px}
.wehago-extension-steps code{padding:2px 5px;border-radius:4px;background:#e8eef7;color:#214c84}
.wehago-extension-steps .wehago-extension-final-step{gap:8px}.wehago-extension-final-step img{display:block;width:100%;max-height:190px;object-fit:contain;object-position:left center;border:1px solid #cfd9e6;border-radius:8px;background:#fff}
.wehago-extension-install-actions{display:flex;align-items:center;gap:14px;padding-top:2px}.wehago-extension-install-actions .status-text{margin:0;line-height:1.5}
@media(max-width:760px){.wehago-import-summary{align-items:flex-start;flex-direction:column}.wehago-import-shell{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}}

/* 거래처 등록 및 관리 - WEHAGO 수임처정보형 작업 화면 */
.temp-reg-titlebar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-radius:14px 14px 0 0;background:#f7f9fc;border:1px solid #dce4ee}.temp-reg-titlebar h2{margin:3px 0 0}.temp-reg-title-actions{display:flex;align-items:center;gap:8px}.temp-reg-title-actions button{padding:11px 18px}
.temp-reg-workspace{display:grid;grid-template-columns:292px minmax(0,1fr);height:calc(100vh - 190px);min-height:680px;max-height:1040px;border:1px solid #d8e0ea;border-top:0;border-radius:0 0 14px 14px;overflow:hidden;background:#fff;box-shadow:0 14px 34px rgba(28,49,78,.08)}
.temp-reg-sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f8fafc;border-right:1px solid #d8e0ea}
.temp-reg-counts{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #dce4ee}.temp-reg-count{margin:0;padding:11px 4px;border:0;border-right:1px solid #e2e8f0;background:#fff;text-align:center;color:#566579;font:inherit;font-size:12px;cursor:pointer}.temp-reg-count:last-child{border-right:0}.temp-reg-count strong{display:block;margin-bottom:3px;color:#1769d2;font-size:15px}.temp-reg-count:hover{background:#eef6ff}.temp-reg-count.active{background:#1769d2;color:#fff}.temp-reg-count.active strong{color:#fff}
.temp-reg-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px 10px 6px}.temp-reg-filter-row select,.temp-reg-search-row input{min-width:0;height:36px;border:1px solid #cfd8e5;background:#fff;padding:0 9px;color:#40516b}
.temp-reg-search-row{display:grid;grid-template-columns:1fr 48px;gap:6px;padding:6px 10px}.temp-reg-search-row button{border:0;background:#667080;color:#fff;font-weight:700}.temp-reg-result-label{margin:5px 12px 9px;color:#65758b;font-size:12px}.temp-reg-result-label strong{color:#1769d2}
.temp-reg-list{flex:1;min-height:0;overflow-y:auto;padding:0 9px 12px}.temp-reg-card{position:relative;display:block;width:100%;margin-bottom:8px;padding:0;border:1px solid #d7e0eb;border-radius:8px;background:#fff;text-align:left;overflow:hidden}.temp-reg-card:hover,.temp-reg-card.active{border-color:#1681ef;box-shadow:0 0 0 1px #1681ef}.temp-reg-card:focus-within{border-color:#1681ef}.temp-reg-card.multi-selected{border-color:#1769d2;background:#eef6ff;box-shadow:0 0 0 1px #1769d2}.temp-reg-card-select{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.temp-reg-card-select:focus-visible{outline:2px solid #1681ef;outline-offset:-2px}.temp-reg-card-main{display:block;padding:12px 72px 12px 11px}.temp-reg-card.selection-mode .temp-reg-card-main{padding-left:43px}.temp-reg-select-box{position:absolute;z-index:1;left:12px;top:50%;display:grid;width:20px;height:20px;transform:translateY(-50%);place-items:center;border:1px solid #aebbc9;border-radius:4px;background:#fff;color:#fff;font-size:14px;font-weight:900;pointer-events:none}.temp-reg-card.multi-selected .temp-reg-select-box{border-color:#1769d2;background:#1769d2}.temp-reg-card-main strong{display:block;margin-bottom:7px;color:#18283f;font-size:14px}.temp-reg-card-meta{display:flex;align-items:center;gap:6px;color:#77849a;font-size:11px}.temp-reg-type-badge{padding:2px 5px;border-radius:4px;background:#10b8b1;color:#fff}.temp-reg-type-badge.corporate{background:#746cf4}.temp-reg-withholding-cycle{position:absolute;z-index:2;right:9px;top:9px;display:inline-flex;align-items:center;gap:4px;min-width:53px;height:23px;padding:0 6px 0 4px;border:1px solid #8abcf4;border-radius:5px;background:#eef6ff;color:#1769d2;font-family:inherit;font-size:10px;font-weight:700;line-height:1;cursor:pointer}.temp-reg-withholding-cycle:hover{border-color:#1769d2;background:#e1efff}.temp-reg-withholding-cycle:focus-visible{outline:2px solid #1769d2;outline-offset:1px}.temp-reg-withholding-cycle:disabled{cursor:wait;opacity:.6}.temp-reg-withholding-check{display:grid;width:13px;height:13px;place-items:center;border-radius:3px;background:#1769d2;color:#fff;font-size:9px;line-height:1}.temp-reg-withholding-cycle.withholding-반기별{border-color:#e6b466;background:#fff8e8;color:#a15b00}.temp-reg-withholding-cycle.withholding-반기별 .temp-reg-withholding-check{background:#d98200}.temp-reg-withholding-cycle.withholding-원천없음{border-color:#b8c0ca;background:#f5f6f8;color:#667080}.temp-reg-withholding-cycle.withholding-원천없음 .temp-reg-withholding-check{background:#7c8794}
.temp-reg-detail{min-width:0;min-height:0;overflow-y:auto;background:#fff}.temp-reg-company-head{display:flex;justify-content:space-between;align-items:center;min-height:80px;padding:18px 22px;background:#234d89;color:#fff}.temp-reg-company-head>div{display:flex;align-items:center;gap:10px}.temp-reg-company-head strong{font-size:21px}.temp-reg-company-head span{font-size:12px}.temp-reg-company-head .temp-reg-type-badge{font-weight:700}.temp-reg-backup{padding:6px 9px;border:1px solid rgba(255,255,255,.65)}
.temp-reg-tabs{display:flex;gap:0;height:44px;border-bottom:1px solid #ccd6e3;padding-left:0}.temp-reg-tabs button{min-width:112px;border:0;border-bottom:2px solid transparent;background:#fff;color:#485a73}.temp-reg-tabs button.active{color:#1478e6;border-bottom-color:#1478e6;font-weight:700}
.temp-reg-detail-body{display:grid;grid-template-columns:minmax(520px,1fr) 390px;gap:28px;padding:10px 18px 24px}.temp-reg-info-table{display:grid;align-content:start}.temp-reg-info-row{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:49px}.temp-reg-info-row dt{display:flex;align-items:center;margin:0;padding:10px 16px;background:#f5f7fa;color:#43536a;font-size:13px}.temp-reg-info-row dd{display:flex;align-items:center;margin:0;padding:10px 16px;color:#1e2b3e;font-size:13px;border-bottom:1px solid #f2f4f7}.temp-reg-info-row:first-child dd{font-weight:700}.temp-reg-term-pill{margin-right:4px;font-weight:800;color:#0c1728}
.temp-reg-memo{align-self:start;margin-top:0;border-radius:12px;background:#def5f7;overflow:hidden;box-shadow:0 4px 12px rgba(34,72,94,.1)}.temp-reg-memo>strong{display:block;padding:16px 18px;color:#16354d}.temp-reg-memo>#temp-reg-memo-text{min-height:105px;padding:10px 18px;color:#587182;font-size:13px;line-height:1.7}.temp-reg-memo>button{width:100%;height:36px;border:1px solid #d2dbe5;background:#fff;color:#55657a;cursor:pointer}.temp-reg-map-panel{display:grid;gap:9px;padding:14px 18px;background:#fff;border-top:1px solid #d5e1e8;color:#53677a;font-size:12px}.temp-reg-map-panel.hidden{display:none}.temp-reg-map-panel a{display:inline-flex;justify-content:center;padding:9px 12px;border-radius:8px;background:#fee500;color:#191919;font-weight:800;text-decoration:none}.temp-reg-map-panel span{line-height:1.5}
.temp-reg-empty{padding:28px 16px;text-align:center;color:#7b8798}
.temp-reg-card-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;margin-top:-4px;padding:0 11px 10px}.temp-reg-card.selection-mode .temp-reg-card-tags{padding-left:43px}.temp-reg-tag-label{padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:text}.temp-reg-tag-label:focus-visible{outline:1px solid #1681ef;outline-offset:1px}.temp-reg-tag{display:inline-flex;align-items:center;gap:3px;max-width:100%;padding:2px 4px 2px 7px;border:1px solid #ccd6e3;border-radius:10px;background:#f2f5f9;color:#4d5c72;font-size:10px;line-height:1.6;word-break:break-all}.temp-reg-tag-remove{display:grid;flex:0 0 auto;box-sizing:border-box;width:13px;height:13px;padding:0;place-items:center;border:0;border-radius:50%;background:transparent;color:#8b97a8;font-family:inherit;font-size:11px;line-height:1;cursor:pointer}.temp-reg-tag-remove:hover{background:#d9e1ea;color:#33404f}.temp-reg-tag-add{position:relative;flex:0 0 auto;box-sizing:border-box;width:19px;height:19px;padding:0;border:1px dashed #b9c4d2;border-radius:50%;background:#fff;font-size:0;line-height:0;cursor:pointer}.temp-reg-tag-add::before,.temp-reg-tag-add::after{content:"";position:absolute;top:50%;left:50%;background:#7b8798;transform:translate(-50%,-50%)}.temp-reg-tag-add::before{width:9px;height:1px}.temp-reg-tag-add::after{width:1px;height:9px}.temp-reg-tag-add:hover{border-style:solid;border-color:#1681ef}.temp-reg-tag-add:hover::before,.temp-reg-tag-add:hover::after{background:#1681ef}.temp-reg-tag-input{width:112px;height:21px;padding:0 7px;border:1px solid #1681ef;border-radius:10px;background:#fff;color:#22303f;font-family:inherit;font-size:10px}.temp-reg-tag-input:focus{outline:none;box-shadow:0 0 0 2px rgba(22,129,239,.18)}.temp-reg-tag-filter-row{padding-top:0}
.temp-reg-head-right{display:flex;align-items:center;gap:10px}
.temp-reg-save-state{max-width:360px;padding:6px 9px;border-radius:6px;background:rgba(255,255,255,.18);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.temp-reg-save-state.saved{background:#1f9d55}.temp-reg-save-state.error{background:#d64545}
.temp-reg-info-row dd{gap:6px}
.temp-reg-field{flex:1 1 auto;width:100%;min-width:0;height:30px;padding:4px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit}.temp-reg-field:hover{border-color:#dbe2ea;background:#fbfcfe}.temp-reg-field:focus{outline:none;border-color:#1478e6;background:#fff;box-shadow:0 0 0 2px rgba(20,120,230,.15)}.temp-reg-field.saving{border-color:#f0b429;background:#fffaf0}.temp-reg-field.invalid{border-color:#d64545;background:#fff5f5}select.temp-reg-field{cursor:pointer}.temp-reg-field[type="date"]{font-variant-numeric:tabular-nums}.temp-reg-field[type="date"]::-webkit-calendar-picker-indicator{opacity:.4;cursor:pointer}.temp-reg-field[type="date"]:hover::-webkit-calendar-picker-indicator,.temp-reg-field[type="date"]:focus::-webkit-calendar-picker-indicator{opacity:1}.temp-reg-field-sep{flex:0 0 auto;color:#9aa7b8}.temp-reg-info-table.editing .temp-reg-field{border-color:#dbe2ea;background:#fff}.temp-reg-info-table.editing .temp-reg-info-row dt{background:#eef2f7}.temp-reg-memo>#temp-reg-memo-text[readonly]{cursor:default}
.temp-reg-memo>#temp-reg-memo-text{display:block;width:100%;box-sizing:border-box;border:0;border-radius:0;background:transparent;font-family:inherit;resize:vertical}.temp-reg-memo>#temp-reg-memo-text:focus{outline:none;background:#fff;color:#1e2b3e}
@media(max-width:1200px){.temp-reg-workspace{grid-template-columns:260px minmax(0,1fr)}.temp-reg-detail-body{grid-template-columns:1fr}.temp-reg-memo{margin-top:10px}.temp-reg-info-row{grid-template-columns:175px minmax(0,1fr)}}
@media(max-height:820px) and (min-width:761px){.temp-reg-workspace{height:calc(100vh - 150px);min-height:560px}}

/* 데스크톱 자동 숨김 메뉴 */
@media (min-width: 761px) {
  .layout { display: block; }
  .main-content { width: 100%; min-width: 0; }
  .sidebar {
    position: fixed;
    z-index: 1200;
    top: 132px;
    left: 0;
    width: 296px;
    max-height: calc(100vh - 148px);
    padding: 0 18px 0 12px;
    transform: translateX(calc(-100% + 22px));
    transition: transform .24s ease;
    pointer-events: auto;
  }
  .sidebar::after {
    content: "메뉴";
    position: absolute;
    top: 26px;
    right: 0;
    width: 22px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 3px;
    border-radius: 0 10px 10px 0;
    background: #1565c0;
    color: #fff;
    box-shadow: 4px 6px 16px rgba(15,23,42,.2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    writing-mode: vertical-rl;
  }
  .sidebar:hover { transform: translateX(0); }
  .sidebar .menu-card {
    max-height: calc(100vh - 148px);
    overflow-y: auto;
    box-shadow: 12px 18px 40px rgba(15,23,42,.2);
  }
}

/* ================================================================
   YEILTAX unified workspace theme
   - Concept 1: stable navy enterprise shell
   - Concept 4: visible workflow/progress states
   Visual overrides only. Existing DOM ids and behavior remain unchanged.
   ================================================================ */
:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --line: #dfe3e2;
  --line-strong: #cbd3d1;
  --text: #172337;
  --muted: #697572;
  --primary: #0f9f9c;
  --primary-hover: #0b8583;
  --primary-soft: #e8f7f6;
  --dark: #10243e;
  --dark-deep: #0a1b31;
  --success-bg: #e8f7ef;
  --success-text: #14804a;
  --warn-bg: #fff4dd;
  --warn-text: #b66a00;
  --progress-bg: #eaf0ff;
  --progress-text: #2f6fe4;
  --danger-bg: #fff0ee;
  --danger-text: #d44536;
  --shadow: 0 5px 18px rgba(16, 36, 62, 0.055);
}

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Segoe UI", "Malgun Gothic", sans-serif;
  letter-spacing: -0.012em;
}

button, input, select, textarea { transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(15, 159, 156, .18);
  outline-offset: 1px;
}

.app-shell { min-height: 100vh; padding: 0; }

.topbar {
  position: sticky;
  z-index: 1250;
  top: 0;
  display: grid;
  grid-template-columns: 256px minmax(60px, 1fr) auto;
  gap: 0;
  min-height: 76px;
  margin: 0;
  padding: 0 22px 0 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: none;
}

.brand {
  align-self: stretch;
  gap: 12px;
  min-width: 0;
  margin-right: 22px;
  padding: 0 20px;
  background: var(--dark);
  color: #fff;
}

.brand:hover { background: #132b49; }

.brand-mark {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--primary);
  box-shadow: none;
  font-size: 13px;
  letter-spacing: .02em;
}

.brand .eyebrow { color: rgba(255, 255, 255, .54); font-size: 9px; letter-spacing: .08em; }
.brand h1 { color: #fff; font-size: 22px; letter-spacing: -.025em; }
.spacer-box { min-height: 1px; }

.user-box { justify-content: flex-end; gap: 7px; }

.user-box .ghost-button {
  padding: 8px 10px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: #4c5a6d;
  font-size: 12px;
}

.user-box .ghost-button:hover { border-color: var(--line); background: #f5f7fa; color: var(--text); }

.user-chip {
  gap: 1px;
  min-width: 92px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.user-chip strong { font-size: 12px; }
.user-chip span { color: var(--muted); font-size: 10px; }

.layout { display: block; min-height: calc(100vh - 76px); }

@media (min-width: 761px) {
  .sidebar {
    position: fixed;
    z-index: 1200;
    top: 76px;
    bottom: 0;
    left: 0;
    display: block;
    width: 256px;
    max-height: none;
    padding: 0;
    overflow: hidden;
    transform: none;
    background: var(--dark);
  }

  .sidebar:hover { transform: none; }
  .sidebar::after { display: none; content: none; }

  .sidebar .menu-card {
    display: grid;
    gap: 3px;
    max-height: calc(100vh - 76px);
    padding: 18px 12px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-content {
    width: auto;
    min-width: 0;
    margin-left: 256px;
    padding: 22px 24px 36px;
  }
}

.sidebar .section-title {
  padding: 0 12px 9px;
  color: rgba(255, 255, 255, .42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.sidebar .menu-item,
.sidebar .menu-group-toggle {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(239, 246, 255, .78);
  font-size: 13px;
  font-weight: 600;
}

