/* ETPR 13: scoped improvements, never alter client/public forms */
body.etpr-office-app .s10{--etpr13-ink:#123e35;--etpr13-green:#0c5748}
body.etpr-office-app .s10-head{padding:30px 34px!important;background:linear-gradient(115deg,#063d35 5%,#13715c 100%)!important;border-radius:18px!important}
body.etpr-office-app .s10-head .etpr13-topline{display:flex;justify-content:flex-end;align-items:center;margin:-8px 0 10px}
body.etpr-office-app .s10-head .etpr13-topline .etpr13-back{background:#ffffffec!important;border:1px solid #fff!important;color:#114d40!important;-webkit-text-fill-color:#114d40!important;font-weight:800!important}
body.etpr-office-app .s10-head h2{font-size:clamp(24px,2.3vw,35px)!important;line-height:1.25!important;margin:8px 0!important}
body.etpr-office-app .s10-head p{margin:8px 0 16px!important}
body.etpr-office-app .etpr13-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:18px;border-top:1px solid #ffffff45;padding-top:17px}
body.etpr-office-app .etpr13-main,body.etpr-office-app .etpr13-right{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
body.etpr-office-app .s10-head .etpr13-actions .button,body.etpr-office-app .s10-head .etpr13-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px!important;padding:9px 15px!important;margin:0!important;border:1px solid #d1e6dd!important;border-radius:11px!important;background:#fff!important;color:#0a4e40!important;-webkit-text-fill-color:#0a4e40!important;font-size:13px!important;line-height:1.35!important;font-weight:750!important;cursor:pointer;text-decoration:none!important}
body.etpr-office-app .s10-head .etpr13-actions .etpr13-emphasis{background:#f4d17d!important;border-color:#f4d17d!important;color:#244334!important;-webkit-text-fill-color:#244334!important}
body.etpr-office-app .s10-head .etpr13-actions .etpr13-track{background:#fff!important;color:#0b5144!important;-webkit-text-fill-color:#0b5144!important}
body.etpr-office-app .s10-head .etpr13-actions .etpr13-stages{background:#e9f8ef!important;color:#084b3c!important;-webkit-text-fill-color:#084b3c!important;border-color:#9bc9b4!important}
body.etpr-office-app .s10-head .s101-folder-menu>summary{background:#f4d17d!important;color:#153e32!important;-webkit-text-fill-color:#153e32!important}
body.etpr-office-app .etpr13-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #d4e5d9;border-radius:17px;padding:15px 20px;margin:18px 0 21px;box-shadow:0 8px 25px #073e3010;position:relative;z-index:12}
body.etpr-office-app .etpr13-toolbar-title{display:flex;gap:12px;align-items:center;color:#0b4a3e}
body.etpr-office-app .etpr13-toolbar-title>span{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#e6f3eb;font-size:22px}
body.etpr-office-app .etpr13-toolbar-title strong{display:block;font-weight:850;font-size:15px}
body.etpr-office-app .etpr13-toolbar-title small{display:block;color:#536a61;font-size:12px;margin-top:2px}
body.etpr-office-app .etpr13-selection{position:relative;min-width:min(340px,100%)}
body.etpr-office-app .etpr13-selector{display:flex;justify-content:space-between;gap:14px;align-items:center;width:100%;background:#0b594b;color:#fff;-webkit-text-fill-color:#fff;border:1px solid #0b594b;border-radius:11px;min-height:45px;padding:10px 15px;font-weight:750;cursor:pointer}
body.etpr-office-app .etpr13-options{position:absolute;top:calc(100% + 8px);right:0;width:min(460px,85vw);max-height:390px;overflow:auto;background:#fff;border:1px solid #bed9ca;box-shadow:0 20px 54px #0b3c3450;border-radius:13px;padding:10px;z-index:400}
body.etpr-office-app .etpr13-options[hidden]{display:none!important}
body.etpr-office-app .etpr13-option-heading{display:block;padding:12px 10px 6px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#527267}
body.etpr-office-app .etpr13-option{display:flex;justify-content:space-between;gap:12px;width:100%;border:0;background:#fff;text-align:left;padding:11px;border-radius:9px;color:#164d40;font-size:13px;font-weight:700;cursor:pointer}
body.etpr-office-app .etpr13-option:hover,body.etpr-office-app .etpr13-option:focus-visible{background:#e7f4eb;outline:2px solid #b0ccbc}
body.etpr-office-app .etpr13-old-nav{display:none!important}
body.etpr-office-app .s10-card{scroll-margin-top:85px}
body.etpr-office-app .etpr13-flash{outline:3px solid #d9ae3e;outline-offset:4px;transition:outline-color .3s}
body.etpr-office-app .etpr13-track-panel:not(.etpr13-modal-open){display:none!important}
.etpr13-backdrop{position:fixed;inset:0;z-index:999998;background:#041e1caa;backdrop-filter:blur(4px)}
body.etpr-office-app .s10-card.etpr13-modal-open{display:block!important;position:fixed!important;z-index:999999!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:min(900px,94vw)!important;max-height:90vh!important;overflow:auto!important;margin:0!important;background:#fff!important;border:1px solid #91c2a9!important;border-radius:19px!important;box-shadow:0 28px 90px #0005!important;padding:25px 27px!important}
body.etpr-office-app .etpr13-modal-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:15px;border-bottom:1px solid #d5e7dc;margin-bottom:20px;color:#124e3e}
body.etpr-office-app .etpr13-modal-top strong{font-size:20px}
body.etpr-office-app .etpr13-modal-top span{font-size:13px;color:#536e62}
body.etpr-office-app .etpr13-modal-close{background:#0c5748;color:#fff;border:0;padding:9px 15px;border-radius:9px;cursor:pointer;font-weight:800}
body.etpr-office-app .s10 :is(input,select,textarea){max-width:100%}
body.etpr-office-app .s10 :is(.s10-card,.etpr13-toolbar) :is(p,span,label,th,td){color:#183f36}
body.etpr-office-app .s10 table thead :is(th,td){background:#175c4d!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body.etpr-office-app .s10 :is(button,a,summary):focus-visible{outline:3px solid #e1ad39!important;outline-offset:2px}
@media(max-width:780px){body.etpr-office-app .s10-head{padding:21px!important}body.etpr-office-app .etpr13-toolbar{align-items:stretch}body.etpr-office-app .etpr13-selection{width:100%}body.etpr-office-app .etpr13-right{width:100%}body.etpr-office-app .s10-card.etpr13-modal-open{padding:19px!important}}

/* ETPR 15 · study tables, sidebar and contrast */
body.etpr-office-app .s10 .s101-search-table{width:100%;border-collapse:separate!important;border-spacing:0!important;table-layout:fixed;background:#fff!important;border:1px solid #c7dcd4!important;border-radius:14px!important;overflow:hidden}
body.etpr-office-app .s10 .s101-search-table thead th{padding:14px 17px!important;background:#104f44!important;color:#fff!important;font-size:13px!important;font-weight:800!important;text-align:left!important}
body.etpr-office-app .s10 .s101-search-table th:nth-child(1){width:35%}body.etpr-office-app .s10 .s101-search-table th:nth-child(2){width:18%}body.etpr-office-app .s10 .s101-search-table th:nth-child(3){width:21%}
body.etpr-office-app .s10 .s101-search-table td{padding:13px 16px!important;color:#173c34!important;background:#fff!important;vertical-align:middle!important;border-bottom:1px solid #e0ebe5!important;overflow-wrap:anywhere}
body.etpr-office-app .s10 .s101-search-table tr:nth-child(even) td{background:#f5faf7!important}
body.etpr-office-app .s10 .s101-search-table td:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0}body.etpr-office-app .s10 .s101-search-table td:last-child br{display:none!important}
body.etpr-office-app .s10 .s101-search-table td:last-child button{display:inline-flex!important;margin:0!important;min-height:35px!important;padding:7px 11px!important;border-radius:8px!important;border:1px solid #aac9bd!important;background:#edf7f2!important;color:#074b3d!important;-webkit-text-fill-color:#074b3d!important;font-weight:700!important;font-size:12px!important}
body.etpr-office-app .s10 .s101-search-table td:last-child button:hover{background:#d7ede2!important}
body.etpr-office-app .s10 .s101-search-toolbar{display:flex;gap:12px;align-items:center;margin:15px 0!important}body.etpr-office-app .s10 .s101-search-toolbar button{background:#07594b!important;color:white!important;border:1px solid #07594b!important;border-radius:10px!important;padding:10px 17px!important}
body.etpr-office-app .s10 [data-s10-search]:not([hidden]){padding:21px!important;background:#f5faf7!important;border:1px solid #c8ddd4!important;border-radius:14px!important;margin:15px 0!important;box-shadow:0 8px 25px #123c3310}
body.etpr-office-app .s10 [data-s10-search] label{font-weight:700!important;color:#173c34!important}
body.etpr-office-app .s10 [data-s10-search] button{border-radius:9px!important}
body.etpr-office-app .s10 .s101-table-wrap{overflow-x:auto;max-width:100%}
body.etpr-office-app .s10-head .etpr13-stages,body.etpr-office-app .s10-head [data-etpr13-stages]{background:#f8e7b7!important;color:#123b32!important;-webkit-text-fill-color:#123b32!important;border:1px solid #f8d68c!important}
body.etpr-office-app aside :is(a,button),body.etpr-office-app .etpr-sidebar :is(a,button){line-height:1.3!important}
body.etpr-office-app .etpr-sidebar :is(li,.menu-item){margin-block:0!important}
@media(max-width:780px){body.etpr-office-app .s10 .s101-search-table{min-width:650px!important}body.etpr-office-app .s10 .s101-search-table td:last-child{min-width:150px}}

/* ETPR 16 consolidated search and navigation */
body.etpr-office-app .s10 .etpr16-legacy-navigation,body.etpr-office-app .s10 .etpr13-old-nav{display:none!important}
body.etpr-office-app .s10 .etpr16-search{margin:18px 0;background:#fff;border:1px solid #d4e4dc;border-radius:16px;padding:19px;box-shadow:0 8px 25px #093c2f0b;color:#143d33}
body.etpr-office-app .s10 .etpr16-search-bar{display:flex;flex-wrap:wrap;gap:15px;align-items:center;margin-bottom:15px}
body.etpr-office-app .s10 .etpr16-muted{color:#506e65;font-size:13px}
body.etpr-office-app .s10 .etpr16-primary{background:#075a4c!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #075a4c!important;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer;min-height:42px}
body.etpr-office-app .s10 .etpr16-secondary{background:#edf6f1!important;color:#0c5344!important;-webkit-text-fill-color:#0c5344!important;border:1px solid #b5d4c7!important;border-radius:9px;padding:8px 12px;font-weight:700;cursor:pointer}
body.etpr-office-app .s10 .etpr16-danger{background:#fff4f0!important;color:#873a2a!important;-webkit-text-fill-color:#873a2a!important;border:1px solid #eed0c6!important;border-radius:9px;padding:8px 12px;font-weight:700;cursor:pointer}
body.etpr-office-app .s10 .etpr16-search-grid{overflow-x:auto;border:1px solid #dbe8e1;border-radius:11px}
body.etpr-office-app .s10 :is(.etpr16-grid-head,.etpr16-grid-row){display:grid;grid-template-columns:minmax(190px,2fr) minmax(120px,1fr) minmax(120px,1fr) minmax(140px,1fr);align-items:center;gap:12px;padding:13px 16px;min-width:680px}
body.etpr-office-app .s10 .etpr16-grid-head{background:#0b4c40;color:#fff;font-size:13px;font-weight:800}
body.etpr-office-app .s10 .etpr16-grid-head span{color:#fff!important}
body.etpr-office-app .s10 .etpr16-grid-row:nth-child(odd){background:#f4f9f6}body.etpr-office-app .s10 .etpr16-grid-row{border-top:1px solid #e1ebe5}
body.etpr-office-app .s10 .etpr16-row-actions{display:flex;gap:7px;flex-wrap:wrap}
body.etpr-office-app .s10 .etpr16-pill{display:inline-flex;align-items:center;justify-content:center;text-align:center;border-radius:16px;font-weight:700;font-size:12px;padding:6px 10px;background:#f0f1f2;color:#30414d!important;width:max-content;max-width:100%}
body.etpr-office-app .s10 .etpr16-pill.negative{background:#e5f3e9;color:#16593b!important}body.etpr-office-app .s10 .etpr16-pill.positive{background:#fff0df;color:#874500!important}body.etpr-office-app .s10 .etpr16-pill.pending{background:#fef4d9;color:#815c00!important}
body.etpr-office-app .s10 .etpr16-editor{margin-top:16px;border:1px solid #c4dccc;background:#f7fbf8;border-radius:14px;padding:19px}
body.etpr-office-app .s10 .etpr16-editor h4{font-size:19px;color:#0a4438;margin:0 0 15px}body.etpr-office-app .s10 .etpr16-editor h5{color:#0a4438;font-size:15px;margin:0 0 10px}
body.etpr-office-app .s10 .etpr16-field{display:flex;flex-direction:column;gap:8px;font-weight:700;color:#1a4036!important;margin-bottom:14px}
body.etpr-office-app .s10 .etpr16-field :is(input,select,textarea){background:#fff!important;border:1px solid #b5ccc2!important;border-radius:9px!important;color:#173d33!important;font-size:15px!important;padding:10px 12px!important;width:100%;max-width:100%;box-sizing:border-box}
body.etpr-office-app .s10 .etpr16-scope{display:inline-block;vertical-align:top;width:calc(50% - 10px);margin-right:10px;padding:16px;background:#fff;border:1px solid #dae9df;border-radius:12px;box-sizing:border-box}
body.etpr-office-app .s10 .etpr16-actions{display:flex;gap:10px;margin-top:15px}body.etpr-office-app .s10 .etpr16-warning{background:#fff2ed;color:#852c19;padding:10px;border-radius:8px}
body.etpr-office-app .s10 .etpr16-empty{padding:18px;color:#5a7067!important}
body.etpr-office-app .s10 .s10-search[data-s10-search]{display:none!important}
body.etpr-office-app .s10 .etpr13-selector{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
@media(max-width:720px){body.etpr-office-app .s10 .etpr16-scope{display:block;width:100%;margin:0 0 12px}}

/* ETPR 11.2 accessible stage selector: overrides historical text colors */
body.etpr-office-app .s10 .etpr13-selection .etpr13-selector,body.etpr-office-app .s10 button.etpr13-selector{background:#075b4b!important;border:1px solid #0f705b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:800!important;min-height:46px!important;opacity:1!important}
body.etpr-office-app .s10 .etpr13-selector span,body.etpr-office-app .s10 .etpr13-selector *{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
body.etpr-office-app .s10 .etpr13-selector:hover,body.etpr-office-app .s10 .etpr13-selector:focus-visible{background:#064638!important;outline:3px solid #f5c85b!important;outline-offset:2px!important}
body.etpr-office-app .s10 .etpr13-options{background:#fff!important;border-color:#9bc8b7!important}
body.etpr-office-app .s10 .etpr13-option{color:#154838!important;-webkit-text-fill-color:#154838!important;background:#fff!important}
body.etpr-office-app .s10 .etpr13-option-heading{color:#345d4f!important;-webkit-text-fill-color:#345d4f!important}


/* ETPR 11.3 compact study action bar */
body.etpr-office-app .etpr13-actions{justify-content:flex-start!important;align-items:flex-start!important;gap:12px!important}
body.etpr-office-app .etpr13-main,body.etpr-office-app .etpr13-right{gap:10px!important}
body.etpr-office-app .s10-head .etpr13-actions .button,body.etpr-office-app .s10-head .etpr13-btn,body.etpr-office-app .s10-head .s101-folder-menu>summary{white-space:nowrap!important;flex:0 0 auto!important;max-width:100%!important;min-height:42px!important;padding:8px 12px!important;font-size:12px!important;line-height:1.15!important;letter-spacing:0!important}
body.etpr-office-app .s10-head .etpr13-actions .button span:last-child,body.etpr-office-app .s10-head .etpr13-btn span:last-child{white-space:nowrap!important}
body.etpr-office-app .s10-head .etpr13-actions .button:hover,body.etpr-office-app .s10-head .etpr13-btn:hover,body.etpr-office-app .s10-head .s101-folder-menu>summary:hover{filter:brightness(.98)!important;box-shadow:0 0 0 2px #dfeee7 inset!important}
body.etpr-office-app .s10-head .etpr13-actions .etpr13-emphasis{background:#f1c864!important;border-color:#e2b954!important;color:#173b31!important;-webkit-text-fill-color:#173b31!important}
body.etpr-office-app .s10-head .etpr13-actions .etpr13-track{background:#eef7f2!important;border-color:#b9d5c8!important;color:#0e5144!important;-webkit-text-fill-color:#0e5144!important}
body.etpr-office-app .s10-head .etpr13-actions .etpr13-stages{background:#dff2e8!important;border-color:#9bc9b4!important;color:#0c4e40!important;-webkit-text-fill-color:#0c4e40!important}
body.etpr-office-app .s10-head .s101-folder-menu>summary{background:#fff3d1!important;border-color:#eccd7b!important;color:#143d34!important;-webkit-text-fill-color:#143d34!important}
body.etpr-office-app .etpr13-toolbar{border-color:#cfe2d8!important;box-shadow:0 8px 22px #073e3010!important}
body.etpr-office-app .etpr13-toolbar-title strong{font-size:16px!important;color:#093f35!important}
body.etpr-office-app .etpr13-toolbar-title small{font-size:13px!important;color:#395f53!important}
body.etpr-office-app .s10 .etpr13-selection{min-width:min(260px,100%)!important}
body.etpr-office-app .s10 .etpr13-selection .etpr13-selector,body.etpr-office-app .s10 button.etpr13-selector{font-size:13px!important;letter-spacing:0!important;white-space:nowrap!important}
@media(max-width:980px){body.etpr-office-app .etpr13-toolbar{align-items:stretch!important}body.etpr-office-app .etpr13-selection{width:100%!important;min-width:0!important}}
