:root{--ink:#1d2a3c;--muted:#69788c;--line:#e5eaf1;--blue:#385cce;--bg:#f4f6fa;--sidebar:#172438}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.7 'Yu Gothic UI','Meiryo',sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:5px;border:1px solid transparent;border-radius:7px;background:var(--blue);color:#fff;font:inherit;font-weight:600;padding:10px 18px;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button:hover{filter:brightness(.96);text-decoration:none}button:disabled{opacity:.5;cursor:wait}.secondary{background:#fff;border-color:#d8dfeb;color:#43526a}.small{padding:5px 11px;font-size:12px}.wide{width:100%}.sidebar{position:fixed;inset:0 auto 0 0;width:218px;background:var(--sidebar);color:#c0cce0;padding:30px 18px;z-index:5}.brand{display:flex;gap:10px;align-items:center;color:white;font-size:26px;font-weight:700;padding:0 7px}.brand span{font-size:20px}.brand small{display:block;font-size:8px;letter-spacing:1.5px;color:#9aaec9}.nav-caption{font-size:11px;letter-spacing:1px;color:#8096b5;margin:45px 14px 10px}nav a{display:block;padding:12px;color:#b8c7dc;margin:5px 0;border-radius:7px;font-weight:600}nav a.active{background:#304462;color:#fff;border-left:3px solid #81a0ff}nav a:hover{background:#263954;text-decoration:none}.sidebar-bottom{position:absolute;bottom:26px;left:30px;font-size:12px}.sidebar-bottom small{color:#93a3ba}.online-dot{display:inline-block;width:7px;height:7px;background:#65c4a2;border-radius:50%;margin-right:5px}.logout{font-size:12px;padding:4px 0;background:none;color:#b8c7dc}main{margin-left:218px;min-height:100vh}.topbar{height:62px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 34px;font-size:12px;color:var(--muted)}.environment{border:1px solid var(--line);border-radius:20px;padding:3px 12px}.page{padding:30px 34px;max-width:1800px;margin:auto}h1{font-size:27px;line-height:1.4;margin:5px 0 7px;letter-spacing:.5px}h2{font-size:17px;margin:0 0 13px}p{margin:8px 0 16px}.muted,small{color:var(--muted)}small{font-size:11px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#7285a5;font-weight:700}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.heading p{margin:0}.card{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 5px #22304b03}.monthbar{padding:16px 20px;display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-bottom:22px}.inline{display:flex;align-items:center;gap:10px}.monthbar label{font-weight:600}.month-label{margin-left:auto;font-weight:600}.segmented{display:flex;background:#f3f5f9;border-radius:6px;padding:3px;gap:3px}.segmented a{padding:5px 10px;font-size:12px;color:var(--muted)}.segmented .selected{background:white;color:var(--blue);border-radius:4px;box-shadow:0 1px 3px #20305016}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.metric{background:#fff;border:1px solid var(--line);border-radius:10px;padding:21px 24px;display:flex;flex-direction:column}.metric>span{color:#5d6b81;font-size:12px}.metric strong{font-size:30px;font-weight:700;letter-spacing:.5px;line-height:1.6}.metric small{font-size:11px}.metric.highlight{border-top:3px solid #6281df;padding-top:19px}.metric.highlight strong{color:var(--blue)}input,select,textarea{font:inherit;color:var(--ink);border:1px solid #cfd8e5;border-radius:6px;padding:9px 10px;background:white;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #c8d5fc;outline-offset:1px}input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue);flex-shrink:0}input[type=month],input[type=date]{min-width:145px}textarea{resize:vertical}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px}.filters>input[name=q]{flex:1;min-width:210px}.check{display:flex;align-items:center;gap:7px;font-size:12px;white-space:normal}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}thead{background:#f8f9fc;color:#6b7a90}th{font-size:11px;font-weight:600;white-space:nowrap}td,th{padding:15px 17px;border-bottom:1px solid #edf0f5;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcff}.number{text-align:right}.money{font-weight:600;white-space:nowrap}.supplier{font-weight:600;font-size:13px;white-space:pre-line}.filename{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin-top:3px}.badge{display:inline-block;padding:3px 9px;border-radius:5px;font-size:11px;white-space:nowrap;font-weight:500}.green{background:#e7f5ef;color:#277858}.amber{background:#fff4dd;color:#996619}.gray{background:#eef1f6;color:#6c7a8f}.payment-state small{display:block}.list-foot{border-top:1px solid var(--line);font-size:11px;padding:13px 18px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty h2{color:#40516b;font-size:17px}.empty p{font-size:12px}.empty-icon{display:block;font-size:35px;line-height:1.5;color:#8599c5;margin-bottom:10px}dialog{border:0;border-radius:12px;padding:28px;max-width:620px;width:calc(100% - 40px);box-shadow:0 20px 90px #10203940;color:var(--ink)}dialog::backdrop{background:#13233a70;backdrop-filter:blur(2px)}dialog .heading{margin-bottom:10px}.icon-button{padding:2px 10px;font-size:24px;background:transparent;color:#75839a}.dropzone{border:2px dashed #b9c9e9;border-radius:9px;display:flex;flex-direction:column;align-items:center;padding:28px 12px;cursor:pointer;background:#f8faff;gap:4px}.dropzone.over{background:#e9efff}.dropzone span{color:var(--muted);font-size:12px}.dropzone .empty-icon{font-size:35px;color:#7892c7}.dropzone input{font-size:12px;margin-top:15px;width:100%}.field{margin-bottom:16px}.field>label{display:block;font-weight:600;font-size:12px;margin-bottom:6px}.field>input:not([type=checkbox]),.field>select,.field>textarea{width:100%}.field small{display:block;margin-top:4px}.errorlist{color:#ad3444;font-size:12px;padding-left:18px}.notice{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:12px;border:1px solid #dce7fa;background:#eef4ff;color:#385a8a}.notice.error{background:#fff0f1;color:#a03442;border-color:#f3d3d8}.notice.success{background:#edf8f1;color:#287653;border-color:#d5ebdf}.notice.warning{background:#fff6e4;border-color:#f4dfb8;color:#8d672c}.auth{max-width:510px;padding:35px;margin:45px auto}.auth form>div,.narrow form>div,dialog form>div:not(.heading){margin-bottom:16px}.auth form>div>label,.narrow form>div>label,dialog form>div>label{display:block;font-weight:600;margin-bottom:6px}.auth input,.narrow input,.narrow select,.narrow textarea,dialog form>div>input:not([type=checkbox]),dialog form>div>select,dialog form>div>textarea{width:100%}.helptext{font-size:11px;color:var(--muted)}.auth button{margin-top:15px;width:100%}.back{display:inline-block;font-size:12px;margin-bottom:20px}.detail-layout{display:grid;grid-template-columns:minmax(420px,1.1fr) minmax(360px,1fr);align-items:start;gap:22px}.pdf-panel{position:sticky;top:18px;overflow:hidden}.pdf-toolbar{padding:13px 15px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:12px}.pdf-panel iframe{width:100%;height:76vh;border:0;background:#5c6066;display:block}.pdf-caption{display:block;padding:10px 14px;overflow-wrap:anywhere}.edit-card{padding:23px;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.edit-card small{display:block}.payment-check{display:flex;gap:10px;align-items:center;font-weight:600;background:#eff3fd;border-radius:7px;padding:12px;margin-bottom:12px}.savebar{display:flex;gap:10px;margin-bottom:25px}.actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}summary{cursor:pointer;font-size:12px}pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:650px;max-height:260px;overflow:auto;background:#f5f7fa;padding:10px}.narrow{max-width:650px}footer{font-size:11px;color:#8a96a8;padding:5px 34px 24px}#id_expectation_ids label{display:flex;gap:7px;align-items:flex-start;font-size:12px;margin:9px 0}#id_expectation_ids{max-height:230px;overflow:auto}@media(min-width:1600px){.page{padding:35px 45px}}@media(max-width:1150px){.sidebar{width:185px}main{margin-left:185px}.page{padding:25px 20px}.detail-layout{grid-template-columns:1fr}.pdf-panel{position:relative;top:0}.pdf-panel iframe{height:65vh}.metrics{gap:10px}.metric{padding:16px}.metric strong{font-size:25px}.list-foot{display:block}.month-label{margin-left:0}}@media(max-width:700px){.sidebar{position:relative;width:100%;padding:15px}.brand{font-size:22px}.sidebar nav{display:flex;gap:5px}.sidebar nav a{font-size:11px;padding:6px}.nav-caption,.sidebar-bottom{display:none}main{margin-left:0}.topbar{height:45px}.page{padding:20px 12px}.metrics{grid-template-columns:1fr}.heading{gap:10px}h1{font-size:23px}.form-grid{grid-template-columns:1fr}.detail-layout{display:block}.pdf-panel{margin-bottom:20px}footer{padding:10px 15px}}

.document-tabs{display:flex;gap:20px;margin:0 0 18px;font-size:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:18px}.section-heading h2{margin:0}.actions.left{justify-content:flex-start;margin:0 0 14px}.analysis-apply{margin:18px 0}.cancel-run{margin-bottom:20px}form>div>label{font-weight:600}.edit-card>form>div{margin-bottom:12px}.edit-card>form>div>input:not([type=checkbox]),.edit-card>details>form>div>input:not([type=checkbox]){max-width:600px;width:100%;display:block}

.sidebar nav a{padding:9px 11px;font-size:13px}.sidebar .nav-caption{margin-top:30px}.sidebar-bottom{bottom:18px}.edit-card small{display:block}.master-action{margin:10px 0}input[type=checkbox]{vertical-align:middle}.narrow select[multiple]{min-height:180px}a.supplier{white-space:pre-line}

/* 納品報告の確認が必要な案件を見つけやすく表示する。 */
#remaining-checks ~ details{border:2px solid #b42318;border-radius:8px;background:#fff4f2;margin:20px 0;padding:14px 18px;scroll-margin-top:24px}
#remaining-checks ~ details > summary{color:#b42318;font-size:16px;font-weight:700;line-height:1.7;padding:4px 0}
#remaining-checks ~ details > summary:hover{text-decoration:underline}
#remaining-checks ~ details > summary:focus-visible{outline:3px solid #b42318;outline-offset:5px;border-radius:3px}

/* 請求内容を折り返して全体を確認しやすくする。 */
#invoice-lines table{table-layout:fixed;min-width:980px;width:100%}
#invoice-lines th:first-child{width:48%}
#invoice-lines th:nth-child(2){width:7%}
#invoice-lines th:nth-child(3){width:10%}
#invoice-lines th:nth-child(4){width:12%}
#invoice-lines th:nth-child(5){width:10%}
#invoice-lines th:nth-child(6){width:13%}
#invoice-lines td{vertical-align:top;white-space:normal}
#invoice-lines input:not([type=checkbox]):not([type=hidden]),#invoice-lines select{width:100%;min-width:0}
#invoice-lines textarea.invoice-line-description{display:block;width:100%;min-height:96px;resize:vertical;font:inherit;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:hidden;padding:10px}

#invoice-lines tbody{counter-reset:invoice-detail-row}
#invoice-lines tbody tr{counter-increment:invoice-detail-row}
#invoice-lines tbody td:first-child::before{content:counter(invoice-detail-row) "行目";display:block;margin-bottom:5px;color:#69788c;font-size:12px;font-weight:600}

/* Compact company controls and full-row company colors. */
.board-table{min-width:1000px!important}
.board-table th.company-keypoint,.board-table th.company-buzzphoto,.board-table td.company-keypoint,.board-table td.company-buzzphoto{width:56px!important;min-width:56px!important;max-width:56px!important;padding:10px 4px!important;text-align:center;font-size:11px;white-space:normal;overflow-wrap:anywhere}
.board-table .board-check.company-keypoint label,.board-table .board-check.company-buzzphoto label{padding:2px!important}
.board-table .company-state{display:none!important}
.board-table .board-row:has(.company-keypoint input:checked)>td{background:#f2faf0!important}
.board-table .board-row:has(.company-buzzphoto input:checked)>td{background:#f0f9fd!important}
.board-table .board-row:has(.company-keypoint input:checked):has(.company-buzzphoto input:checked){background:linear-gradient(90deg,#f2faf0 0%,#f2faf0 45%,#f0f9fd 55%,#f0f9fd 100%)!important}
.board-table .board-row:has(.company-keypoint input:checked):has(.company-buzzphoto input:checked)>td{background:transparent!important}

.board-table .company-keypoint input{accent-color:#5b8d63}.board-table .company-buzzphoto input{accent-color:#67a9be}
#board-keypoint{color:#507e55!important}#board-buzzphoto{color:#45869c!important}

/* Company selection uses the row tint; no colored underline. */
.board-table td.company-keypoint,.board-table td.company-buzzphoto{box-shadow:none!important}
