.workspace-feature-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.workspace-feature-strip button{min-height:38px;padding:7px 12px;border:1px solid #cdded3;border-radius:8px;background:#fff;color:#145841;font-size:13px;font-weight:750;cursor:pointer}
.workspace-feature-strip button:hover{background:#eaf5ee}
.workspace-feature-strip button:focus-visible,.workspace-dialog button:focus-visible,.workspace-dialog input:focus-visible,.workspace-dialog textarea:focus-visible{outline:3px solid #7fb99b;outline-offset:2px}
.workspace-dialog{position:fixed;inset:16px;margin:auto;width:min(460px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border:1px solid #cdded3;border-radius:16px;background:#fff;color:#19392b;box-shadow:0 22px 65px #152a1d45;color-scheme:light}
.workspace-dialog::backdrop{background:#14251c80}
.workspace-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
.workspace-shell>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:17px 20px;border-bottom:1px solid #e1eae3}
.workspace-shell h2{margin:0;font-size:19px;line-height:1.3;color:#19392b}
.workspace-shell>header button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:#edf4ee;color:#385d46;font-size:23px;cursor:pointer}
#workspaceBody,#workspaceCompletionBody{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 24px}
.workspace-form,.workspace-detail form{display:grid;gap:13px}
.workspace-form h3,.workspace-list h3{margin:0 0 2px;font-size:15px;color:#19392b}
.workspace-form label,.workspace-detail label,.workspace-search{display:grid;gap:6px;font-size:13px;font-weight:700;color:#365747}
.workspace-form label small{font-size:11px;font-weight:500;color:#657a6b}
.workspace-dialog input:not([type=file]),.workspace-dialog textarea{width:100%;min-width:0;min-height:41px;padding:9px 11px;border:1px solid #b9cdbf;border-radius:8px;background:#fff;color:#19392b;font:inherit;font-size:15px}
.workspace-dialog textarea{min-height:90px;resize:vertical;line-height:1.5}
.workspace-dialog input[type=file]{min-width:0;width:100%;padding:8px;border:1px solid #b9cdbf;border-radius:8px;background:#f8fbf9;color:#19392b;font-size:12px}
.workspace-dialog button{cursor:pointer}
.workspace-dialog .primary,.workspace-dialog .outline,.workspace-back,.workspace-item button,.workspace-result,.workspace-links button{min-height:38px;padding:8px 11px;border:1px solid #bfd3c4;border-radius:8px;background:#fff;color:#145841;font-size:12px;font-weight:750;text-align:left}
.workspace-dialog .primary{background:#14634a;border-color:#14634a;color:#fff;text-align:center}
.workspace-dialog button:disabled{opacity:.55;cursor:wait}
.workspace-list{display:grid;gap:8px;margin-top:23px;padding-top:17px;border-top:1px solid #e1eae3}
.workspace-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid #e1eae3;border-radius:9px;background:#f8fbf9}
.workspace-item>div{display:grid;gap:4px;min-width:0}
.workspace-item strong,.workspace-result strong{font-size:13px;color:#19392b;overflow-wrap:anywhere}
.workspace-item small,.workspace-result small{font-size:11px;color:#657a6b;overflow-wrap:anywhere}
.workspace-item button{flex:none}
.workspace-actions,.workspace-item .workspace-actions{display:flex;align-items:center;gap:6px;flex:none}
.workspace-detail-actions{display:flex;justify-content:flex-end;margin-top:12px}
.workspace-form .workspace-actions{justify-content:flex-end}
.workspace-kind{font-size:11px;font-weight:750;color:#17634b}
.workspace-hint,.workspace-error{font-size:13px;line-height:1.6;color:#607868}
.workspace-error{color:#a13535}
.workspace-back{margin-bottom:14px}
.workspace-detail h3{margin:9px 0;font-size:20px;color:#19392b}
.workspace-detail p{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.workspace-detail>.workspace-created-at{display:block;margin:4px 0;font-size:12px;color:#556d5d}
.workspace-detail img{display:block;max-width:100%;max-height:300px;margin:12px auto;border-radius:8px;object-fit:contain}
.workspace-detail form{margin-top:20px;padding-top:17px;border-top:1px solid #e1eae3}
.workspace-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.workspace-summary-grid article{display:grid;gap:3px;padding:14px;border:1px solid #d6e5da;border-radius:9px;background:#f3f9f5}
.workspace-summary-grid strong{font-size:23px;color:#145841}
.workspace-summary-grid span{font-size:12px;color:#4f6d5a}
.workspace-links{display:grid;gap:8px;margin-top:18px}
.workspace-result{display:grid;gap:4px;width:100%;margin-top:8px;background:#f8fbf9}
.workspace-search{margin-bottom:14px}
.found-manager{color:#19392b}
.found-register{margin-bottom:14px;border:1px solid #b9cdbf;border-radius:8px}
.found-register summary{display:flex;align-items:center;gap:6px;padding:10px 12px;font-size:13px;font-weight:750;color:#17634b;cursor:pointer;list-style:none}
.found-register summary::-webkit-details-marker{display:none}
.found-register summary>span{margin-left:auto}
.found-register[open] summary>span{transform:rotate(180deg)}
.found-register summary:focus-visible{outline:3px solid #7fb99b;outline-offset:2px}
.found-register .workspace-form{padding:2px 12px 14px}
.found-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:#edf4ee;border-radius:9px;margin-bottom:14px}
.workspace-dialog .found-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;min-width:0;padding:8px 3px;border:0;border-radius:7px;background:transparent;color:#19392b;font-size:12px;font-weight:750;white-space:nowrap}
.workspace-dialog .found-tabs button[aria-selected=true]{background:#fff;box-shadow:0 1px 4px #152a1d14;color:#17634b}
.found-tabs span{font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
.found-search{display:block;margin-bottom:10px}
.found-filters{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:17px}
.found-filters label{display:flex;align-items:center;gap:6px;min-height:34px;font-size:12px;white-space:nowrap}
.workspace-dialog .found-filters select{width:auto;min-width:0;min-height:34px;padding:5px 7px;background:#fff;color:#19392b;border:1px solid #b9cdbf;border-radius:8px;font-size:12px}
.workspace-dialog .found-filters input[type=checkbox]{width:16px;height:16px;min-height:16px;min-width:16px;padding:0;margin:0;accent-color:#17634b}
.found-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
.found-list-head strong{font-size:13px}
.found-list-head>span{font-size:11px;color:#556d5d;white-space:nowrap}
.found-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 10px;padding:9px 0;border-bottom:1px solid #dce7df}
.found-item-main{min-width:0}
.found-name{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.found-name strong{font-size:13px;color:#19392b;overflow-wrap:anywhere}
.found-meta{display:flex;gap:3px 10px;flex-wrap:wrap;margin-top:4px;color:#556d5d;font-size:11px;overflow-wrap:anywhere}
.found-meta small{color:#556d5d;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.found-badge{display:inline-flex;border-radius:4px;padding:1px 5px;background:#fff0d5;color:#77531f;font-size:11px;font-weight:500}
.found-returned{background:#edf4ee;color:#17634b}
.workspace-dialog .found-item button{min-height:38px;padding:7px 10px;border:1px solid #b9cdbf;border-radius:8px;background:#fff;color:#17634b;font-size:12px;font-weight:750}
.found-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px;font-size:11px;color:#556d5d}
.found-footer>div{display:flex;align-items:center;gap:7px;white-space:nowrap}
.workspace-dialog .found-footer button{display:grid;place-items:center;min-height:32px;width:32px;padding:5px;border:1px solid #b9cdbf;border-radius:8px;background:#fff;color:#17634b;font-size:16px}
.workspace-dialog .found-footer button:disabled{cursor:default}
.found-empty{text-align:center;padding:25px 5px}
.found-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:380px){.workspace-dialog .found-tabs button{font-size:11px;gap:4px}.found-meta{display:grid;gap:1px}}
@media(pointer:coarse){.workspace-dialog .found-tabs button,.workspace-dialog .found-item button,.workspace-dialog .found-footer button,.found-register summary,.found-filters label{min-height:44px}.workspace-dialog .found-footer button{width:44px}}

@media(max-width:720px){.workspace-feature-strip{gap:6px}.workspace-feature-strip button{flex:1;white-space:nowrap;padding:8px 6px;font-size:12px}.workspace-dialog{inset:8px;margin:auto;width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px);border-radius:14px}.workspace-shell{max-height:calc(100dvh - 18px);height:auto}.workspace-shell>header{padding:max(14px,env(safe-area-inset-top)) 15px 12px}#workspaceBody,#workspaceCompletionBody{padding:16px 15px max(20px,env(safe-area-inset-bottom))}.workspace-dialog input:not([type=file]),.workspace-dialog textarea{font-size:16px}}

.workspace-dialog.allowance-settlement-dialog{width:min(700px,calc(100vw - 24px));height:min(960px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}
.allowance-settlement-dialog .workspace-shell{height:100%;max-height:100%}#allowanceSettlementBody{flex:1;min-height:0}#allowanceSettlementBody iframe{display:block;width:100%;height:100%;border:0;background:#f2f6f4}
