@charset "UTF-8";
/* ==========================================================================
   HAKKENKAN 取引先マイページ — スタイル
   ネイビー × ホワイト × 薄グレー、アクセントにブルー。PC=3列ダッシュボード／スマホ=下部ナビ
   ========================================================================== */

:root {
  color-scheme: light;
  --navy:       #14254a;
  --navy-2:     #1d3361;
  --navy-3:     #2a4785;
  --navy-ink:   #e9eef8;
  --blue:       #2563c9;
  --blue-soft:  #eaf1fc;
  --bg:         #f1f3f7;
  --surface:    #ffffff;
  --line:       #e3e7ee;
  --ink-1:      #18202f;
  --ink-2:      #4d5768;
  --ink-3:      #8a93a3;
  --red:        #e0412f;  --red-soft:    #fdecea;
  --orange:     #ef8a12;  --orange-soft: #fff3e2;
  --sky:        #2d6fd6;  --sky-soft:    #e7f0fd;
  --green:      #1f9d57;  --green-soft:  #e5f6ec;
  --gray-soft:  #eef0f4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 37, 74, .05), 0 3px 12px rgba(20, 37, 74, .05);
  --font: "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 66px;
  --side-w: 200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink-1); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────── ヘッダー ───────────── */
.header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding: 0 20px 0 0; z-index: 30; }
.brand { width: var(--side-w); display: flex; align-items: center; gap: 8px; padding-left: 18px; flex: none; }
.brand svg { width: 42px; height: 30px; color: var(--navy); }
.brand b { display: block; font-size: 17px; letter-spacing: .12em; color: var(--navy); line-height: 1.1; }
.brand small { display: block; font-size: 9.5px; letter-spacing: .08em; color: var(--navy); font-weight: 600; white-space: nowrap; }
.h-title { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.h-title h1 { font-size: 22px; color: var(--navy); letter-spacing: .04em; white-space: nowrap; }
.h-title span { color: var(--ink-2); font-size: 13px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; background: none; border: 0; padding: 8px; border-radius: 8px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.icon-btn:hover { background: var(--gray-soft); }
.icon-btn svg.i { width: 22px; height: 22px; }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 14px; border-left: 1px solid var(--line); margin-left: 6px; background: none; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; }
.user-chip small { display: block; font-size: 11px; color: var(--ink-2); line-height: 1.3; }
.user-chip b { font-size: 14px; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #cfd7e6; color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar.hk { background: var(--navy); color: #fff; }
.avatar.photo { background: #cfd7e6 center / cover; }
.avatar.sil { background: #c9d1df; overflow: hidden; }
.avatar.sil svg { width: 80%; height: 80%; fill: #fff; margin-top: 22%; }
.logo-img { height: 40px; width: auto; display: block; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }

.popover { position: absolute; top: calc(100% + 6px); right: 0; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20, 37, 74, .15); z-index: 50; overflow: hidden; }
.popover header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.popover .link-btn { font-size: 12px; }
.pop-wrap { position: relative; }
.menu-list a, .menu-list button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 10px 14px; background: none; border: 0; text-align: left; color: var(--ink-1); }
.menu-list a:hover, .menu-list button:hover { background: var(--gray-soft); }

/* ───────────── サイドバー ───────────── */
.side { position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--side-w); background: var(--navy); color: var(--navy-ink); display: flex; flex-direction: column; padding: 18px 8px 16px; z-index: 20; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 8px; font-size: 15px; color: #dfe6f4; }
.side nav a svg.i { width: 21px; height: 21px; }
.side nav a:hover { background: rgba(255, 255, 255, .07); }
.side nav a.on { background: var(--navy-3); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #7fa8ff; }
.side .badge { margin-left: auto; }
.contact { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .13); padding: 18px 10px 0; }
.contact > small { font-size: 12px; color: #b8c3da; }
.contact .who { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; }
.contact .who b { display: block; font-size: 15px; }
.contact .who > span:last-child span { display: block; font-size: 12px; color: #c8d1e4; line-height: 1.45; }
.contact .avatar { background: #dbe4f6; color: var(--navy); }
.btn-white { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 0; border-radius: 6px; padding: 10px; font-weight: 600; font-size: 13px; }

.badge { min-width: 21px; height: 21px; border-radius: 11px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }

/* ───────────── メイン ───────────── */
.main { margin-left: var(--side-w); padding: calc(var(--header-h) + 8px) 10px 24px; min-height: 100vh; }
.page { max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 6px 14px; }
.page-head h2 { font-size: 20px; color: var(--navy); }
.crumbs { font-size: 12px; color: var(--ink-3); width: 100%; }
.crumbs a:hover { color: var(--blue); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-h h3 { font-size: 16px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.card-h h3 svg.i { width: 19px; height: 19px; }
.card-h .more { margin-left: auto; font-size: 12.5px; color: var(--blue); display: inline-flex; align-items: center; gap: 2px; }
.card-h .more svg.i { width: 14px; height: 14px; }
.link-btn { background: none; border: 0; color: var(--blue); padding: 0; font-size: 13px; }

/* ダッシュボードの3列グリッド（ページイメージ準拠） */
.dash { display: grid; gap: 10px; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1.15fr) minmax(0, 1.05fr); grid-template-areas:
  "hero   stats  notice"
  "tasks  projs  sched"
  "docs   docs2  msgs"; }
.dash > .a-hero { grid-area: hero; } .dash > .a-stats { grid-area: stats; } .dash > .a-notice { grid-area: notice; }
.dash > .a-tasks { grid-area: tasks; } .dash > .a-projs { grid-area: projs; } .dash > .a-sched { grid-area: sched; }
.dash > .a-docs { grid-area: docs; } .dash > .a-subs { grid-area: docs2; } .dash > .a-msgs { grid-area: msgs; }
.dash-row1 { display: contents; }

.hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 180px; color: #fff; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(90deg, rgba(10, 22, 48, .82) 0%, rgba(10, 22, 48, .55) 48%, rgba(10, 22, 48, .08) 100%), var(--hero-img, linear-gradient(120deg, #2b4a7d, #4f7bb8)) center / cover; }
.hero small { font-size: 17px; letter-spacing: .05em; }
.hero h2 { font-size: 25px; margin: 2px 0 10px; letter-spacing: .03em; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.hero p { font-size: 13.5px; line-height: 1.75; opacity: .95; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; overflow: hidden; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 6px; border-left: 1px solid var(--line); color: inherit; transition: background .15s; }
.stat:first-child { border-left: 0; }
.stat:hover { background: #f7f9fc; }
.stat .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.stat .ic svg.i { width: 26px; height: 26px; }
.stat b { font-size: 15px; }
.stat .n { font-size: 34px; font-weight: 700; line-height: 1.05; }
.stat .n small { font-size: 16px; margin-left: 2px; }
.stat .sub { font-size: 11px; color: var(--ink-3); min-height: 1em; }
.stat.todo { color: var(--red); } .stat.todo .ic { background: var(--red); color: #fff; border-radius: 10px; }
.stat.doing { color: var(--orange); } .stat.doing .ic { background: #fde7c3; }
.stat.done { color: var(--green); } .stat.done .ic { background: #d4f0df; }

/* ステータスピル */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 4px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.st-todo, .st-revise { background: var(--red); color: #fff; }
.st-doing { background: #ffd27a; color: #7a4300; }
.st-submitted, .st-reviewing { background: #637087; color: #fff; }
.st-reviewing { background: var(--sky); }
.st-done, .st-approved { background: var(--green-soft); color: var(--green); }
.sp-submitted { background: var(--green-soft); color: var(--green); }
.sp-reviewing { background: var(--orange-soft); color: #b5620a; }
.sp-revise { background: var(--red-soft); color: var(--red); }
.sp-approved { background: var(--green-soft); color: var(--green); }
.pj-active { background: var(--green-soft); color: var(--green); }
.pj-design { background: var(--sky-soft); color: var(--sky); }
.pj-estimate { background: var(--gray-soft); color: var(--ink-2); }
.pj-paused { background: var(--sky-soft); color: var(--sky); }
.pj-done { background: var(--gray-soft); color: var(--ink-2); }
.tag { display: inline-flex; padding: 1px 9px; border-radius: 3px; background: var(--gray-soft); color: var(--ink-2); font-size: 11.5px; }

/* 作業指示の行 */
.task-row { display: grid; grid-template-columns: 106px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.task-row:first-of-type { border-top: 0; }
.thumb { width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; background: #eef1f6 center / cover; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); overflow: hidden; }
.thumb svg.plan { width: 100%; height: 100%; }
.task-row .t-top { display: flex; align-items: center; gap: 10px; }
.task-row .t-no { font-weight: 700; font-size: 14px; color: var(--navy); }
.task-row .t-title { font-size: 16px; font-weight: 700; margin: 4px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.task-row .t-dates { display: grid; grid-template-columns: auto auto; column-gap: 18px; row-gap: 2px; font-size: 12px; color: var(--ink-2); justify-items: start; align-content: start; }
.task-row .t-dates .due { color: var(--red); }
.task-row .t-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.due-flag { font-size: 11px; color: #fff; background: var(--red); border-radius: 3px; padding: 0 6px; font-weight: 700; }
.due-soon { color: var(--orange); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 5px; padding: 8px 18px; font-size: 13px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.btn svg.i { width: 15px; height: 15px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost { background: #fff; color: var(--ink-1); border-color: var(--line); }
.btn-red { background: #fff; color: var(--red); border-color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-lg { padding: 12px 22px; font-size: 14.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }

/* 案件カード */
.proj-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px; align-items: stretch; margin-top: 8px; color: inherit; }
.proj-row .thumb { aspect-ratio: auto; height: 86px; border-radius: 6px 0 0 6px; }
.proj-row .body { border: 1px solid var(--line); border-radius: 0 6px 6px 0; padding: 10px 30px 10px 14px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.proj-row .body b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-row .body .loc { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 3px; }
.proj-row .body .loc svg.i { width: 13px; height: 13px; }
.proj-row .body > svg.i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.proj-row:hover .body { border-color: #b8c8e6; background: #fafcff; }
.proj-row .pill { align-self: flex-start; margin-top: 4px; }

/* お知らせ */
.notice-list a { display: grid; grid-template-columns: 8px 82px 1fr 14px; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 12.5px; }
.notice-list a:first-child { border-top: 0; }
.notice-list a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.notice-list a .dot.red { background: var(--red); }
.notice-list a .dot.read { background: #c9cfd9; }
.notice-list a span:nth-child(3) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-list a svg.i { width: 14px; height: 14px; color: var(--ink-3); }
.notice-list a:hover span:nth-child(3) { color: var(--blue); }

/* スケジュール */
.cal-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.cal-head b { font-size: 18px; margin-right: auto; }
.cal-head .icon-btn { padding: 4px; border: 1px solid var(--line); }
.cal-head .icon-btn svg.i { width: 16px; height: 16px; }
.cal-list { border-left: 2px solid var(--navy); }
.cal-item { display: grid; grid-template-columns: 78px 44px minmax(0, 1fr); gap: 6px; align-items: center; padding: 8px 0 8px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cal-item.deadline { box-shadow: inset 2px 0 0 var(--red); margin-left: -2px; padding-left: 14px; }
.cal-item .when { font-weight: 600; }
.cal-item .time { color: var(--ink-3); }
.cal-item .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item .flag { background: var(--red); color: #fff; font-size: 10.5px; padding: 0 5px; border-radius: 2px; margin-right: 6px; font-weight: 700; }
.cal-month { font-weight: 700; color: var(--navy); margin: 18px 0 6px; font-size: 15px; }

/* 資料カード */
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seg button { flex: 1 1 0; min-width: 64px; padding: 6px 10px; border: 1px solid var(--line); background: #f4f6fa; border-radius: 4px; color: var(--ink-2); font-size: 12.5px; }
.seg button.on { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.a-docs .doc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.doc { color: inherit; display: block; min-width: 0; }
.doc .thumb { position: relative; aspect-ratio: 1.12; border-radius: 4px; }
.doc .ft { position: absolute; left: 6px; bottom: 6px; }
.doc b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.doc:hover b { color: var(--blue); }
.ver-badge { position: absolute; top: 6px; right: 6px; background: rgba(20, 37, 74, .85); color: #fff; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 3px; }
.ft { display: inline-grid; place-items: center; width: 30px; height: 36px; border-radius: 3px; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .02em; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); padding-top: 10px; }
.ft-pdf { background: #e2412f; } .ft-jpg, .ft-jpeg, .ft-png { background: #2c6fd6; } .ft-dwg, .ft-jww { background: #1d3361; }
.ft-xlsx { background: #1f8a4c; } .ft-docx { background: #2a5bb8; } .ft-zip { background: #7a6a3e; } .ft-other { background: #8a93a3; }

/* 提出物リスト */
.sub-list .row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sub-list .row:first-child { border-top: 0; }
.sub-list .row b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-list .row small { font-size: 11px; color: var(--ink-3); }
.sub-list .row .acts { display: flex; gap: 6px; align-items: center; }

.drop { border: 1.5px dashed #93a5c6; border-radius: 8px; background: #f8faff; padding: 18px 12px; text-align: center; color: var(--ink-2); font-size: 12.5px; line-height: 1.7; transition: background .15s, border-color .15s; cursor: pointer; }
.drop .lead { color: var(--blue); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; }
.drop .lead svg.i { width: 22px; height: 22px; }
.drop.over { background: var(--blue-soft); border-color: var(--blue); }
.drop .file-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2px 6px 2px 10px; font-size: 12px; }
.chip button { border: 0; background: none; color: var(--ink-3); padding: 0 2px; }

/* メッセージ */
.msg-mini .row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.msg-mini .row:first-child { border-top: 0; }
.msg-mini .who { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.msg-mini .who b { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.msg-mini .who small { color: var(--ink-3); white-space: nowrap; }
.msg-mini p { font-size: 12px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-mini .avatar { width: 38px; height: 38px; font-size: 13px; }

.chat { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px 14px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-start; max-width: 82%; }
.bubble-row.me { margin-left: auto; flex-direction: row-reverse; }
.bubble-row .meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 3px; }
.bubble-row.me .meta { text-align: right; }
.bubble { background: #f2f4f8; border-radius: 4px 12px 12px 12px; padding: 10px 14px; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.bubble-row.me .bubble { background: var(--blue-soft); border-radius: 12px 4px 12px 12px; }
.bubble .att { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--blue); }
.bubble .att .ft { width: 20px; height: 24px; font-size: 6px; padding-top: 7px; }
.composer { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.composer textarea { flex: 1; min-height: 44px; max-height: 180px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
.composer textarea:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #b9cdf2; border-color: var(--blue); }
.composer .atts { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.thread-list a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 8px; }
.thread-list a.on, .thread-list a:hover { background: var(--blue-soft); }
.thread-list a b { display: block; font-size: 13.5px; }
.thread-list a small { display: block; font-size: 11.5px; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 作業指示詳細 */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
.msg-grid { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.detail-grid > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.td-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.td-head .no { font-size: 15px; font-weight: 700; color: var(--navy); }
.td-head h2 { font-size: 23px; width: 100%; color: var(--ink-1); }
.td-head .proj { color: var(--ink-2); font-size: 14px; }
.td-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.td-meta small { display: block; font-size: 11.5px; color: var(--ink-3); }
.td-meta b { font-size: 15px; }
.td-meta b.due { color: var(--red); }
.sec-title { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.instr { margin: 0; padding-left: 0; list-style: none; }
.instr li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; font-size: 14.5px; }
.instr li:first-child { border-top: 0; }
.instr li::before { content: ""; position: absolute; left: 6px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.file-line { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.file-line:first-child { border-top: 0; }
.file-line b { font-size: 13.5px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-line small { font-size: 11.5px; color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 180px; }

/* ステータスの段階表示 */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 4px 0 2px; counter-reset: s; }
.steps li { list-style: none; text-align: center; font-size: 11.5px; color: var(--ink-3); position: relative; padding-top: 28px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #dfe4ec; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #dfe4ec; }
.steps li:first-child::after { display: none; }
.steps li.past::before, .steps li.past::after, .steps li.now::after { background: var(--navy-3); }
.steps li.now::before { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.steps li.now { color: var(--blue); font-weight: 700; }
.steps li.past { color: var(--ink-2); }
.steps li.now.revise::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.steps li.now.revise { color: var(--red); }
.steps li.now.done::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.steps li.now.done { color: var(--green); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 74px 14px minmax(0, 1fr); gap: 8px; position: relative; padding-bottom: 14px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 88px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .when { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--navy-3); margin-top: 4px; z-index: 1; }
.timeline .dot.hk { border-color: var(--blue); background: var(--blue); }
.timeline li:last-child .dot { box-shadow: 0 0 0 3px var(--blue-soft); }
.timeline b { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; }

.hk-panel { border: 1px dashed var(--navy-3); background: #f6f8fd; }
.hk-panel .note { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.hk-panel textarea { width: 100%; min-height: 60px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; margin-bottom: 10px; }

/* タブ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 16px; color: var(--ink-2); border-bottom: 2.5px solid transparent; white-space: nowrap; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--navy); border-color: var(--navy); font-weight: 700; }
.tabs a .cnt { background: var(--gray-soft); border-radius: 9px; font-size: 11px; padding: 0 7px; }

.proj-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: center; }
.proj-hero .thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
.proj-hero h2 { font-size: 22px; color: var(--ink-1); margin: 6px 0 4px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; margin-top: 12px; }
.kv small { display: block; font-size: 11.5px; color: var(--ink-3); }
.kv b { font-size: 14px; font-weight: 600; }

.proj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.proj-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; transition: transform .15s, box-shadow .15s; }
.proj-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 37, 74, .1); }
.proj-card .thumb { border: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.proj-card .body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.proj-card .body b { font-size: 16px; }
.proj-card .counts { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.proj-card .counts em { font-style: normal; font-weight: 700; color: var(--red); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #f7f9fd; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters a { padding: 6px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.filters a.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink-1); padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.versions { list-style: none; padding: 0; margin: 8px 0 0; }
.versions li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.versions li:nth-child(odd) { background: #f7f8fb; }
.versions li .v { font-weight: 700; color: var(--navy); }
.versions li .newest { background: var(--blue); color: #fff; font-size: 10.5px; padding: 0 6px; border-radius: 3px; margin-left: 6px; font-weight: 700; }

.empty { text-align: center; color: var(--ink-3); padding: 26px 10px; font-size: 13px; }

/* モーダル・トースト */
.modal-bg { position: fixed; inset: 0; background: rgba(12, 22, 44, .45); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 8px; font-size: 13.5px; z-index: 90; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }
.toast.err { background: var(--red); }

/* ログイン */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .visual { background: linear-gradient(180deg, rgba(10, 22, 48, .35), rgba(10, 22, 48, .85)), var(--hero-img, var(--navy)) center / cover; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; }
.login .visual h1 { font-size: 30px; letter-spacing: .05em; }
.login .visual p { opacity: .9; margin-top: 8px; }
.login .pane { display: grid; place-items: center; padding: 32px 20px; background: #fff; }
.login form { width: min(380px, 100%); }
.login .brand { width: auto; padding: 0; margin-bottom: 28px; }
.login h2 { font-size: 20px; color: var(--navy); margin-bottom: 18px; }
.login .err { color: var(--red); font-size: 13px; min-height: 1.4em; }
.demo-accounts { margin-top: 24px; font-size: 12px; color: var(--ink-2); background: #f6f8fb; border-radius: 8px; padding: 12px 14px; }
.demo-accounts button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; color: var(--blue); font-size: 12.5px; }

/* 下部ナビ（スマホ） */
.bottom-nav { display: none; }

/* ───────────── レスポンシブ ───────────── */
@media (max-width: 1280px) {
  .dash { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas:
    "hero  hero" "stats notice" "tasks projs" "tasks sched" "docs  docs" "subs2 msgs"; }
  .dash > .a-subs { grid-area: subs2; }
}
@media (max-width: 960px) {
  :root { --side-w: 0px; --header-h: 56px; }
  .side { display: none; }
  .brand { width: auto; padding-left: 14px; }
  .brand b { font-size: 14px; } .brand small { font-size: 8px; letter-spacing: .04em; }
  .brand svg { width: 32px; height: 24px; }
  .h-title span, .h-help, .user-chip small { display: none; }
  .h-title h1 { font-size: 15px; }
  .user-chip { padding-left: 8px; } .user-chip b { display: none; }
  .header { gap: 10px; padding-right: 8px; }
  .main { padding: calc(var(--header-h) + 8px) 12px calc(76px + env(safe-area-inset-bottom)); }
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "stats" "tasks" "notice" "projs" "sched" "subs2" "msgs" "docs"; }
  .hero { padding: 20px; min-height: 150px; }
  .hero h2 { font-size: 19px; } .hero small { font-size: 14px; } .hero p { font-size: 12px; }
  .stat .n { font-size: 28px; }
  .task-row { grid-template-columns: 76px minmax(0, 1fr); }
  .task-row .t-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .detail-grid, .msg-grid { grid-template-columns: minmax(0, 1fr); }
  .proj-hero { grid-template-columns: minmax(0, 1fr); }
  .proj-hero .thumb { aspect-ratio: 16 / 9; }
  .a-docs .doc-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login .visual { min-height: 200px; padding: 24px; }
  .login .visual h1 { font-size: 22px; }
  .form .two { grid-template-columns: minmax(0, 1fr); }
  .popover { position: fixed; top: calc(var(--header-h) + 4px); left: 12px; right: 12px; width: auto; }
  .bubble-row { max-width: 94%; }
  .table .hide-sp { display: none; }
  .steps li { font-size: 10px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 40; box-shadow: 0 -4px 16px rgba(20, 37, 74, .06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-3); position: relative; padding: 2px 0; }
  .bottom-nav a svg.i { width: 23px; height: 23px; }
  .bottom-nav a.on { color: var(--navy); font-weight: 700; }
  .bottom-nav .badge { position: absolute; top: -3px; left: calc(50% + 6px); min-width: 17px; height: 17px; font-size: 10px; }
}
@media (max-width: 600px) { .h-title { display: none; } }
@media print { .side, .header, .bottom-nav { display: none; } .main { margin: 0; padding: 0; } }

/* 会社ロゴ（ティール #36AAB5） */
.brand .logo-mark { height: 42px; width: auto; display: block; flex: none; }
.brand b, .re .brand b, .customer .brand b { color: #2f9aa5 !important; letter-spacing: .1em; }
.brand small, .re .brand small { color: #2f9aa5 !important; }
.logo-full { width: 150px; height: auto; display: block; }
@media (max-width: 960px) { .brand .logo-mark { height: 34px; } }

/* ───── 取引会社の見積実績・概算（不動産業務ページ #/quotes と 管理画面のお客様ごとの概算で共用） ───── */
.qt-in-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.qt-res { margin-top: 12px; }
.qt-total { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #f3f7fd; border: 1px solid #d6e3f7; margin-bottom: 10px; }
.qt-total small { color: var(--ink-2); font-size: 12px; }
.qt-total b { font-size: 26px; color: #15243f; }
.qt-total .muted { font-size: 12px; }
.qt-lines td, .qt-lines th, .qt-table td, .qt-table th { font-size: 12.5px; }
.qt-lines .r, .qt-table .r, .qt .table .r { text-align: right; white-space: nowrap; }
.qt-lines tr.off td { color: var(--ink-3); }
.qt-lines tr.off td:nth-child(3) { text-decoration: line-through; }
.qt-lines tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
.qt-table tr.off td { color: var(--ink-3); }
.qt-sim { display: grid; gap: 6px; }
.qt-sim a { display: grid; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: inherit; }
.qt-sim small { color: var(--ink-2); }
.qt-amts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.qt-check { font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qt-drop { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.qt-warn { background: #fff7e6; border: 1px solid #f3d38a; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; }
.qt-warn ul { margin: 4px 0 0 18px; padding: 0; }
.qt-read { font-size: 12.5px; color: var(--ink-2); margin: 6px 0; }
.gk { margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.gk summary { cursor: pointer; font-size: 13px; }
.gk-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 10px 0; }
.gk-in label { display: grid; gap: 2px; font-size: 11.5px; color: var(--ink-2); }
.gk-in span { display: flex; gap: 4px; align-items: center; }
.gk-in input { width: 100%; min-width: 0; font: inherit; font-size: 13px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; }
.gk-in small { color: var(--ink-3); white-space: nowrap; }
.qt-in-row label, .qt-in-row input, .qt-in-row select { min-width: 0; max-width: 100%; }
.qt-in-row input[type="file"] { width: 100%; font-size: 12px; }

/* ───── 概算資金計画書（app/js/quote_sheet.js）：管理画面で全画面表示→そのまま A4 縦 1 枚で印刷。画面も A4 縦と同じ形（左①②③／右④⑤⑥＋総合計） ───── */
body.qs-open { overflow: hidden; }
.qs-overlay { position: fixed; inset: 0; z-index: 900; background: #e9edf3; overflow: auto; padding: 0 12px 24px; }
.qs-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border-bottom: 1px solid var(--line); margin: 0 -12px 12px; padding: 10px 16px; }
.qs-bar .muted { font-size: 12px; }
.qs-sheet { --qs-navy: #1f3864; background: #fff; width: 860px; max-width: 100%; margin: 0 auto; padding: 26px 30px; color: #111; font-size: 12px; line-height: 1.3; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.qs-head { display: flex; align-items: center; gap: 16px; background: var(--qs-navy); color: #fff; padding: 10px 18px; }
.qs-head h1 { margin: 0 auto 0 0; font-size: 26px; letter-spacing: .1em; }
.qs-co { display: grid; gap: 2px; text-align: right; font-size: 11px; }
.qs-co b { font-size: 15px; }
.qs-co .qs-i { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.qs-top { display: grid; grid-template-columns: 1.15fr 1fr .9fr; gap: 16px; align-items: end; margin: 14px 0 10px; }
.qs-cust { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid #333; }
.qs-cust .qs-name { font-size: 22px; text-align: center; border: 0; }
.qs-site { display: grid; border-bottom: 1px solid #333; }
.qs-site .qs-i { border: 0; font-size: 14px; }
.qs-size { border-collapse: collapse; width: 100%; }
.qs-size td { border: 1px solid #333; padding: 1px 5px; font-size: 11px; white-space: nowrap; }
.qs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.qs-t { width: 100%; border-collapse: collapse; margin-bottom: 12px; table-layout: fixed; }
.qs-t th { background: var(--qs-navy); color: #fff; text-align: left; padding: 3px 6px; font-size: 12px; }
.qs-t td { border-bottom: 1px solid #555; border-left: 1px solid #555; border-right: 1px solid #555; padding: 0 4px; height: 22px; white-space: nowrap; overflow: hidden; }
.qs-t .qs-c1 { width: auto; } .qs-t .qs-c2 { width: 28px; } .qs-t .qs-c3 { width: 132px; }
.qs-t .qs-ap { width: 28px; text-align: center; padding: 0; }
.qs-t .qs-amt { white-space: nowrap; text-align: right; }
.qs-t .qs-amt span { margin-left: 2px; font-size: 10px; }
.qs-t .qs-amt .qs-i { width: calc(100% - 16px); }
.qs-t .qs-sub td { text-align: right; }
.qs-t .qs-sum td { background: #dce3f1; font-weight: 700; text-align: center; }
.qs-t .qs-sum .qs-amt { text-align: right; font-size: 13px; }
.qs-loan .qs-t td:first-child { width: auto; }
.qs-loan .qs-t th { text-align: center; font-size: 10.5px; padding: 3px 2px; }
.qs-loan .qs-t td { padding: 0 3px; overflow: visible; } .qs-loan .qs-t .qs-w4 { width: 3em; }
.qs-loan .qs-t th:nth-child(1), .qs-loan .qs-t td:nth-child(1) { width: 14%; }
.qs-loan .qs-t th:nth-child(2), .qs-loan .qs-t td:nth-child(2) { width: 19%; }
.qs-loan .qs-t th:nth-child(4), .qs-loan .qs-t td:nth-child(4), .qs-loan .qs-t th:nth-child(5), .qs-loan .qs-t td:nth-child(5) { width: 11%; }
.qs-loan .qs-t th:nth-child(6), .qs-loan .qs-t td:nth-child(6) { width: 17%; }
.qs-i { font: inherit; color: inherit; width: 100%; border: 1px dashed transparent; background: transparent; padding: 1px 2px; border-radius: 3px; }
.qs-i:hover, .qs-i:focus { border-color: #9fb3d8; background: #f7faff; outline: none; }
.qs-i.r { text-align: right; }
.qs-w4 { width: 4.5em; } .qs-w8 { width: 8em; }
textarea.qs-i { border: 1px dashed #c8d2e3; resize: vertical; }
.qs-apb { border: 0; background: transparent; font: inherit; cursor: pointer; width: 100%; color: inherit; }
.qs-empty .qs-i::placeholder { color: transparent; }
.qs-big { border: 1px solid #333; }
.qs-bh { background: var(--qs-navy); color: #fff; font-weight: 700; padding: 3px 8px; font-size: 12px; }
.qs-bv { text-align: right; font-size: 32px; padding: 4px 10px; }
.qs-bv span { font-size: 13px; margin-left: 4px; }
.qs-bv.sm { font-size: 22px; } .qs-bv.sm .qs-i { width: 70%; font-size: 22px; }
.qs-bv.red { color: #e00; }
.qs-bottom { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; margin-top: 4px; }
.qs-memo { display: grid; gap: 4px; }
.qs-inc { margin: 4px 0 0; }
.qs-note { font-size: 10.5px; color: #444; margin: 8px 0 0; }
/* お客様マイページの表示（読むだけ）：入力欄を文字だけに見せる */
.qs-ro .qs-i, .qs-ro textarea.qs-i { pointer-events: none; border-color: transparent !important; background: transparent !important; }
.qs-ro .qs-apb { pointer-events: none; }
.qs-ro .qs-empty .qs-i::placeholder, .qs-ro .qs-contact .qs-i::placeholder { color: transparent; }
.qs-betto td { color: #555; }
.qs-bt { font-weight: 700; letter-spacing: .2em; padding-right: 6px; }
.qs-note-b { font-size: 11px; color: #111; font-weight: 700; }
.qs-rate { font-size: 9.5px; color: #555; white-space: nowrap; }
.qs-i.qs-l1 { font-size: .92em; } .qs-i.qs-l2 { font-size: .84em; } .qs-i.qs-l3 { font-size: .74em; }

.qs-custbox { display: grid; gap: 4px; }
.qs-contact { border-collapse: collapse; width: 100%; font-size: 10.5px; }
.qs-contact td { padding: 0 4px; border-bottom: 1px dotted #999; line-height: 1.25; }
.qs-contact .qs-i { padding: 0 2px; }
.qs-contact td:first-child { width: 4.5em; color: #333; white-space: nowrap; }
@media screen and (max-width: 720px) { .qs-sheet { width: auto; padding: 12px; } .qs-grid, .qs-top, .qs-bottom { grid-template-columns: minmax(0, 1fr); } .qs-head { flex-wrap: wrap; } .qs-head h1 { font-size: 22px; } .qs-co { text-align: left; } }
/* 印刷：A4 縦 1 枚に収める（mm 単位。zoom は使わない。Safari は @page size を見ないので既定の縦で同じ形になる） */
@media print {
  /* 用紙（A4 縦）は quote_sheet.js が計画書の中に <style> で入れる（不動産業務ページの横向き @page（re.css）より後に読まれて勝つため） */
  body.qs-open > *:not(.qs-overlay) { display: none !important; }
  body.qs-open .qs-overlay { position: static; padding: 0; margin: 0; background: #fff; overflow: visible; }
  body.qs-open .qs-bar { display: none; }
  html:has(body.qs-open), body.qs-open { background: #fff !important; margin: 0; }
  .qs-sheet { width: 194mm; max-width: none; max-height: 281mm; overflow: hidden; box-shadow: none; padding: 0; margin: 0; font-size: 8.5pt; line-height: 1.25; break-after: avoid; }
  .qs-sheet, .qs-head, .qs-t th, .qs-bh, .qs-t .qs-sum td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qs-i, textarea.qs-i { border-color: transparent !important; background: transparent !important; padding: 0 1px; }
  .qs-contact .qs-i::placeholder { color: transparent !important; }
  .qs-head { padding: 2.2mm 4mm; gap: 4mm; }
  .qs-head h1 { font-size: 16pt; }
  .qs-co { font-size: 7.5pt; gap: 0; } .qs-co b { font-size: 10pt; }
  .qs-top { margin: 3mm 0 2.5mm; gap: 4mm; }
  .qs-cust .qs-name { font-size: 13pt; padding: 0; }
  .qs-contact { font-size: 7.5pt; } .qs-contact td { line-height: 1.25; }
  .qs-site { font-size: 7pt; } .qs-site .qs-i { font-size: 10pt; }
  .qs-size td { font-size: 7.5pt; padding: 0 1.2mm; height: 4.6mm; }
  .qs-grid { gap: 4mm; }
  .qs-t { margin-bottom: 2.5mm; }
  .qs-t th { font-size: 8.5pt; padding: .6mm 1.5mm; }
  .qs-t td { height: 5.1mm; padding: 0 1.2mm; }
  .qs-t .qs-c2 { width: 6mm; } .qs-t .qs-ap { width: 6mm; } .qs-t .qs-c3 { width: 31mm; }
  .qs-rate { font-size: 6.5pt; }
  .qs-t .qs-amt span { font-size: 7pt; }
  .qs-t .qs-sum .qs-amt { font-size: 9.5pt; }
  .qs-bt { padding-right: 1mm; }
  .qs-bh { font-size: 8.5pt; padding: .7mm 2mm; }
  .qs-bv { font-size: 21pt; padding: .5mm 2mm; line-height: 1.2; } .qs-bv span { font-size: 9pt; }
  .qs-bv.sm { font-size: 13pt; } .qs-bv.sm .qs-i { font-size: 13pt; }
  .qs-bottom { gap: 4mm; margin-top: 1mm; }
  .qs-memo { gap: 1mm; } .qs-memo b { font-size: 8.5pt; }
  textarea.qs-i { height: 18mm; resize: none; border: 1px solid #999 !important; }
  .qs-loan b { font-size: 8.5pt; }
  .qs-loan .qs-t { margin-bottom: 1mm; } .qs-loan .qs-t th { font-size: 7.5pt; } .qs-loan .qs-t td { height: 5.2mm; padding: 0 .8mm; } .qs-loan .qs-t .qs-w4 { width: 2.6em; }
  .qs-inc { margin: 0; }
  .qs-note { font-size: 7.2pt; margin: 1.5mm 0 0; line-height: 1.35; } .qs-note-b { font-size: 7.5pt; }
}
