/* Adopted REGULATION L01-L04/V01-V04/I05/C05-C06. Shared rules are defined once. */:root{--ink:#172f41;--muted:#536673;--line:#bdcbd2;--paper:#fff;--bg:#f3f6f7;--navy:#173345;--teal:#176f70;--pale:#e8f3f0;--danger:#a12d35;--focus:#8a531b;font:87.5%/1.55 'Yu Gothic UI',Meiryo,sans-serif;color:var(--ink);background:var(--bg)}body[data-ui-design]{--ui-main-inline-padding:1.15rem;margin:0;color:var(--ink);background:var(--bg);font:inherit;overflow-wrap:anywhere}body[data-ui-design] *{box-sizing:border-box}body[data-ui-design] :is(h1,h2,h3):where(:not(.bnnfa-view, .bnnfa-view *)){line-height:1.4;overflow-wrap:anywhere}body[data-ui-design] h1:where(:not(.bnnfa-view, .bnnfa-view *)){font-size:1.45rem;margin:0 0 .55rem}body[data-ui-design] h2:where(:not(.bnnfa-view, .bnnfa-view *)){font-size:1.15rem;margin:0 0 .45rem}body[data-ui-design] h3:where(:not(.bnnfa-view, .bnnfa-view *)){font-size:1rem;margin:0 0 .35rem}body[data-ui-design] p:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){margin:.35rem 0 .65rem}body[data-ui-design] :is(main,.layout){min-width:0}body[data-ui-design]>main,body[data-ui-design] .layout main{width:100%;max-width:105rem;margin:auto;padding:1rem var(--ui-main-inline-padding) 2.5rem;min-height:0}body[data-ui-design] .layout{display:block;max-width:105rem;margin:auto;min-height:0}body[data-ui-design] :is(.card,.workflow-panel,.screen-detail,.report-panel,.review-section){padding:.8rem 1rem;margin-bottom:.8rem;border:1px solid var(--line);border-radius:.3rem;box-shadow:none;min-width:0;background:var(--paper)}body[data-ui-design] :is(.actions,.workflow-actions,.registration-actions,.review-actions,.business-navigation){display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.45rem}body[data-ui-design] :is(button,input,textarea,select):where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *, .site-header *)){font:inherit;max-width:100%}body[data-ui-design] button:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *, .site-header *)){margin:.2rem 0;padding:.35rem .7rem;min-height:2rem;border-radius:.2rem}body[data-ui-design] :is(input,select,textarea):where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){padding:.35rem .5rem;border:1px solid var(--line);border-radius:.2rem;margin-top:.2rem;min-width:0}body[data-ui-design] :is(input[type=checkbox],input[type=radio]):where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){width:auto;display:inline-block;margin:0;flex:none}body[data-ui-design] label:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){margin:.35rem 0;font-size:.95rem;min-width:0}body[data-ui-design] fieldset:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){min-width:0;padding:.65rem .8rem;margin:.6rem 0;border:1px solid var(--line)}body[data-ui-design] textarea:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:block;width:min(100%,48rem);min-width:min(16rem,100%);max-width:100%;resize:both;min-height:4.5rem;line-height:1.55;white-space:pre-wrap}body[data-ui-design] textarea.book-half-text:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){width:min(100%,30rem)}body[data-ui-design] :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){outline:2px solid var(--focus);outline-offset:3px}body[data-ui-design] :is(th,td):where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){padding:.45rem .6rem;border-color:var(--line);vertical-align:top;overflow-wrap:anywhere}body[data-ui-design] th:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){font-weight:600;background:#eef3f5;font-size:.9rem}body[data-ui-design] :is(.table-scroll,.table-wrap,.overview-table-region){max-width:100%;overflow:auto}body[data-ui-design] :is(.ui-numeric,.history-numeric){text-align:right;font-variant-numeric:tabular-nums;white-space:normal}body[data-ui-design] .ui-numeric-state{text-align:left}body[data-ui-design] .ui-action-save:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){border:3px double var(--teal);background:#fff;color:var(--teal);font-weight:650}body[data-ui-design] .ui-action-commit:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){border-bottom:4px solid currentColor;font-weight:700}body[data-ui-design] .ui-action-edit:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){border:1px solid var(--teal);background:var(--pale);color:var(--teal)}body[data-ui-design] .ui-action-reference:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){border:1px solid var(--line);background:#fff;color:var(--teal)}body[data-ui-design] :is([role=status],[role=alert],.warning,.error,.workflow-notice){overflow-wrap:anywhere;white-space:pre-wrap}body[data-ui-design] details:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){margin:.25rem 0}body[data-ui-design] details>summary:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){padding:.2rem 0;cursor:pointer;overflow-wrap:anywhere;font-size:.9rem}body[data-ui-design] .ui-supplement{padding:0;border:0;font-size:.88rem;color:var(--muted)}body[data-ui-design] .ui-supplement[open]{padding:.35rem .5rem;border-left:2px solid var(--line)}body[data-ui-design] .ui-supplement :is(pre,p):where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){margin:.3rem 0;padding:.3rem .5rem;min-height:0}body[data-ui-design] pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}body[data-ui-design] .ui-page-id{font-size:.8rem;line-height:1.6;font-weight:700;letter-spacing:.04em;color:var(--teal);border:1px solid var(--line);padding:0 .35rem;white-space:nowrap;flex:none}body[data-ui-design] .workflow-context{padding:.25rem 1.15rem;gap:.35rem 1rem;font-size:.88rem;line-height:1.5;font-family:inherit;background:#fff}body[data-ui-design] .prototype-scope-strip{margin:0;padding:.2rem 1.15rem;min-height:0;gap:.5rem;align-items:center;justify-content:flex-start}body[data-ui-design] .table-sort-tools p:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){margin:.2rem 0;font-size:.85rem}body[data-ui-design] .book-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);margin:.65rem 0;background:#fff}body[data-ui-design] .book-summary-grid>div{display:grid;grid-template-columns:minmax(6rem,.8fr) minmax(0,1.5fr);gap:.4rem;padding:.45rem .6rem;border-bottom:1px solid #e1e7ea;background:#fff;min-width:0}body[data-ui-design] .book-summary-grid dt:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){color:var(--muted);font-size:.85rem}body[data-ui-design] .book-summary-grid dd:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:block;align-self:start;margin:0;min-width:0;overflow-wrap:anywhere}body[data-ui-design] .book-summary-grid .ui-bibliography-wide{grid-column:span 2}body[data-ui-design] .book-summary-grid a{color:var(--teal)}body[data-ui-design] .book-title-text{font-weight:700;overflow-wrap:anywhere}body[data-ui-design] .book-subtitle-text{font-size:.92em;overflow-wrap:anywhere}body[data-ui-design] .book-title-temporary{font-size:.7em;padding:0 .3em;border:1px solid currentColor}body[data-ui-design] .book-overview-table [data-manual-handle]{background:transparent;border:0;color:var(--ink);padding:.2rem;min-width:1.7rem;cursor:grab}body[data-ui-design] .book-overview-table .book-name{min-height:0;margin:0;padding:0;color:var(--teal);font-weight:650;background:transparent;text-align:left}body[data-ui-design] .book-portal-tabs{margin:.6rem 0;padding:0;background:#fff;gap:0;border-bottom:1px solid var(--line)}body[data-ui-design] .book-portal-tabs [role=tab]{border:0;border-radius:0;min-height:2.2rem;padding:.45rem .7rem;background:transparent;color:var(--muted)}body[data-ui-design] .book-portal-tabs [aria-selected=true]{color:var(--teal);background:var(--pale);box-shadow:inset 0 -3px var(--teal);font-weight:700}body[data-ui-design] .workflow-business-panels{gap:1rem;margin:.8rem 0}body[data-ui-design] .workflow-business-panel{padding:.8rem;border-radius:.3rem}body[data-ui-design] .workflow-business-panel .quick{gap:.5rem}body[data-ui-design] .workflow-business-panel .quick a{padding:.55rem .7rem}body[data-ui-design] :is(.workflow-business-tabs,.workflow-source-tabs){margin:.55rem 0}body[data-ui-design] :is(.workflow-business-tabs,.workflow-source-tabs) button:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){padding:.4rem .75rem}body[data-ui-design] #sales-root.sales-phase2{padding:.8rem var(--ui-main-inline-padding);margin:.4rem auto}body[data-ui-design] #sales-root.sales-phase2>h1:where(:not(.bnnfa-view, .bnnfa-view *)){font-size:1.45rem}body[data-ui-design] #sales-root form:has(>h2):where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){gap:.65rem 1rem}body[data-ui-design] #sales-root form>label:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){min-width:0}body[data-ui-design] #shared-master-root{padding:.8rem 1rem;margin:.45rem 0}body[data-ui-design] #shared-master-root form:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){gap:.65rem 1rem}body[data-ui-design] :is(.production-fields,.book-bibliography-fields){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem .8rem}body[data-ui-design] :is(.workflow-directory-details,.workflow-original-detail){margin:.6rem 0;padding:.65rem}body[data-ui-design] .history-entry{padding:.75rem 1rem;margin:.65rem 0}body[data-ui-design] .history-entry h2:where(:not(.bnnfa-view, .bnnfa-view *)){font-size:1rem}body[data-ui-design] footer{padding:.65rem 1.15rem;font-size:.85rem;color:var(--muted)}@media(max-width:80rem){body[data-ui-design] .book-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:60rem){body[data-ui-design] :is(.production-fields,.book-bibliography-fields){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:40rem){body[data-ui-design]{--ui-main-inline-padding:.75rem}body[data-ui-design]>main,body[data-ui-design] .layout main{padding:.65rem var(--ui-main-inline-padding) 2rem}body[data-ui-design] .book-summary-grid{grid-template-columns:1fr}body[data-ui-design] .book-summary-grid .ui-bibliography-wide{grid-column:auto}body[data-ui-design] :is(.production-fields,.book-bibliography-fields){grid-template-columns:1fr}body[data-ui-design] .workflow-context{padding:.3rem .75rem}}@media print{body[data-ui-design]>main,body[data-ui-design] .layout main{max-width:none;padding:0}body[data-ui-design] :is(.workflow-header,.workflow-context,.actions){display:none}}body[data-ui-design] .book-overview-table .ui-row-action{border:0;background:transparent;color:var(--ink);font-size:1.25rem;padding:.15rem .4rem}body[data-ui-design] .ui-document-header{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;background:var(--navy);color:white;margin:0;padding:.45rem 1.15rem;border-radius:.2rem}body[data-ui-design] .ui-document-header a{color:white}body[data-ui-design] .ui-document-header h1:where(:not(.bnnfa-view, .bnnfa-view *)){font-size:1.1rem;margin:0}body[data-ui-design] .ui-document-header p:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){flex-basis:100%;font-size:.85rem;margin:.2rem 0}body[data-ui-design] .ui-document-context{display:flex;gap:.8rem;align-items:center;padding:.3rem 1.15rem;background:white;font-size:.85rem;border-bottom:1px solid var(--line)}body[data-ui-design] .ui-navigation-supplement{margin:.8rem 0}body[data-ui-design] .ui-navigation-supplement .prototype-scope-strip{display:flex;flex-wrap:wrap;background:transparent;padding:.4rem 0}body[data-ui-design] .ui-book-heading .heading{margin:0}body[data-ui-design] .ui-book-heading .tag{background:transparent;padding:0;border:0;color:var(--muted)}body[data-ui-design] .ui-book-heading .business-navigation{margin:.5rem 0}body[data-ui-design] .book-summary-grid .ui-supplement[open]{padding:.2rem .3rem}body[data-ui-design] .book-summary-grid .ui-supplement p:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){margin:.1rem 0;padding:.1rem 0}body[data-ui-design] .workflow-table-scroll{max-width:100%;overflow:auto}body[data-ui-design] .workflow-sort-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem}body[data-ui-design] .workflow-table{border-collapse:collapse;width:100%}body[data-ui-design] #attachment-panel>button:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){float:none}body[data-ui-design] #attachment-panel :is(#attachment-files,#attachment-upload){margin-right:.4rem}body[data-ui-design] .login-help{margin-top:1rem}body[data-ui-design]>.login-help{width:100%;max-width:105rem;margin:1rem auto;padding:0 var(--ui-main-inline-padding)}body[data-ui-design] #shared-master-root dl:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:grid;grid-template-columns:minmax(7rem,.6fr) minmax(0,2fr);gap:.35rem .7rem;margin:.6rem 0}body[data-ui-design] #shared-master-root dd:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){margin:0;white-space:pre-wrap;overflow-wrap:anywhere}body[data-ui-design] #shared-master-root dt:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){color:var(--muted)}body[data-ui-design] #attachment-list li{display:flow-root;border-top:1px solid var(--line);padding:.5rem 0;margin:0}body[data-ui-design] #attachment-list li>button:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){float:right}body[data-ui-design] #attachment-panel>progress{display:block;margin:.4rem 0}body[data-ui-design] .ui-document-header~.ui-document-context{margin-bottom:.7rem}body[data-ui-design] .screen-detail{position:static;min-height:0;margin:.65rem 0;padding:.75rem 1rem}body[data-ui-design] .screen-detail nav{justify-content:flex-end;margin:.5rem 0}body[data-ui-design] .screen-layout{display:block}body[data-ui-design] #workbench-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}body[data-ui-design] .screen-link{padding:.35rem .5rem;border-radius:.2rem}body[data-ui-design] .workflow-business-panel h2:where(:not(.bnnfa-view, .bnnfa-view *)){margin:0 0 .4rem}@media(max-width:60rem){body[data-ui-design] #workbench-directory{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:40rem){body[data-ui-design] #workbench-directory{grid-template-columns:1fr}}body[data-ui-design] textarea.book-half-text:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){min-height:3.8rem}body[data-ui-design] .book-format-row:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:flex;flex-wrap:wrap;gap:.25rem .8rem}body[data-ui-design] .book-choice:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:inline-flex;gap:.35rem;align-items:center;margin:.2rem 0}@media(max-width:60rem){}@media(max-width:40rem){}

/* UI review 20261011 */body[data-ui-design] .book-overview-table .book-name{font-size:calc(1em + 1pt);border:0!important;box-shadow:none!important;border-radius:0}.ui-enum-radios{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;border:0;padding:.4rem 0;margin:0;min-width:0}.ui-enum-radios legend:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){font-size:.85rem;font-weight:600}.ui-enum-radios label:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:inline-flex!important;align-items:center;gap:.4rem}.ui-enum-radios input:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){width:auto!important;margin:0}.row-menu{position:relative}.row-menu summary:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){cursor:pointer;list-style:none}.row-menu[open]{min-width:12rem}.row-menu button:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)),.row-menu small{display:block}.row-menu small{font-size:.75rem;max-width:18rem}

/* Review19-32: compact summary rows; dates retain one unbroken calendar value. */body[data-ui-design] .book-summary-grid>[data-bibliography-field=publicationDate]{grid-column:1/-1}body[data-ui-design] .book-summary-grid>[data-bibliography-field=publicationDate] dd:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:grid;grid-template-columns:max-content;justify-content:start;align-items:start;gap:.2rem;max-width:100%;overflow-x:auto}body[data-ui-design] .book-date{white-space:nowrap;overflow-wrap:normal;word-break:normal;margin:.2rem 0}body[data-ui-design] .legacy-book-fields{grid-template-columns:minmax(8rem,max-content) minmax(0,1fr);align-items:start}body[data-ui-design] .legacy-book-fields dd:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){min-width:0;overflow-x:auto}.book-production-status{display:block}.book-detail-label{margin:.2rem 0;color:#43595f}

/* Review34/38: presentation widths only; original controls and values stay authoritative. */

/* Review39-41: full-width left dates and compact search controls; raw values unchanged. */body[data-ui-design] .book-summary-grid>[data-bibliography-field=publicationDate]{display:block;grid-column:1/-1;text-align:left}body[data-ui-design] .book-summary-grid>[data-bibliography-field=publicationDate] dd:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){display:grid;width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:.3rem .8rem;text-align:left;justify-content:stretch}body[data-ui-design] .book-date-item{min-width:0;overflow-x:auto;text-align:left}body[data-ui-design] .book-date-item .book-date{margin:.15rem 0;white-space:nowrap}@media(max-width:40rem){}

/* Preserved prior employee-review table declarations; new table-books uses approved CSS. */
.employee-review .table-sort-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.employee-review .table-sort-tools .link-button{margin-left:auto}.employee-review .book-overview-table{border-collapse:collapse;width:100%;font-size:.92rem}.employee-review .book-overview-table caption{text-align:left;padding:.45rem .6rem;font-weight:600}.employee-review .book-overview-table th:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)),.employee-review .book-overview-table td:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){border-bottom:1px solid var(--line,#bdcbd2);text-align:left;vertical-align:top}.employee-review .book-overview-table th.selected-sort:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){background:#d9eeeb;box-shadow:inset 0 -2px #176f70}.employee-review .book-overview-table th button:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){color:inherit;background:none;border:0;font-weight:600;padding:0;white-space:normal}.employee-review .book-overview-table a{color:#176f70}.employee-review .book-overview-table [data-manual-handle]{cursor:grab}.employee-review .book-overview-table .book-authors{font-size:.88rem}.employee-review .overview-table-region{overflow:auto}.employee-review .overview-table-region nav{display:flex;justify-content:flex-end;gap:.45rem;padding:.45rem}.employee-review .overview-secondary-tables table:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){width:100%;border-collapse:collapse}.employee-review .overview-secondary-tables th:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)),.employee-review .overview-secondary-tables td:where(:not(.bnnfa-form, .bnnfa-form *, .bnnfa-view, .bnnfa-view *)){border-bottom:1px solid #bdcbd2;text-align:left}

body[data-ui-design] .history-filters{gap:.5rem .8rem;margin:.45rem 0}

/* BK02 F07: keep the value/editor and its operations together; widths remain canonical. */
.book-credit-row.field-inline { flex-wrap: nowrap; }
.book-credit-row > textarea { flex: 0 1 auto; min-width: 0; }
.book-credit-row > .btn-text { flex: none; }

/* ER01（UI v02.69）：右端の固定タブがある画面は、上の #sales-root・#shared-master-root（main 自身）の余白より右を空ける。bnnfa-ui.css の共通規則はこの2つの id 付き規則に詳細度で負けるため、ここで同じ余白を足す。 */
@media screen{body[data-ui-design]:has(.help-panel-toggle, #review-comments-toggle, .review-comments-login) :is(#sales-root.sales-phase2, #shared-master-root){padding-right:var(--edge-rail)}}
