.document-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0}.document-toolbar>div{display:flex;gap:4px;background:var(--accent-soft);border-radius:8px;padding:3px}.document-toolbar button[aria-pressed]{background:transparent;color:var(--accent);border-radius:6px;padding:10px 16px}.document-toolbar button[aria-pressed=true]{background:var(--accent);color:white}.document-toolbar label{font-size:13px;display:flex;gap:8px;align-items:center}.document-toolbar input{padding:9px;border:1px solid var(--border);border-radius:7px;background:white}.document-note{font-size:12px;color:var(--muted)}.document-kind-list{display:grid;grid-gap:12px;gap:12px;margin:20px 0}.document-kind-list article{background:white;border:1px solid var(--border);border-radius:10px;padding:16px;display:flex;align-items:center;gap:20px}.document-kind-list article>div{flex:1 1;display:flex;align-items:center;gap:20px}.document-kind-list h2{font-size:16px;margin:0}.document-kind-list label{font-size:12px}.document-status{font-size:12px;color:#536582;background:#eef3fa;padding:5px 10px;border-radius:6px}.document-status.complete{color:#187350;background:#e7f6ef}.document-history h2{font-size:17px}.document-history>button{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;text-align:left;width:100%;background:white;border-bottom:1px solid var(--border);padding:14px;color:var(--ink)}.document-history span{font-size:11px;color:var(--muted)}.documents-table{overflow:auto;margin:14px 0}.documents-table table{border-collapse:collapse;width:100%;background:white;min-width:560px}.documents-table td,.documents-table th{border:1px solid var(--border);padding:12px;text-align:center}.documents-table th{font-size:13px;background:#f2f6fc}.documents-table small{display:block;color:var(--muted);font-size:10px}.documents-table button{padding:10px;color:var(--accent);background:var(--accent-soft);border-radius:7px;min-width:85px}.documents-table button[data-status]{font-weight:700;transition:background-color .15s ease,border-color .15s ease}.documents-table button[data-status="未作成"]{color:#fff;background:#c93445;border-color:#a81f30;box-shadow:inset 4px 0 0 #8f1726}.documents-table button[data-status="未作成"]:hover{background:#ad2637}.documents-table button[data-status="作成済"]{color:#176c4b;background:#e8f7ef;border-color:#a8d9c1}.documents-table button[data-status="作成済"]:hover{background:#d9f1e5}.documents-table button[data-status="対象外"]{color:#667085;background:#f2f4f7;border-color:#d8dde6;box-shadow:none}.documents-page button:disabled{opacity:.5;cursor:default}.documents-table button[data-status="対象外"]:disabled{opacity:1}.documents-pending{font-size:13px}.document-settings{width:620px;max-width:calc(100% - 24px);max-height:85dvh;overflow:auto;border:1px solid var(--border);border-radius:12px;padding:20px;color:var(--ink)}.document-settings::-webkit-backdrop{background:#10264677}.document-settings::backdrop{background:#10264677}.document-settings p{font-size:12px;line-height:1.7}.document-settings fieldset{border:1px solid var(--border);border-radius:8px;margin:12px 0}.document-settings label{display:flex;gap:8px;margin:10px 0;font-size:13px}.document-edit-banner{padding:10px 20px;background:#eaf2ff;display:flex;flex-wrap:wrap;gap:10px;font-size:12px}.document-edit-banner p{color:#a52b36;margin:0}.document-create-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-create-dialog-header h2{margin:0}.document-create-dialog-header button{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:8px;background:var(--surface-2);color:var(--muted)}@media(max-width:767px){.document-kind-list article{flex-wrap:wrap;gap:12px}.document-kind-list article>div{flex-basis:100%}.document-kind-list article>button{margin-left:auto}.plans-page .record-form-footer>div:last-child{overflow-x:auto}.plans-page .record-form-footer button{flex:none;white-space:nowrap;min-width:100px}}.document-overview-controls{display:flex;align-items:center;gap:10px;flex:none;margin:4px 0 8px}.documents-global-page .document-overview-controls .document-toolbar{margin:0}.document-overview-counts{display:flex;gap:6px;overflow-x:auto;padding:0;flex:none;scrollbar-width:thin}.document-overview-counts>span{display:flex;align-items:baseline;gap:4px;min-width:max-content;padding:5px 8px;border-radius:8px;background:white;border:1px solid var(--border);font-size:11px;color:var(--muted)}.document-overview-counts strong{font-size:16px;color:var(--ink)}.document-overview-counts [data-status="未作成"]{border-color:#efc0c6;background:#fff5f6}.document-overview-counts [data-status="作成中"]{border-color:#ead492;background:#fff9e7}.document-overview-counts [data-status="完了"]{border-color:#b9ddca;background:#f0faf5}.document-overview-tabs{display:flex;flex:none;gap:4px;width:max-content;padding:3px;margin:0 0 0 auto;border-radius:9px;background:var(--accent-soft)}.document-overview-tabs button{min-height:38px;padding:7px 14px;border-radius:7px;color:var(--accent);font-weight:700;white-space:nowrap}.document-overview-tabs button[aria-current=page]{background:white;box-shadow:0 1px 4px #17304d1f}.document-overview-tabs span{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:4px;border-radius:11px;background:#e7edf5;color:var(--ink);font-size:11px}.documents-table table{min-width:680px;table-layout:fixed}.documents-table td,.documents-table th{padding:6px}.documents-table thead th{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.35;width:94px;min-width:94px;max-width:none}.documents-table tbody th,.documents-table thead th:first-child{width:176px;min-width:176px}.documents-table tbody th{text-align:left}.documents-table .primary-staff-patient{padding:4px 6px}.documents-table button[data-status]{display:grid;grid-template-rows:18px auto;place-items:center;grid-gap:1px;gap:1px;width:100%;min-width:58px;min-height:44px;padding:4px 6px;border:1px solid transparent;border-radius:7px;box-shadow:none;font-weight:800}.documents-table button[data-status]>span{font-size:17px;line-height:1}.documents-table button[data-status]>small{font-size:10px;color:inherit}.documents-table button[data-status="未作成"]{color:#b42336;background:#fff0f2;border-color:#efbcc3;box-shadow:none}.documents-table button[data-status="未作成"]:hover{background:#ffe2e6}.documents-table button[data-status="作成中"]{color:#805b00;background:#fff7db;border-color:#ead28a}.documents-table button[data-status="作成中"]:hover{background:#ffedb3}.documents-table button[data-status="完了"]{color:#176c4b;background:#e8f7ef;border-color:#acd9c3}.documents-table button[data-status="完了"]:hover{background:#d8f0e4}.documents-table button[data-status="対象外"]{color:#697386;background:#f3f5f7;border-color:#d9dee5}.document-row-progress{position:relative;display:block;overflow:hidden;width:calc(100% - 12px);height:16px;margin:2px 6px;border-radius:8px;background:#dfe6ee;color:#26364c;text-align:center;font:700 10px/16px sans-serif}.document-row-progress>b{position:absolute;inset:0 auto 0 0;background:#8fd1ae;opacity:.65}.document-row-progress:not(:empty){isolation:isolate}.document-row-progress:after{content:"";position:absolute;inset:0;border:1px solid #ccd6e1;border-radius:inherit;z-index:2}.document-row-progress{z-index:0}.document-row-progress>b{z-index:-1}.documents-mobile-matrix{display:none}.document-attention-list{flex:1 1;min-height:0;overflow:auto;overscroll-behavior:none;display:grid;align-content:start;grid-gap:10px;gap:10px;padding:1px}.document-attention-list article{border:1px solid var(--border);border-radius:10px;background:white;overflow:hidden}.document-attention-list article>header{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f5f8fc;border-bottom:1px solid var(--border)}.document-attention-list article>header>.primary-staff-patient{flex:1 1;width:auto;text-align:left}.document-attention-list article>header>span{flex:none;padding:4px 8px;border-radius:12px;background:#fff0f2;color:#a82637;font-size:11px;font-weight:800}.document-attention-list article>div{display:grid}.document-attention-list article>div>button,.documents-mobile-matrix details>div>button{display:grid;grid-template-columns:24px minmax(0,1fr) auto auto;align-items:center;grid-gap:9px;gap:9px;min-height:48px;padding:8px 12px;text-align:left;background:white;border-bottom:1px solid var(--border)}.document-attention-list article>div>button:last-child,.documents-mobile-matrix details>div>button:last-child{border-bottom:0}.document-attention-list button[data-status="未作成"]>span,.documents-mobile-matrix button[data-status="未作成"]>span{color:#c12c40}.document-attention-list button[data-status="作成中"]>span,.documents-mobile-matrix button[data-status="作成中"]>span{color:#a47500}.document-attention-list button small,.documents-mobile-matrix button small{color:var(--muted)}.document-attention-list button>b{color:var(--accent);font-size:12px}.document-attention-empty{padding:30px;text-align:center;color:var(--muted);background:white;border:1px solid var(--border);border-radius:10px}@media(min-width:768px) and (max-width:1199px){.document-overview-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}.document-overview-tabs{grid-column:2;grid-row:1;justify-self:end}.document-overview-counts{grid-column:1/-1;grid-row:2}}@media(max-width:767px){.document-overview-controls{display:grid;grid-template-columns:1fr;margin-top:0}.documents-global-page .document-toolbar{grid-row:1;flex-wrap:nowrap}.document-overview-counts{grid-row:2}.document-overview-tabs{grid-row:3;width:100%;margin:0}.document-overview-tabs button{flex:1 1}.documents-global-page .documents-table{display:none}.documents-mobile-matrix{display:block;flex:1 1;min-height:0;overflow:auto;overscroll-behavior:none}.documents-mobile-matrix details{margin-bottom:8px;border:1px solid var(--border);border-radius:10px;background:white;overflow:hidden}.documents-mobile-matrix summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:9px 12px;cursor:pointer}.documents-mobile-matrix summary>span{display:grid;grid-gap:2px;gap:2px}.documents-mobile-matrix summary small{font-size:10px;color:var(--muted)}.documents-mobile-matrix summary>b{font-size:12px;color:var(--accent)}.documents-mobile-matrix details>div{border-top:1px solid var(--border)}.documents-mobile-matrix details>div>.secondary-button{width:calc(100% - 20px);margin:10px;min-height:42px}.documents-mobile-matrix details>div>button{grid-template-columns:24px minmax(0,1fr) auto}.document-attention-list article>div>button{grid-template-columns:22px minmax(0,1fr) auto}.document-attention-list article>div>button>b{grid-column:2/-1;text-align:right}.document-overview-counts>span{padding:5px 8px}.document-overview-counts strong{font-size:15px}}.documents-table button[data-status]{max-width:74px;margin-inline:auto}.document-attention-list{grid-auto-rows:max-content}.documents-mobile-matrix details>div>.secondary-button{display:flex;align-items:center;justify-content:flex-start;text-align:left}.documents-global-page .document-overview-controls{display:flex;flex-wrap:wrap;gap:12px}.document-search{flex:1 1;min-width:160px;max-width:340px;height:42px;padding:8px 12px;border:1px solid var(--border);border-radius:9px;background:white}.document-pending-toggle{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px;min-height:44px}.document-pending-toggle input{width:18px;height:18px}.document-overview-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:none;margin:0 0 12px;font-size:13px}.document-overview-summary span{margin-left:auto;color:var(--muted);font-size:12px}.documents-table .document-patient-name{background:transparent;text-align:left;padding:6px;width:100%;min-width:0;white-space:normal}.documents-table button[data-status="対象外"]{background:transparent;border-color:transparent;color:var(--muted)}.documents-global-page .documents-table thead th{white-space:normal;overflow-wrap:anywhere;line-height:1.5}.documents-global-page .documents-table button[data-status="対象外"]{border:0;background:transparent;box-shadow:none}.app-shell .documents-global-page .document-toolbar>label:first-child{white-space:nowrap;flex-shrink:0}.documents-global-page .documents-mobile-matrix details>div>button[data-status]{width:100%;min-width:0}.document-patient-menu{width:420px}.document-patient-menu>button{display:flex;width:100%;margin-top:12px;min-height:44px;text-align:left}.document-complete-view>header{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.document-complete-view h1{font-size:20px}.document-complete-view>header>div{flex:1 1;min-width:180px}.document-complete-menu{position:relative}.document-complete-menu>summary{list-style:none;cursor:pointer;min-width:44px;padding:10px;text-align:center;background:white;border:1px solid var(--border);border-radius:9px}.document-complete-menu>button{position:absolute;right:0;top:100%;white-space:nowrap;z-index:5;box-shadow:0 4px 16px #18375b22}.document-complete-view .document-complete-menu>button{top:calc(100% + 10px)}.document-field-error{color:#b42336!important;font-size:12px;line-height:1.6;margin:6px 0}.document-editor-page input[type=date]{cursor:pointer}.document-basic-dates [aria-invalid=true],.document-field [aria-invalid=true]{border-color:#c93445}.monthly-editor .document-field>label.document-carry-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px;font-weight:400;color:var(--muted);margin-top:6px}.monthly-editor .document-field>label.document-carry-toggle input{width:18px;height:18px;min-height:18px;flex:none;margin:0}@media(max-width:767px){.documents-global-page .document-toolbar{flex-wrap:wrap;width:100%}.documents-global-page .document-toolbar label{min-width:0}.document-search{max-width:none;min-width:130px}.document-overview-summary span{margin-left:0;width:100%}}@media (min-width:768px) and (max-width:1024px) and (orientation:portrait) and (any-pointer:coarse){.page-content.document-editor-page,.page-content.documents-global-page{padding-bottom:calc(76px + env(safe-area-inset-bottom))}}.document-multi-dialog{width:480px}.document-multi-list{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-gap:10px;gap:10px}.document-multi-list li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--border)}.document-multi-list li>div{flex:1 1 160px;display:grid;grid-gap:2px;gap:2px}.document-multi-list small{color:var(--muted)}.document-multi-list button{min-height:44px}.documents-table button[data-status]{position:relative}.document-count-badge{position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;padding:0 5px;box-sizing:border-box;display:grid;place-items:center;border-radius:999px;background:var(--accent);color:#fff;font-size:12px;line-height:1;box-shadow:0 0 0 2px #fff}.documents-mobile-matrix .document-count-badge{position:static;margin-left:6px;box-shadow:none}.document-doc-name{display:block;margin-top:2px;color:var(--muted);font-size:12px}.document-multi-new{margin-top:14px;min-height:44px}.documents-mobile-matrix details>div>button{grid-template-columns:24px minmax(0,1fr) auto auto}.documents-mobile-matrix .document-count-badge{margin-left:0}.document-create-name{flex:1 1;min-width:0}.document-multi-new{display:block;margin-left:auto}.document-complete-menu>button:nth-of-type(2){top:calc(100% + 62px)}.document-complete-menu>button:nth-of-type(3){top:calc(100% + 114px)}.document-complete-menu>.document-delete-trigger{color:#b42318;border-color:#e8b4b4}.document-notice{margin:8px 0;padding:10px 12px;border-radius:10px;background:#e8f4ec;color:#14532d;font-size:13px;font-weight:700}.document-name-chip{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.document-name-chip small{color:var(--muted);font-size:13px}.document-name-chip button{min-height:36px;padding:4px 12px;font-size:13px}.documents-mobile-matrix .primary-staff-label{display:flex;align-items:center;gap:8px;margin:4px 14px 10px;font-size:13px;color:var(--muted)}.documents-mobile-matrix .primary-staff-label strong{color:var(--text);font-size:14px}.app-shell .patient-header-actions .document-create-action .document-type-icon-action{display:none}.app-shell .patient-header-actions .document-create-action .document-filter-action{position:relative;overflow:visible}.app-shell .patient-header-actions .document-create-action .document-filter-action>.document-filter-badge{display:inline-grid;place-items:center;box-sizing:border-box;width:18px;height:18px;margin-left:6px;padding:0;border-radius:999px;background:#c23b42;color:#fff;font-size:11px;font-weight:700;line-height:1}@media(max-width:767px){.app-shell .patient-header-actions .document-create-action .document-type-icon-action{display:inline-flex}.app-shell .patient-header-actions .document-create-action .document-filter-action>.document-filter-badge{position:absolute;top:-6px;right:-6px;margin:0}.document-history>.document-type-mobile-trigger{display:none!important}}.document-overview-bar{container-type:inline-size}.app-shell .documents-global-page .document-overview-bar .document-overview-controls{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);align-items:center;grid-gap:8px;gap:8px;margin:4px 0 8px}.app-shell .documents-global-page .document-overview-bar .document-toolbar{display:flex;align-items:center;margin:0}.document-pending-toggle.is-wide-only{display:none}.document-overview-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.document-overview-meta>.document-overview-summary{flex:1 1;min-width:0}.document-pending-toggle.is-narrow-only{flex:none;display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px;white-space:nowrap}.app-shell .documents-global-page .document-overview-bar .document-toolbar>label{display:block;min-width:0;width:100%;font-size:0}.app-shell .documents-global-page .document-overview-bar .document-toolbar input[type=month]{font-size:14px;width:100%;min-width:0}.app-shell .documents-global-page .document-overview-bar .document-search{width:100%;max-width:none;min-width:0}@container (min-width:520px){.app-shell .documents-global-page .document-overview-bar .document-overview-controls{grid-template-columns:auto minmax(0,360px) auto;justify-content:start}.document-pending-toggle.is-wide-only{display:inline-flex}.document-pending-toggle.is-narrow-only{display:none}.app-shell .documents-global-page .document-overview-bar .document-toolbar>label{display:flex;align-items:center;gap:10px;flex:none;font-size:inherit;width:auto}.app-shell .documents-global-page .document-overview-bar .document-toolbar input[type=month]{flex:none;width:170px;font-size:inherit}}.monthly-editor .document-submission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.monthly-editor .document-submission-grid{grid-template-columns:minmax(0,1fr)}}.document-writer-row,.monthly-editor .document-writer-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:14px;gap:14px;align-items:start}@media(max-width:600px){.document-writer-row,.monthly-editor .document-writer-row{grid-template-columns:minmax(0,1fr)}}.monthly-editor .planned-profession-picker{display:block;min-width:0;margin:0;padding:0;border:0}.planned-profession-picker legend{font-size:13px;font-weight:600;padding:0;margin-bottom:8px}.planned-profession-picker legend small{margin-left:8px;color:var(--muted);font-size:11px;font-weight:400}.planned-profession-options{display:flex;flex-wrap:wrap;gap:8px}.planned-profession-options button{min-height:44px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:9px;background:white;color:var(--muted);font-size:13px}.planned-profession-options button[aria-expanded=true],.planned-profession-options button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.planned-profession-options button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.monthly-editor .planned-profession-picker .planned-profession-other{display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:640px;margin:10px 0 0}.planned-profession-other textarea{width:100%;min-width:0;resize:vertical}