/* NI Office v3.1.0 – approved handover design. Scoped to project-leader requirements only. */
.tke-v203-tab-content>.ni310-handover-panel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important;padding:24px!important;border:1px solid #e2dff0!important;border-radius:18px!important;background:linear-gradient(150deg,#fff 0%,#fcfbff 100%)!important;box-shadow:0 6px 28px #15132a0a!important;min-width:0!important}
.ni310-handover-panel>.tke-card-head{grid-column:1/-1!important;display:grid!important;grid-template-columns:60px minmax(0,1fr) auto!important;gap:16px!important;align-items:center!important;padding:0 0 20px!important;margin:0!important;min-width:0!important}
.ni310-handover-panel>.tke-card-head::before{content:'▱';display:grid;place-items:center;width:54px;height:54px;border-radius:13px;background:#f1eaff;color:#7923c9;font-size:30px;font-weight:600;line-height:1;box-sizing:border-box}
.ni310-handover-panel>.tke-card-head>div{padding-left:16px;border-left:3px solid #8d20e8;min-width:0}
.ni310-handover-panel>.tke-card-head h2{font-size:clamp(22px,2vw,30px)!important;line-height:1.15!important;color:#13132d!important;font-weight:800!important;letter-spacing:-.035em;margin:0!important}
.ni310-handover-panel>.tke-card-head p{font-size:13px!important;color:#535373!important;line-height:1.5!important;margin:6px 0 0!important}
.ni310-handover-panel .tke-or-summary{justify-self:end!important;border-radius:99px!important;font-size:13px!important;font-weight:750!important;padding:11px 16px!important;color:#21213e!important;background:#ffecef!important;box-shadow:none!important}
.ni310-handover-panel .tke-or-summary.is-ready{color:#146843!important;background:#e3f6ea!important}
.ni310-handover-panel>.tke-or-row{min-width:0!important;display:block!important;margin:0!important;padding:19px 20px 18px!important;background:#fff!important;border:1px solid #e1dff0!important;border-left:4px solid #8821df!important;border-radius:16px!important;box-shadow:0 5px 14px #201b3711!important}
.ni310-handover-panel>.tke-or-row.is-complete{border-left-color:#328c63!important}
.ni310-handover-panel .tke-or-row-head{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;min-width:0}
.ni310-handover-panel .tke-or-row-head>div{display:grid!important;grid-template-columns:45px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:13px!important;align-items:center!important;min-width:0}
.ni310-handover-panel .tke-or-row-head>div::before{content:'☷';grid-row:1/3;grid-column:1;display:grid;place-items:center;background:#f0eaff;color:#7429cb;border-radius:11px;width:44px;height:44px;font-size:23px;font-weight:700}
.ni310-handover-panel .ni310-kind-document .tke-or-row-head>div::before,.ni310-handover-panel .ni310-kind-acceptance .tke-or-row-head>div::before{content:'▤'}
.ni310-handover-panel .ni310-kind-image .tke-or-row-head>div::before{content:'▧'}
.ni310-handover-panel .ni310-kind-checkbox .tke-or-row-head>div::before{content:'☑'}
.ni310-handover-panel .tke-or-row-head strong{grid-column:2;font-size:15px!important;font-weight:750!important;line-height:1.3!important;color:#161630!important;overflow-wrap:anywhere}
.ni310-handover-panel .tke-or-row-head span{grid-column:2;font-size:12px!important;color:#454461!important;line-height:1.4!important}
.ni310-handover-panel .tke-or-row-head>b{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap!important;padding:7px 12px!important;font-size:12px!important;font-weight:750!important;line-height:1.2!important;color:#9f273a!important;border-radius:999px!important;background:#fbe8ec!important;font-style:normal!important}
.ni310-handover-panel .tke-or-row.is-pending .tke-or-row-head>b::before{content:'!';width:15px;height:15px;border:1.5px solid currentColor;border-radius:50%;font-size:10px;line-height:13px;text-align:center}
.ni310-handover-panel .tke-or-row.is-complete .tke-or-row-head>b{background:#e4f6ea!important;color:#197449!important}
.ni310-handover-panel .tke-or-shared-checklist{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;background:linear-gradient(110deg,#f7f7ff,#f0eeff)!important;padding:13px 14px!important;border:0!important;border-left:4px solid #ff8725!important;border-radius:10px!important;min-width:0!important;margin:17px 0 0!important}
.ni310-handover-panel .tke-or-shared-checklist.is-complete{border-left-color:#36a572!important;background:#effaf4!important}
.ni310-handover-panel .tke-or-shared-checklist>div{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
.ni310-handover-panel .tke-or-shared-checklist strong{font-size:19px!important;line-height:1.2!important;color:#15142d!important;font-weight:750!important}
.ni310-handover-panel .tke-or-shared-checklist span{font-size:12px!important;line-height:1.45!important;color:#4b4b65!important}
.ni310-handover-panel .tke-btn-secondary:not(.ni310-save-file){background:#fff!important;color:#5f15b0!important;-webkit-text-fill-color:#5f15b0!important;border:1px solid #ad7adf!important;border-radius:10px!important;box-shadow:0 2px 7px #26164c0b!important;font-size:11px!important;font-weight:750!important;min-height:44px!important;padding:10px 15px!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;flex:0 0 auto}
.ni310-handover-panel .tke-or-requirement-form{margin:18px 0 0!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex-wrap:wrap!important}
.ni310-handover-panel .tke-or-requirement-form>label:has(input[type=checkbox]){display:flex!important;align-items:center!important;gap:13px!important;flex:1 1 200px!important;background:linear-gradient(100deg,#f6f6ff,#f0eefb)!important;padding:10px 12px!important;min-height:44px!important;box-sizing:border-box!important;border-radius:10px!important;font-size:16px!important;color:#25213e!important}
.ni310-handover-panel .tke-or-requirement-form input[type=checkbox]{width:20px!important;height:20px!important;margin:0!important;accent-color:#8324d5!important}
.ni310-handover-panel .tke-or-requirement-form .tke-btn-primary,.ni310-handover-panel .ni310-save-file{border:0!important;background:linear-gradient(115deg,#6c14d7,#a329d4 52%,#ff7b22)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-radius:10px!important;min-height:44px!important;font-size:12px!important;font-weight:800!important;padding:10px 19px!important;box-shadow:0 5px 13px #7128c329!important;white-space:nowrap!important;cursor:pointer}
.ni310-handover-panel .tke-or-requirement-form input[type=file]{min-height:44px!important;max-width:100%!important;background:#fbfaff!important;border:1px solid #e2dff0!important}
.ni310-handover-panel .tke-or-upload-actions{display:flex!important;flex:1!important;gap:9px!important;flex-wrap:wrap!important}
.ni310-handover-panel .tke-or-upload-actions .tke-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important}
.ni310-handover-panel .tke-or-list{margin:16px 0 0!important}
.ni310-handover-panel .ni310-acceptance-actions{display:grid;grid-template-columns:minmax(0,1.5fr) auto;gap:14px;align-items:center;margin-top:18px;min-width:0}
.ni310-handover-panel .ni310-acceptance-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;min-width:0;margin:0!important}
.ni310-handover-panel .ni310-drop-target{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:112px;padding:13px;border:2px dashed #c2a4e7;border-radius:13px;background:linear-gradient(145deg,#fdfbff,#f7f4ff);color:#292045;text-align:center;cursor:pointer;box-sizing:border-box;min-width:0}
.ni310-handover-panel .ni310-drop-target:hover,.ni310-handover-panel .ni310-drop-target.is-dragover{background:#f1e9ff;border-color:#8524d4}
.ni310-handover-panel .ni310-drop-target:focus-within{outline:3px solid #b883ed;outline-offset:2px}
.ni310-handover-panel .ni310-upload-icon{font-size:29px;color:#7924d2;line-height:1.0}
.ni310-handover-panel .ni310-drop-target strong{font-size:12px!important;font-weight:750!important;line-height:1.4!important}
.ni310-handover-panel .ni310-drop-target small{font-size:10px!important;color:#77708e!important;line-height:1.3!important}
.ni310-handover-panel .ni310-file-pick{border:1px solid #a970dd;background:#fff;color:#6917b1;padding:7px 15px;border-radius:9px;font-size:11px;font-weight:750}
.ni310-handover-panel .ni310-file-input{position:absolute;opacity:0;width:1px;height:1px;inset:auto;pointer-events:none}
.ni310-handover-panel .ni310-file-name:not(:empty){display:block;font-size:11px!important;color:#35445a!important;max-width:100%;overflow-wrap:anywhere;line-height:1.3}
.ni310-handover-panel .ni310-open-acceptance{min-height:48px!important;align-self:center;display:inline-flex!important;align-items:center;justify-content:center}
.ni310-handover-panel .ni310-save-file{align-self:end;min-height:46px!important}
.ni310-handover-panel .ni310-uploaded-docs{display:flex;flex-direction:column;gap:6px;margin:12px 0 0;min-width:0}
.ni310-handover-panel .ni310-uploaded-file{display:flex;align-items:center;gap:8px;background:#f0faf2;color:#1d6941!important;border:1px solid #cbead6;padding:8px 10px;border-radius:8px;text-decoration:none!important;overflow-wrap:anywhere;font-size:11px}
.ni310-handover-panel .ni310-uploaded-file small{margin-left:auto;color:#29583c;white-space:nowrap}
.ni310-handover-panel .ni310-more-docs{color:#66617d;font-size:11px}
.ni310-handover-panel .ni310-upload-success{color:#176844;font-weight:750;font-size:11px;margin:8px 0}
.ni310-handover-panel .ni310-acceptance-note{font-size:11px;color:#706983;line-height:1.5;margin:9px 0 0}
@media(max-width:1350px){.tke-v203-tab-content>.ni310-handover-panel{grid-template-columns:1fr!important}}
@media(max-width:720px){.tke-v203-tab-content>.ni310-handover-panel{padding:12px!important;gap:12px!important}.ni310-handover-panel>.tke-card-head{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;padding:5px 0 10px!important}.ni310-handover-panel>.tke-card-head::before{width:40px;height:40px;font-size:24px}.ni310-handover-panel>.tke-card-head>div{padding-left:10px}.ni310-handover-panel>.tke-card-head h2{font-size:21px!important}.ni310-handover-panel>.tke-card-head .tke-or-summary{grid-column:1/-1;justify-self:start!important}.ni310-handover-panel>.tke-or-row{padding:14px!important}.ni310-handover-panel .tke-or-row-head>div{grid-template-columns:36px minmax(0,1fr)!important;gap:8px!important}.ni310-handover-panel .tke-or-row-head>div::before{width:35px;height:35px;font-size:18px}.ni310-handover-panel .tke-or-row-head strong{font-size:13px!important}.ni310-handover-panel .tke-or-row-head>b{font-size:10px!important;padding:6px 9px!important}.ni310-handover-panel .tke-or-shared-checklist{flex-direction:column!important;align-items:stretch!important}.ni310-handover-panel .ni310-acceptance-actions{grid-template-columns:1fr}.ni310-handover-panel .ni310-acceptance-upload{grid-template-columns:1fr}.ni310-handover-panel .ni310-save-file{width:100%}.ni310-handover-panel .ni310-open-acceptance{width:100%;box-sizing:border-box}.ni310-handover-panel .tke-or-requirement-form{align-items:stretch!important}.ni310-handover-panel .tke-or-requirement-form .tke-btn{width:auto!important}}

/* Build 2: match the accepted NI Office handover design, including real SVG icons. */
@layer tke-page-typography {
.ni397-project-app .tke-v203-tab-content{container-type:inline-size}
.ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 18px!important;align-items:stretch!important;padding:24px!important;margin:0!important;background:linear-gradient(140deg,#fff,#faf9ff)!important;border:1px solid #e2def0!important;border-radius:20px!important;box-shadow:0 8px 25px #2413430d!important;width:100%!important;box-sizing:border-box!important}
.ni310-handover-panel>.tke-card-head{display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;align-items:start!important;gap:18px!important;grid-column:1/-1!important;padding:0 0 24px!important;min-height:92px!important;margin:0!important}
.ni310-handover-panel>.tke-card-head::before,.ni310-handover-panel .tke-or-row-head>div::before{display:none!important;content:none!important}
.ni310-handover-panel .ni310-section-icon{grid-column:1;grid-row:1;width:60px;height:60px;display:grid;place-items:center;background:linear-gradient(130deg,#f8f5ff,#efe9ff);border-radius:14px;color:#6920be}
.ni310-handover-panel .ni310-section-icon svg{width:34px;height:34px}
.ni310-handover-panel>.tke-card-head>div{grid-column:2;grid-row:1;border-left:3px solid #922ae1;padding-left:19px!important;min-width:0}
.ni310-handover-panel>.tke-card-head h2{font-size:32px!important;line-height:1.12!important;letter-spacing:-.025em!important;font-weight:800!important;color:#12122f!important;margin:0 0 6px!important}
.ni310-handover-panel>.tke-card-head p{font-size:16px!important;line-height:1.4!important;color:#515373!important;margin:0!important}
.ni310-handover-panel>.tke-card-head>.tke-or-summary{grid-column:3;grid-row:1;justify-self:end!important;font-size:17px!important;font-weight:800!important;padding:11px 16px!important;background:#fbe8ed!important;color:#191632!important;-webkit-text-fill-color:#191632!important}
.ni310-handover-panel>.tke-or-row{display:flex!important;flex-direction:column!important;min-width:0!important;gap:0!important;margin:0!important;padding:17px 20px 18px!important;border:1px solid #e0dcf1!important;border-left:4px solid #922ae1!important;border-radius:18px!important;box-shadow:0 4px 11px #19112c13!important;background:#fff!important}
.ni310-handover-panel>.tke-or-row.is-complete{border-left-color:#34a06e!important}
.ni310-handover-panel>.ni310-kind-list{min-height:186px!important}.ni310-handover-panel>.ni310-kind-image,.ni310-handover-panel>.ni310-kind-document{min-height:160px!important}.ni310-handover-panel>.ni310-kind-checkbox{min-height:141px!important}.ni310-handover-panel>.ni310-kind-acceptance{min-height:238px!important}
.ni310-handover-panel .tke-or-row-head{min-height:56px!important;align-items:flex-start!important;gap:12px!important}
.ni310-handover-panel .tke-or-row-head>div{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:14px!important;row-gap:4px!important;align-items:center!important;min-width:0!important;flex:1!important}
.ni310-handover-panel .ni310-card-icon{display:grid!important;place-items:center!important;width:49px;height:49px;grid-column:1!important;grid-row:1/3!important;border-radius:12px;background:#f1ebff!important;color:#6d25c3!important;box-sizing:border-box}
.ni310-handover-panel .ni310-card-icon svg{display:block!important;width:29px!important;height:29px!important}
.ni310-handover-panel .tke-or-row-head strong{font-size:18px!important;font-weight:800!important;line-height:1.25!important;letter-spacing:-.01em!important;color:#101129!important;grid-column:2!important;grid-row:1!important;align-self:end!important}
.ni310-handover-panel .tke-or-row-head span:not(.ni310-card-icon){grid-column:2!important;grid-row:2!important;font-size:14px!important;line-height:1.4!important;color:#373759!important}
.ni310-handover-panel .tke-or-row-head>b{display:inline-flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important;border-radius:999px!important;padding:8px 12px!important;font-size:13px!important;line-height:1.15!important;font-weight:750!important;color:#a12439!important;background:#fce9ed!important}
.ni310-handover-panel .tke-or-shared-checklist{display:flex!important;align-items:center!important;justify-content:space-between!important;flex:1 1 auto!important;gap:14px!important;min-height:75px!important;margin:15px 0 0!important;padding:12px 14px!important;background:linear-gradient(110deg,#f8f7ff,#f0eeff)!important;border-left:5px solid #ff8524!important;border-radius:10px!important;box-sizing:border-box!important}
.ni310-handover-panel .tke-or-shared-checklist strong{font-size:23px!important;line-height:1.15!important;font-weight:780!important}
.ni310-handover-panel .tke-or-shared-checklist span{font-size:13px!important;line-height:1.4!important}
.ni310-handover-panel .tke-btn-secondary{font-size:13px!important;min-height:47px!important;padding:10px 17px!important;border-radius:11px!important}
.ni310-handover-panel .tke-or-requirement-form{margin:15px 0 0!important;gap:10px!important;flex:1 1 auto!important;min-height:48px!important;flex-wrap:nowrap!important}
.ni310-handover-panel .tke-or-requirement-form .tke-btn-primary{min-height:46px!important;min-width:96px!important;font-size:14px!important;font-weight:800!important;border-radius:12px!important}
.ni310-handover-panel .tke-or-requirement-form>input[type=file]{flex:1 1 auto!important;width:100%!important;min-width:0!important;min-height:49px!important;font-size:13px!important;border-color:#d4cde7!important;border-radius:11px!important;background:#faf9ff!important}
.ni310-handover-panel .tke-or-requirement-form>input[type=file]::file-selector-button{background:#fff;border:1px solid #a68acb;border-radius:8px;color:#5120a9;font-weight:750;font-size:13px;padding:8px 13px;margin-right:11px;cursor:pointer}
.ni310-handover-panel .tke-or-upload-actions{flex-wrap:nowrap!important;flex:1 1 auto!important;gap:10px!important;min-width:0!important}
.ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:1 1 auto!important;min-height:49px!important;white-space:normal!important}
.ni310-handover-panel .tke-or-upload-actions svg{width:20px!important;height:20px!important;flex:0 0 20px!important}
.ni310-handover-panel .tke-or-requirement-form>label:has(input[type=checkbox]){font-size:18px!important;font-weight:450!important;min-height:47px!important}
.ni310-handover-panel .ni310-acceptance-actions{display:grid!important;grid-template-columns:minmax(0,1.3fr) auto!important;align-items:center!important;gap:18px!important;margin-top:12px!important}
.ni310-handover-panel .ni310-acceptance-upload{display:block!important;min-width:0!important}
.ni310-handover-panel .ni310-drop-target{min-height:142px!important;border-radius:17px!important;border:2px dashed #c5ade9!important;gap:4px!important}
.ni310-handover-panel .ni310-upload-icon{width:42px;height:40px;display:grid;place-items:center;color:#6e26c4}
.ni310-handover-panel .ni310-upload-icon svg{width:40px;height:40px}
.ni310-handover-panel .ni310-drop-target strong{font-size:14px!important;line-height:1.25!important}
.ni310-handover-panel .ni310-drop-target small{font-size:11px!important}
.ni310-handover-panel .ni310-file-pick{font-size:13px!important;padding:8px 18px!important}
.ni310-handover-panel .ni310-save-file{display:none!important;min-width:144px!important;margin:8px auto 0!important}
.ni310-handover-panel .ni310-save-file.has-file{display:flex!important;align-items:center;justify-content:center}
.ni310-handover-panel .ni310-open-acceptance{font-size:13px!important;min-height:49px!important;padding:12px 17px!important}
.ni310-handover-panel .ni310-acceptance-note{font-size:10px!important;line-height:1.4!important;margin:8px 0 0!important}
}
@layer tke-page-typography {
@container (max-width:1040px){.ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{grid-template-columns:1fr!important}}
@media(max-width:1120px){.ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{grid-template-columns:1fr!important}}
@media(max-width:650px){
.ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{padding:12px!important;gap:12px!important;border-radius:14px!important}
.ni310-handover-panel>.tke-card-head{grid-template-columns:46px minmax(0,1fr)!important;gap:12px!important;min-height:0!important;padding-bottom:8px!important}
.ni310-handover-panel .ni310-section-icon{width:44px;height:44px}.ni310-handover-panel .ni310-section-icon svg{width:26px;height:26px}
.ni310-handover-panel>.tke-card-head>div{padding-left:10px!important}.ni310-handover-panel>.tke-card-head h2{font-size:22px!important}.ni310-handover-panel>.tke-card-head p{font-size:12px!important}
.ni310-handover-panel>.tke-card-head>.tke-or-summary{grid-column:1/-1!important;grid-row:2!important;justify-self:start!important;font-size:13px!important}
.ni310-handover-panel>.tke-or-row{padding:14px!important;min-height:0!important}
.ni310-handover-panel .tke-or-row-head>div{grid-template-columns:39px minmax(0,1fr)!important;column-gap:9px!important}
.ni310-handover-panel .ni310-card-icon{width:37px;height:37px;border-radius:9px}.ni310-handover-panel .ni310-card-icon svg{width:24px!important;height:24px!important}
.ni310-handover-panel .tke-or-row-head strong{font-size:14px!important}.ni310-handover-panel .tke-or-row-head span:not(.ni310-card-icon){font-size:11px!important}.ni310-handover-panel .tke-or-row-head>b{font-size:11px!important;padding:6px 8px!important}
.ni310-handover-panel .tke-or-shared-checklist{flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:12px!important}
.ni310-handover-panel .tke-or-shared-checklist strong{font-size:18px!important}.ni310-handover-panel .tke-or-shared-checklist span{font-size:11px!important}
.ni310-handover-panel .tke-or-requirement-form{flex-wrap:wrap!important}.ni310-handover-panel .tke-or-requirement-form>input[type=file]{flex-basis:100%!important}.ni310-handover-panel .tke-or-upload-actions{flex-wrap:wrap!important;flex-basis:100%!important}.ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary{flex-basis:120px!important;font-size:11px!important}
.ni310-handover-panel .tke-or-requirement-form .tke-btn-primary{width:100%!important}
.ni310-handover-panel .ni310-acceptance-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important}.ni310-handover-panel .ni310-open-acceptance{width:100%!important}
}
}


/* NI Office v3.1.0 Build 3 – reference-fidelity refinement.
 * The earlier CSS is deliberately left unchanged; final rules are scoped to the
 * project-leader handover panel and reside in the original page typography layer.
 * Compact desktop layout; mobile still expands naturally. */
@layer tke-page-typography {
  /* Original mockup has compact cards. The previous layout accidentally added
     min-height *on top* of padding because of content-box sizing. */
  .ni397-project-app .tke-v203-tab-content>.ni310-handover-panel {
    gap: 12px 16px!important;
    padding: 18px 22px!important;
    border-radius: 20px!important;
  }
  .ni310-handover-panel>.tke-card-head {
    box-sizing: border-box!important;
    min-height: 0!important;
    padding: 0 0 16px!important;
    margin: 0!important;
    gap: 14px!important;
    grid-template-columns: 56px minmax(0,1fr) auto!important;
  }
  .ni310-handover-panel .ni310-section-icon {width:52px!important;height:52px!important}
  .ni310-handover-panel .ni310-section-icon svg {width:32px!important;height:32px!important}
  .ni310-handover-panel>.tke-card-head h2 {font-size:29px!important}
  .ni310-handover-panel>.tke-card-head p {font-size:14px!important;line-height:1.35!important}
  .ni310-handover-panel>.tke-card-head>.tke-or-summary{font-size:15px!important;padding:10px 15px!important}
  .ni310-handover-panel>.tke-or-row {
    box-sizing:border-box!important;
    min-height:0!important;
    height:auto!important;
    padding:13px 16px 14px!important;
    border-radius:16px!important;
    gap:0!important;
  }
  .ni310-handover-panel>.ni310-kind-list{min-height:163px!important}
  .ni310-handover-panel>.ni310-kind-image,.ni310-handover-panel>.ni310-kind-document{min-height:145px!important}
  .ni310-handover-panel>.ni310-kind-checkbox{min-height:125px!important}
  .ni310-handover-panel>.ni310-kind-acceptance{min-height:203px!important}
  .ni310-handover-panel .tke-or-row-head{
    box-sizing:border-box!important;
    min-height:0!important;
    height:auto!important;
    align-items:center!important;
  }
  .ni310-handover-panel .tke-or-row-head>div {
    grid-template-columns:47px minmax(0,1fr)!important;
    column-gap:12px!important;
    row-gap:3px!important;
    min-height:44px!important;
  }
  .ni310-handover-panel .ni310-card-icon {width:44px!important;height:44px!important;border-radius:11px!important}
  .ni310-handover-panel .ni310-card-icon svg {width:26px!important;height:26px!important}
  .ni310-handover-panel .tke-or-row-head strong{font-size:16px!important;line-height:1.2!important}
  .ni310-handover-panel .tke-or-row-head span:not(.ni310-card-icon){font-size:12px!important;line-height:1.3!important}
  .ni310-handover-panel .tke-or-row-head>b {padding:6px 10px!important;font-size:11.5px!important}
  .ni310-handover-panel .tke-or-shared-checklist {
    box-sizing:border-box!important;
    flex:0 1 auto!important;
    min-height:67px!important;
    height:auto!important;
    margin:10px 0 0!important;
    padding:9px 10px!important;
    gap:8px!important;
  }
  .ni310-handover-panel .tke-or-shared-checklist strong{font-size:19px!important;line-height:1.16!important}
  .ni310-handover-panel .tke-or-shared-checklist span{font-size:11.5px!important;line-height:1.35!important}
  /* All action buttons: one sensible 40px control height. Never stretch
     to match a neighbouring item's flex height. */
  .ni310-handover-panel .tke-btn-secondary,
  .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary,
  .ni310-handover-panel .tke-or-requirement-form .tke-btn-primary,
  .ni310-handover-panel .ni310-open-acceptance,
  .ni310-handover-panel .ni310-save-file {
    box-sizing:border-box!important;
    min-height:40px!important;
    height:40px!important;
    max-height:40px!important;
    padding:0 12px!important;
    border-radius:9px!important;
    line-height:1.2!important;
    font-size:11.5px!important;
    font-weight:750!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    align-self:center!important;
  }
  .ni310-handover-panel .tke-or-requirement-form {
    box-sizing:border-box!important;
    margin:10px 0 0!important;
    min-height:40px!important;
    height:auto!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form .tke-btn-primary {
    flex:0 0 auto!important;
    min-width:76px!important;
    width:76px!important;
    padding:0 12px!important;
    justify-content:center!important;
    background:linear-gradient(115deg,#6b10d5,#9d27d9 52%,#ff7e24)!important;
  }
  .ni310-handover-panel .tke-or-upload-actions {
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    height:40px!important;
    min-height:40px!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
  }
  .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary {
    display:inline-flex!important;
    flex:1 1 auto!important;
    justify-content:center!important;
    align-items:center!important;
    margin:0!important;
    width:auto!important;
    min-width:0!important;
    text-align:center!important;
    background:linear-gradient(180deg,#fff,#faf9ff)!important;
    border-color:#d6ceeb!important;
  }
  .ni310-handover-panel .tke-or-upload-actions svg {width:17px!important;height:17px!important;flex:0 0 17px!important}
  .ni310-handover-panel .tke-or-requirement-form>input[type=file]{
    box-sizing:border-box!important;
    min-height:40px!important;
    height:40px!important;
    max-height:40px!important;
    flex:1 1 auto!important;
    font-size:12px!important;
    padding:2px 8px!important;
    border-radius:10px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form>input[type=file]::file-selector-button{font-size:11.5px!important;padding:7px 12px!important}
  .ni310-handover-panel .tke-or-requirement-form>label:has(input[type=checkbox]){
    height:40px!important;
    min-height:40px!important;
    padding:7px 11px!important;
    font-size:16px!important;
    gap:9px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form input[type=checkbox]{width:17px!important;height:17px!important}
  /* Acceptance: original visual reference is a short, clean upload target
     next to a thin separator and an outlined open-protocol button. */
  .ni310-handover-panel .ni310-acceptance-actions {
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.25fr) auto!important;
    gap:16px!important;
    align-items:center!important;
    margin:10px 0 0!important;
  }
  .ni310-handover-panel .ni310-acceptance-upload{min-width:0!important;display:block!important;position:relative!important}
  .ni310-handover-panel .ni310-acceptance-upload::after {
    content:"";
    position:absolute;
    top:8px;
    bottom:8px;
    right:-9px;
    width:1px;
    background:#dbd5ea;
  }
  .ni310-handover-panel .ni310-drop-target {
    box-sizing:border-box!important;
    min-height:117px!important;
    height:auto!important;
    padding:8px 10px!important;
    border-radius:14px!important;
    gap:3px!important;
  }
  .ni310-handover-panel .ni310-upload-icon{width:30px!important;height:31px!important}
  .ni310-handover-panel .ni310-upload-icon svg{width:29px!important;height:29px!important}
  .ni310-handover-panel .ni310-drop-target strong{font-size:12px!important;line-height:1.2!important}
  .ni310-handover-panel .ni310-drop-target small{font-size:10px!important;line-height:1.2!important}
  .ni310-handover-panel .ni310-file-pick{font-size:11.5px!important;padding:6px 14px!important}
  .ni310-handover-panel .ni310-save-file.has-file{height:40px!important;margin:7px auto 0!important}
  .ni310-handover-panel .ni310-open-acceptance {font-size:11.5px!important;white-space:nowrap!important;align-self:center!important}
  .ni310-handover-panel .ni310-acceptance-note{
    /* Keep the existing legal/operational distinction accessible to readers
       without shifting the design. */
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;margin:-1px!important;overflow:hidden!important;
    clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
  }
  .ni310-handover-panel>.ni310-kind-acceptance{position:relative!important}
  .ni310-handover-panel .ni310-uploaded-docs{margin-top:8px!important}
  /* Narrow screens: keep minimum 40px touch targets; never force a three-
     button row into a smaller column. */
  @container (max-width:940px){
    .ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{grid-template-columns:1fr!important}
  }
  @media(max-width:1120px){
    .ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{grid-template-columns:1fr!important}
  }
  @media(max-width:690px){
    .ni310-handover-panel>.tke-or-row{padding:12px!important;min-height:0!important}
    .ni310-handover-panel .tke-or-row-head strong{font-size:14px!important}
    .ni310-handover-panel .tke-or-row-head span:not(.ni310-card-icon){font-size:11px!important}
    .ni310-handover-panel .tke-or-shared-checklist{min-height:0!important;align-items:stretch!important}
    .ni310-handover-panel .tke-or-shared-checklist .tke-btn-secondary{width:100%!important}
    .ni310-handover-panel .tke-or-requirement-form{height:auto!important;flex-wrap:wrap!important}
    .ni310-handover-panel .tke-or-upload-actions{height:auto!important;min-height:0!important;flex-wrap:wrap!important;flex-basis:100%!important}
    .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary{flex:1 1 130px!important}
    .ni310-handover-panel .tke-or-requirement-form .tke-btn-primary{min-width:85px!important;flex:1 1 85px!important}
    .ni310-handover-panel .ni310-acceptance-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important}
    .ni310-handover-panel .ni310-acceptance-upload::after{display:none!important}
    .ni310-handover-panel .ni310-open-acceptance{width:100%!important;max-height:none!important;height:auto!important;min-height:40px!important;white-space:normal!important}
  }
}
/* Final mobile legibility override: no clipped header and no horizontal scroll. */
@layer tke-page-typography {
  @media(max-width:690px){
    .ni310-handover-panel>.tke-card-head h2{
      font-size:20px!important;
      line-height:1.15!important;
      white-space:normal!important;
      overflow-wrap:anywhere!important;
      word-break:normal!important;
      max-width:100%!important;
    }
    .ni310-handover-panel>.tke-card-head>div{min-width:0!important}
    .ni310-handover-panel .ni310-acceptance-actions{min-width:0!important}
    .ni310-handover-panel .tke-or-row-head strong{overflow-wrap:anywhere!important}
    .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary{
      white-space:normal!important;
      max-height:none!important;
      min-height:40px!important;
      height:auto!important;
    }
  }
}


/* NI Office v3.1.0 Build 4: owner-approved final button proportions.
 * Desktop buttons 32px (80% of Build 3's 40px) with centered labels.
 * Touch devices retain a larger hit area for usability. Strictly scoped to
 * project-level handover requirements; no change to site-wide buttons. */
@layer tke-page-typography {
  .ni310-handover-panel .tke-or-shared-checklist > a.tke-btn-secondary,
  .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary,
  .ni310-handover-panel .tke-or-requirement-form > button.tke-btn-primary,
  .ni310-handover-panel .ni310-open-acceptance,
  .ni310-handover-panel .ni310-save-file,
  .ni310-handover-panel .tke-or-list .tke-btn {
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    vertical-align:middle!important;
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding:0 10px!important;
    line-height:1.1!important;
    font-size:11px!important;
    font-weight:750!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  /* The label on ÅBN TJEKLISTE previously inherited line-height/inline
     alignment from the old template. Both axes are now explicitly centered. */
  .ni310-handover-panel .tke-or-shared-checklist > a.tke-btn-secondary {
    flex:0 0 auto!important;
    white-space:nowrap!important;
    text-decoration:none!important;
  }
  .ni310-handover-panel .tke-or-upload-actions {
    height:32px!important;
    min-height:32px!important;
    gap:6px!important;
  }
  .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary {
    flex:1 1 auto!important;
    min-width:0!important;
    gap:5px!important;
    padding:0 9px!important;
  }
  .ni310-handover-panel .tke-or-upload-actions svg {
    width:15px!important;height:15px!important;flex:0 0 15px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form {
    min-height:32px!important;
    gap:7px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form > input[type=file] {
    box-sizing:border-box!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding:0 6px!important;
    font-size:11px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form > input[type=file]::file-selector-button {
    padding:5px 10px!important;
    font-size:11px!important;
    border-radius:7px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form > label:has(input[type=checkbox]) {
    height:34px!important;
    min-height:34px!important;
    font-size:15px!important;
    padding:5px 10px!important;
  }
  .ni310-handover-panel .tke-or-requirement-form > button.tke-btn-primary {
    min-width:67px!important;
    width:67px!important;
    flex:0 0 67px!important;
  }
  .ni310-handover-panel .ni310-file-pick {
    padding:5px 12px!important;
    font-size:11px!important;
    line-height:1.1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .ni310-handover-panel .ni310-save-file.has-file {
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    margin:7px auto 0!important;
  }
  /* On touch screens preserve an adequately sized tap target; the visual
     text and horizontal proportions stay compact, avoiding wrapping. */
  @media (pointer:coarse) {
    .ni310-handover-panel .tke-or-shared-checklist > a.tke-btn-secondary,
    .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary,
    .ni310-handover-panel .tke-or-requirement-form > button.tke-btn-primary,
    .ni310-handover-panel .ni310-open-acceptance,
    .ni310-handover-panel .ni310-save-file.has-file {
      min-height:40px!important;
      height:40px!important;
      max-height:40px!important;
    }
    .ni310-handover-panel .tke-or-upload-actions {
      height:auto!important;
      min-height:40px!important;
    }
  }
  @media (max-width:690px) {
    .ni310-handover-panel .tke-or-shared-checklist > a.tke-btn-secondary,
    .ni310-handover-panel .ni310-open-acceptance {
      width:100%!important;
      box-sizing:border-box!important;
      white-space:normal!important;
      min-height:40px!important;
      height:auto!important;
      max-height:none!important;
      padding:8px 11px!important;
    }
    .ni310-handover-panel .tke-or-upload-actions {
      height:auto!important;
      min-height:0!important;
      flex-wrap:wrap!important;
    }
    .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary {
      min-height:40px!important;
      height:auto!important;
      max-height:none!important;
      padding:8px 10px!important;
    }
    .ni310-handover-panel .tke-or-requirement-form > button.tke-btn-primary,
    .ni310-handover-panel .ni310-save-file.has-file {
      min-height:40px!important;
      height:40px!important;
      max-height:40px!important;
    }
  }
}

/* Keep upload submit hidden until a valid file is selected. This has to beat the
 * generic flex button sizing rule above in the same CSS cascade layer. */
@layer tke-page-typography {
 .ni310-handover-panel .ni310-save-file:not(.has-file) {display:none!important;}
 .ni310-handover-panel .ni310-save-file.has-file {display:inline-flex!important;}
}

/* Build 19: review stays within existing Lift Check requirement, not a second panel. */
.ni310-handover-panel>.tke-or-row.ni323-awaiting{border-left-color:#ed8b26!important}
.ni310-handover-panel .tke-or-row.ni323-awaiting .tke-or-row-head>b{background:#fff0d9!important;color:#9a4c0a!important}
.ni323-review-list,.ni323-report{display:grid;gap:10px;min-width:0}
.ni323-report{border:1px solid #e6d9f4;background:#faf7fd;border-radius:12px;padding:12px;margin:6px 0}
.ni323-review-list .ni323-report{border-left:3px solid #ed8b26}
.ni323-report.ni323-approved{border-left:3px solid #328c63;background:#f2faf5}
.ni323-report-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ni323-report-head>div{flex:1 1 155px;min-width:0}
.ni323-report-head strong,.ni323-report-head small{display:block;overflow-wrap:anywhere}
.ni323-report-head small{font-size:11px;color:#526078}
.ni323-pdf{font-size:11px;font-weight:800;display:grid;place-items:center;min-width:36px;height:40px;border-radius:8px;color:#7525ca;background:#eee6fa}
.ni323-review-form{display:grid;gap:8px}
.ni323-buttons{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.ni323-confirm{display:flex!important;gap:6px;align-items:center;font-size:12px}
.ni323-confirm input{width:auto!important}
.ni323-warning{color:#9a4c0a;font-size:12px;margin:0}
.ni323-reject{border:1px solid #efb8b8!important;background:#fff!important;color:#b91c1c!important;-webkit-text-fill-color:#b91c1c!important}
.ni323-overview{padding:18px;margin:12px 0;border-left:4px solid #ed8b26}
.ni323-overview h2{font-size:17px;margin:0 0 8px}
.ni323-overview-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;text-decoration:none;flex-wrap:wrap;border-top:1px solid #ebe6f1}
.ni323-overview-row span{display:grid;gap:2px}.ni323-overview-row small{color:#58667a}.ni323-overview-row b{color:#a1530b;font-size:12px}
@media(max-width:600px){.ni323-report-head>a{width:100%;text-align:center;justify-content:center}.ni323-buttons>button{flex:1 1 140px}}

/* v3.2.0: compact project requirements. Keep the technician view unchanged. */
@layer tke-page-typography {
 .ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{gap:10px 14px!important;padding:16px 19px!important;align-items:start!important}
 .ni310-handover-panel>.ni324-handover-notice{grid-column:1/-1!important;min-width:0!important;margin:0!important;padding:0!important}
 .ni310-handover-panel>.ni324-handover-notice .tke-v203-notice{padding:9px 12px!important;margin:0!important;border-radius:8px;background:#edf7f0;color:#176844;font-size:12px!important}
 .ni310-handover-panel>.tke-empty-block,.ni310-handover-panel>.tke-or-ready,.ni310-handover-panel>.tke-or-blocker{grid-column:1/-1!important}
 .ni310-handover-panel>.tke-or-row{box-sizing:border-box!important;min-width:0!important;min-height:0!important;padding:12px 14px!important;align-self:stretch!important}
 .ni310-handover-panel>.ni310-kind-list{min-height:147px!important}
 .ni310-handover-panel>.ni310-kind-document,.ni310-handover-panel>.ni310-kind-image{min-height:130px!important}
 .ni310-handover-panel>.ni310-kind-checkbox{min-height:112px!important}
 .ni310-handover-panel>.ni310-kind-acceptance{min-height:183px!important}
 .ni310-handover-panel .tke-or-shared-checklist{margin-top:8px!important;min-height:60px!important;padding:8px 10px!important}
 .ni310-handover-panel .ni310-drop-target{min-height:105px!important}
 .ni310-handover-panel .tke-or-row.is-complete .tke-or-row-head>b{background:#e4f6ea!important;color:#197449!important;-webkit-text-fill-color:#197449!important}
 .ni310-handover-panel .tke-or-row.ni323-awaiting .tke-or-row-head>b{background:#fff0d9!important;color:#9a4c0a!important;-webkit-text-fill-color:#9a4c0a!important}
 .ni310-handover-panel .ni323-report{padding:9px!important;gap:7px!important;margin:5px 0!important;box-sizing:border-box!important;max-width:100%!important}
 .ni310-handover-panel .ni323-report-head>div>strong{font-size:14px!important;line-height:1.3!important;font-weight:650!important;overflow-wrap:anywhere!important}
 .ni310-handover-panel .ni323-report-head>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;max-width:100%!important}
 .ni310-handover-panel .ni323-report-head>div{flex:1 1 130px!important;min-width:0!important}
 .ni310-handover-panel .tke-or-requirement-form{width:100%!important;max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;margin-top:8px!important;box-sizing:border-box!important}
 .ni310-handover-panel .tke-or-requirement-form>.tke-v245-evidence-panel,.ni310-handover-panel .tke-or-requirement-form>.tke-v245-add-heading{flex:0 0 100%!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 .ni310-handover-panel .tke-or-requirement-form>input[type=file]{width:0!important;flex:1 1 150px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 .ni310-handover-panel .tke-or-requirement-form>button.tke-btn-primary{flex:0 0 67px!important;max-width:100%!important;box-sizing:border-box!important}
 .ni310-handover-panel .tke-or-upload-actions{min-width:0!important;flex:1 1 240px!important;flex-wrap:wrap!important;height:auto!important}
 .ni310-handover-panel .tke-or-upload-actions label.tke-btn-secondary{min-width:0!important;white-space:normal!important}
 .ni397-project-app .tke-v224-handover-banner{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:12px!important}
 .ni397-project-app .tke-v224-handover-banner>.tke-v224-handover-btn{justify-self:end!important}
 .ni397-project-app .ni324-handover-stats{display:flex!important;flex-direction:column!important;align-items:center!important;justify-self:center!important;gap:5px!important;text-align:center!important}
 .ni397-project-app .ni324-handover-count{display:inline-flex!important;justify-content:center!important;align-items:center!important;border-radius:999px!important;padding:9px 16px!important;background:#fce7eb!important;color:#172033!important;font-size:14px!important;font-weight:800!important;white-space:nowrap!important}
 .ni397-project-app .ni324-handover-count.is-ready{background:#e4f6ea!important;color:#197449!important}
 @media(max-width:850px){
  .ni397-project-app .tke-v224-handover-banner{grid-template-columns:minmax(0,1fr) auto!important}
  .ni397-project-app .tke-v224-handover-title{grid-column:1/-1!important}
  .ni397-project-app .ni324-handover-stats{justify-self:start!important}
 }
 @media(max-width:690px){
  .ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{padding:10px!important;gap:10px!important}
  .ni310-handover-panel>.tke-or-row{min-height:0!important;padding:11px!important}
  .ni310-handover-panel .tke-or-requirement-form>input[type=file]{flex-basis:100%!important;width:100%!important}
  .ni310-handover-panel .tke-or-requirement-form>button.tke-btn-primary{flex:1 1 100%!important;width:100%!important}
  .ni310-handover-panel .ni323-buttons>button{height:auto!important;min-height:40px!important;white-space:normal!important}
  .ni397-project-app .tke-v224-handover-banner{grid-template-columns:1fr!important}
  .ni397-project-app .ni324-handover-stats,.ni397-project-app .tke-v224-handover-banner>.tke-v224-handover-btn{justify-self:center!important}
 }
 @media(pointer:coarse){.ni310-handover-panel .ni323-report-head>a,.ni310-handover-panel .ni323-buttons>button{min-height:40px!important}}
}
/* Administrator-only task panel. */
.ni324-task-admin{display:grid;gap:16px;min-width:0}
.ni324-admin-head h2{margin:0;font-size:28px;font-weight:800}.ni324-admin-head p{margin:5px 0;color:#53536c}
.ni324-task-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ni324-task-kpis>.tke-card{padding:15px!important;display:grid;gap:5px;background:#faf7fd!important;border:1px solid #e6d9f4!important}
.ni324-task-kpis strong{font-size:26px;font-weight:800}
.ni324-task-table-card{padding:18px!important;display:grid;gap:12px;min-width:0}
.ni324-task-tabs,.ni324-admin-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ni324-action-form{margin:0!important;min-width:0}
.ni324-task-filter,.ni324-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end}
.ni324-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0}
.ni324-task-filter label,.ni324-task-edit label{display:grid;gap:4px;min-width:0;font-size:12px;font-weight:650}
.ni324-task-filter input,.ni324-task-filter select,.ni324-task-edit input:not([type=checkbox]),.ni324-task-edit select,.ni324-task-edit textarea{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #dcd7e8;border-radius:8px;background:#fff;color:#172033}
.ni324-admin-item{padding:13px;border:1px solid #e4dff0;border-radius:12px;display:grid;gap:10px;min-width:0}
.ni324-admin-row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.ni324-admin-row>div{display:grid;gap:4px;min-width:0;flex:1 1 200px;overflow-wrap:anywhere}
.ni324-admin-row strong{font-size:15px!important;font-weight:700!important}
.ni324-admin-row small,.ni324-admin-subtext{color:#58667a;font-size:12px!important}
.ni324-task-edit summary{cursor:pointer;font-size:13px;color:#7525ca;font-weight:700;padding:5px 0}
.ni324-task-edit>form{display:grid;gap:8px;margin-top:9px!important}
.ni324-checks{display:flex;gap:12px;flex-wrap:wrap}.ni324-checks label{display:flex!important;align-items:center;gap:5px}
.ni324-job-status{font-size:12px;font-weight:700;background:#f1eafa;color:#6622a9;padding:6px 10px;border-radius:999px}
.ni324-admin-feedback{padding:10px 14px;background:#f1edf9;border-radius:9px;color:#34235c}
.ni324-danger{border:1px solid #efb8b8!important;background:#fff!important;color:#b91c1c!important;-webkit-text-fill-color:#b91c1c!important}
.ni324-delete-dialog{max-width:420px;width:calc(100% - 32px);border:1px solid #dfd7f0;border-radius:15px;padding:20px;box-shadow:0 15px 70px #17112544;color:#172033;background:#fff}
.ni324-delete-dialog::backdrop{background:#17112577}
@media(max-width:850px){.ni324-task-filter,.ni324-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.ni324-task-filter,.ni324-edit-grid,.ni324-task-kpis{grid-template-columns:1fr}.ni324-task-admin .tke-btn{min-height:40px}.ni324-task-table-card{padding:12px!important}}

/* Build 32 – a selected file is pending, not already saved. */
.tke-or-requirement-form[data-ni332-setup-upload]{flex-wrap:wrap!important}
.tke-or-requirement-form[data-ni332-setup-upload] .ni332-setup-file-status[hidden]{display:none!important}
.tke-or-requirement-form[data-ni332-setup-upload] .ni332-setup-file-status:not([hidden]){
  display:flex!important;flex-direction:column;gap:3px;flex:1 0 100%;min-width:0;box-sizing:border-box;
  background:#fff8e6;border:1px solid #e8bf72;border-left:4px solid #d99016;border-radius:8px;
  padding:9px 11px;color:#784710!important;font-size:12px;line-height:1.35;overflow-wrap:anywhere
}
.tke-or-requirement-form[data-ni332-setup-upload] .ni332-setup-file-heading{font-size:13px;font-weight:750;color:#784710!important}
.tke-or-requirement-form[data-ni332-setup-upload] .ni332-setup-file-names{font-weight:600;overflow-wrap:anywhere}
.tke-or-requirement-form[data-ni332-setup-upload] .ni332-setup-file-status small{color:#784710!important;font-size:11px}
.ni310-handover-panel .tke-or-requirement-form[data-ni332-setup-upload] .tke-btn-primary.ni332-file-ready,
.tke-or-requirement-form[data-ni332-setup-upload] .tke-btn-primary.ni332-file-ready{
  outline:2px solid #d99016!important;outline-offset:2px!important;font-weight:800!important
}

/* Build 37 – only the requirement body; project hero, tabs and readiness bar untouched. */
.ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{grid-template-columns:repeat(6,minmax(0,1fr))!important;align-items:start!important;gap:12px!important;padding:14px!important}
.ni397-project-app .ni310-handover-panel>.tke-or-row{grid-column:span 3!important;min-height:0!important;height:auto!important;align-self:start!important;padding:12px 14px!important}
.ni397-project-app .ni310-handover-panel>.ni310-kind-acceptance{grid-column:1/-1!important}
.ni397-project-app .ni310-handover-panel>.ni310-kind-list{grid-column:span 2!important}
.ni397-project-app .ni310-handover-panel>.ni324-handover-notice,.ni397-project-app .ni310-handover-panel>.tke-empty-block{grid-column:1/-1!important}
.ni397-project-app .ni310-handover-panel .tke-or-row-head{align-items:center!important;gap:8px!important;margin:0 0 8px!important}
.ni397-project-app .ni310-handover-panel .tke-or-row-head>div{grid-template-columns:36px minmax(0,1fr)!important;gap:2px 9px!important}
.ni397-project-app .ni310-handover-panel .ni310-card-icon{width:34px!important;height:34px!important;border-radius:8px!important}
.ni397-project-app .ni310-handover-panel .ni310-card-icon svg{width:20px!important;height:20px!important}
.ni397-project-app .ni310-handover-panel .tke-or-row-head strong{font-size:14px!important;line-height:1.25!important}
.ni397-project-app .ni310-handover-panel .tke-or-row-head span:not(.ni310-card-icon){font-size:11px!important;line-height:1.3!important}
.ni397-project-app .ni310-handover-panel .tke-or-row-head>b{font-size:10px!important;padding:5px 8px!important}
.ni397-project-app .ni310-handover-panel .tke-or-requirement-form{margin:8px 0 0!important;gap:6px!important}
.ni397-project-app .ni310-handover-panel .tke-or-requirement-form>label:has(input[type=checkbox]){min-height:34px!important;padding:6px 9px!important;font-size:13px!important}
.ni397-project-app .ni310-handover-panel .tke-or-shared-checklist{margin:6px 0 0!important;min-height:0!important;padding:8px!important;gap:6px!important;flex-direction:column!important;align-items:stretch!important}
.ni397-project-app .ni310-handover-panel .tke-or-shared-checklist strong{font-size:15px!important}
.ni397-project-app .ni310-handover-panel .tke-or-shared-checklist span{font-size:11px!important}
.ni397-project-app .ni310-handover-panel .tke-btn{min-height:32px!important;padding:6px 10px!important;font-size:11px!important}
.ni397-project-app .ni310-handover-panel .ni335-remove-file .ni335-remove-btn{color:#b91c1c!important;-webkit-text-fill-color:#b91c1c!important;border-color:#e8b6b6!important}
.ni397-project-app .ni310-handover-panel .ni310-acceptance-actions{margin-top:4px!important;gap:10px!important}
.ni397-project-app .ni310-handover-panel .ni310-drop-target{min-height:72px!important;padding:7px!important}
.ni397-project-app .ni310-handover-panel .ni337-file-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f7f6fb;border:1px solid #e6e1f1;border-radius:8px;padding:8px;min-width:0}
.ni397-project-app .ni310-handover-panel .ni337-file-copy{display:grid;flex:1 1 190px;gap:3px;min-width:0;overflow-wrap:anywhere;font-size:12px}
.ni397-project-app .ni310-handover-panel .ni337-file-copy small{font-size:11px;color:#625b72}
.ni397-project-app .ni310-handover-panel .ni336-qsc{display:grid!important;gap:6px!important;margin:8px 0 0!important;padding:8px!important;min-width:0!important;overflow-wrap:anywhere}
.ni397-project-app .ni310-handover-panel .ni336-qsc>strong,.ni397-project-app .ni310-handover-panel .ni336-qsc-doc strong{font-size:12px!important;line-height:1.3!important;font-weight:700!important}
.ni397-project-app .ni310-handover-panel .ni336-qsc small{font-size:11px!important;line-height:1.3!important}
.ni397-project-app .ni310-handover-panel .ni336-qsc-upload,.ni397-project-app .ni310-handover-panel .ni336-qsc-doc{display:flex!important;gap:6px!important;flex-wrap:wrap!important;align-items:center!important;min-width:0!important;margin:0!important;padding:5px 0!important}
.ni397-project-app .ni310-handover-panel .ni336-qsc-upload label,.ni397-project-app .ni310-handover-panel .ni336-qsc-doc>div{flex:1 1 100%;min-width:0!important;display:grid;gap:4px}
.ni397-project-app .ni310-handover-panel .ni336-qsc input[type=file]{width:100%;max-width:100%;font-size:11px}
.ni397-project-app .ni310-handover-panel .ni337-save-status{flex-basis:100%;font-size:11px;color:#327b58;min-height:0}
.ni397-project-app .ni310-handover-panel .ni337-save-status:empty{display:none}
.ni397-project-app .ni310-handover-panel .ni337-save-status.is-error{color:#ad2339;font-weight:700}
@media(max-width:1100px){.ni397-project-app .ni310-handover-panel>.ni310-kind-list{grid-column:span 3!important}}
@media(max-width:760px){.ni397-project-app .tke-v203-tab-content>.ni310-handover-panel{grid-template-columns:minmax(0,1fr)!important;padding:8px!important}.ni397-project-app .ni310-handover-panel>.tke-or-row{grid-column:1/-1!important}}

.ni397-project-app .ni310-handover-panel .ni337-qsc-details{margin-top:7px;border:1px solid #e4dff0;border-radius:8px;min-width:0;background:#faf9fd}
.ni397-project-app .ni310-handover-panel .ni337-qsc-details>summary{cursor:pointer;padding:7px 9px;font-size:11px;font-weight:700;color:#5f15b0}
.ni397-project-app .ni310-handover-panel .ni337-qsc-details .ni336-qsc{margin:0!important;border:0!important}
.ni397-project-app .ni310-handover-panel .ni337-check-meta{display:block;color:#625b72;font-size:11px;line-height:1.35;margin-top:6px;overflow-wrap:anywhere}
.ni397-project-app .ni310-handover-panel .ni310-kind-list .tke-or-shared-checklist .tke-btn{background:linear-gradient(115deg,#7514d7,#ad26c9 55%,#f76e38)!important;color:white!important;-webkit-text-fill-color:white!important;border:0!important;text-transform:none!important}

/* Build 38: the authoritative layout belongs to the SAME important cascade layer
 * as legacy handover styles. Unlayered !important overrides lose to this layer.
 * Only the project-leader requirements panel is affected. */
@layer tke-page-typography {
 #ni338-handover-layout.ni310-handover-panel {
   display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;
   grid-auto-flow:row!important;align-items:start!important;align-content:start!important;
   gap:10px!important;padding:12px!important;min-width:0!important;
   width:100%!important;max-width:100%!important;box-sizing:border-box!important;
 }
 #ni338-handover-layout.ni310-handover-panel>.tke-or-row {
   grid-column:span 6!important;align-self:start!important;min-width:0!important;
   width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;
   display:flex!important;flex-direction:column!important;gap:0!important;
   padding:11px 12px!important;margin:0!important;box-sizing:border-box!important;
   border-radius:12px!important;
 }
 #ni338-handover-layout.ni310-handover-panel>.ni310-kind-acceptance,
 #ni338-handover-layout.ni310-handover-panel>.ni338-slot-setup,
 #ni338-handover-layout.ni310-handover-panel>.ni338-slot-lift {grid-column:span 6!important}
 #ni338-handover-layout.ni310-handover-panel>.ni337-visma {grid-column:span 3!important}
 #ni338-handover-layout.ni310-handover-panel>.ni338-slot-checklist {grid-column:span 4!important}
 #ni338-handover-layout.ni310-handover-panel>.ni338-first-checklist {grid-column:1/span 4!important}
 #ni338-handover-layout.ni310-handover-panel>:not(.tke-or-row){grid-column:1/-1!important}
 #ni338-handover-layout .tke-or-row-head{
   display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
   gap:6px!important;margin:0 0 7px!important;padding:0!important;min-height:0!important;
 }
 #ni338-handover-layout .tke-or-row-head>div{
   display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
   gap:2px 7px!important;min-width:0!important;flex:1 1 auto!important;align-items:center!important;
 }
 #ni338-handover-layout .ni310-card-icon{
   width:30px!important;height:30px!important;min-width:0!important;min-height:0!important;border-radius:7px!important;
 }
 #ni338-handover-layout .ni310-card-icon svg{width:19px!important;height:19px!important}
 #ni338-handover-layout .tke-or-row-head strong{
   font-size:13px!important;line-height:1.25!important;font-weight:750!important;overflow-wrap:anywhere!important;
 }
 #ni338-handover-layout .tke-or-row-head span:not(.ni310-card-icon){font-size:10px!important;line-height:1.3!important}
 #ni338-handover-layout .tke-or-row-head>b{
   font-size:10px!important;line-height:1.2!important;padding:4px 7px!important;max-width:100%!important;
   white-space:normal!important;text-align:center!important;flex:0 0 auto!important;
 }
 #ni338-handover-layout .ni337-visma .tke-or-row-head{
   flex-wrap:wrap!important;gap:5px!important;
 }
 #ni338-handover-layout .ni337-visma .tke-or-row-head>div{flex:1 1 100%!important}
 #ni338-handover-layout .ni337-visma .tke-or-row-head>b{margin-left:37px!important}
 #ni338-handover-layout .tke-or-requirement-form{margin:4px 0 0!important;gap:6px!important;min-height:0!important}
 #ni338-handover-layout .ni337-visma .tke-or-requirement-form>label:has(input[type=checkbox]){
   flex:1 1 100%!important;min-height:30px!important;height:auto!important;font-size:12px!important;
   padding:5px 7px!important;gap:7px!important;line-height:1.25!important;
 }
 #ni338-handover-layout .ni337-visma input[type=checkbox]{width:17px!important;height:17px!important;flex:0 0 17px!important}
 #ni338-handover-layout .ni337-save-status:empty{display:none!important}
 #ni338-handover-layout .ni337-save-status:not(:empty){font-size:11px!important;line-height:1.3!important}
 #ni338-handover-layout .ni337-save-status.is-error{color:#ad2339!important;-webkit-text-fill-color:#ad2339!important}
 #ni338-handover-layout .tke-or-shared-checklist{
   flex:0 0 auto!important;display:flex!important;flex-direction:column!important;
   align-items:stretch!important;justify-content:flex-start!important;text-align:left!important;
   gap:6px!important;height:auto!important;min-height:0!important;margin:2px 0 0!important;
   padding:7px 8px!important;border-left-width:3px!important;
 }
 #ni338-handover-layout .tke-or-shared-checklist>div{
   gap:3px!important;display:flex!important;flex-direction:column!important;text-align:left!important;
   align-items:flex-start!important;min-width:0!important;
 }
 #ni338-handover-layout .tke-or-shared-checklist strong{font-size:15px!important;line-height:1.2!important}
 #ni338-handover-layout .tke-or-shared-checklist span{font-size:11px!important;line-height:1.3!important}
 #ni338-handover-layout .tke-or-shared-checklist .tke-btn{
   align-self:stretch!important;width:100%!important;min-height:30px!important;height:auto!important;
   padding:6px 9px!important;font-size:11px!important;line-height:1.25!important;
   background:linear-gradient(115deg,#7514d7,#ad26c9 55%,#f76e38)!important;
   color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;
 }
 #ni338-handover-layout .ni337-check-meta{font-size:10px!important;line-height:1.3!important;margin-top:5px!important}
 #ni338-handover-layout .ni337-qsc-details{margin-top:5px!important}
 #ni338-handover-layout .ni337-qsc-details>summary{font-size:11px!important;padding:5px 7px!important}
 #ni338-handover-layout .ni310-acceptance-actions{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
   gap:6px!important;margin:3px 0 0!important;
 }
 #ni338-handover-layout .ni310-acceptance-upload::after{display:none!important}
 #ni338-handover-layout .ni310-drop-target{min-height:65px!important;height:auto!important;padding:6px!important;gap:3px!important}
 #ni338-handover-layout .ni310-open-acceptance{min-height:30px!important;height:auto!important;align-self:flex-end!important;padding:5px 10px!important}
 #ni338-handover-layout .ni310-uploaded-docs{margin-top:6px!important}
 #ni338-handover-layout .ni337-file-row{padding:6px!important;gap:6px!important}
 #ni338-handover-layout .ni337-file-copy{font-size:11px!important}
 #ni338-handover-layout .ni337-file-copy small{font-size:10px!important}
 #ni338-handover-layout .ni337-file-row .tke-btn{min-height:30px!important;padding:5px 8px!important}
 #ni338-handover-layout .tke-or-upload-actions{flex-wrap:wrap!important;gap:5px!important}
 #ni338-handover-layout .tke-or-upload-actions .tke-btn{min-height:32px!important;padding:5px 7px!important;font-size:10px!important}
 #ni338-handover-layout .ni336-qsc{gap:6px!important;padding:8px!important}
 #ni338-handover-layout .ni336-qsc-doc strong{font-size:12px!important;overflow-wrap:anywhere!important}
 @container (max-width:920px) {
   #ni338-handover-layout.ni310-handover-panel>.ni337-visma {grid-column:span 6!important}
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-lift {grid-column:1/-1!important}
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-checklist {grid-column:span 6!important}
   #ni338-handover-layout.ni310-handover-panel>.ni338-first-checklist {grid-column:1/span 6!important}
 }
 @media(max-width:700px) {
   #ni338-handover-layout.ni310-handover-panel {grid-template-columns:minmax(0,1fr)!important;padding:8px!important}
   #ni338-handover-layout.ni310-handover-panel>.tke-or-row,
   #ni338-handover-layout.ni310-handover-panel>.ni310-kind-acceptance,
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-setup,
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-lift,
   #ni338-handover-layout.ni310-handover-panel>.ni337-visma,
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-checklist,
   #ni338-handover-layout.ni310-handover-panel>.ni338-first-checklist {grid-column:1/-1!important}
   #ni338-handover-layout .ni337-visma .tke-or-row-head>div{flex:1 1 60%!important}
   #ni338-handover-layout .ni337-visma .tke-or-row-head>b{margin-left:0!important}
   #ni338-handover-layout .tke-or-shared-checklist .tke-btn{min-height:40px!important}
 }
 @container (max-width:540px) {
   #ni338-handover-layout.ni310-handover-panel {grid-template-columns:minmax(0,1fr)!important;padding:8px!important}
   #ni338-handover-layout.ni310-handover-panel>.tke-or-row,
   #ni338-handover-layout.ni310-handover-panel>.ni310-kind-acceptance,
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-setup,
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-lift,
   #ni338-handover-layout.ni310-handover-panel>.ni337-visma,
   #ni338-handover-layout.ni310-handover-panel>.ni338-slot-checklist,
   #ni338-handover-layout.ni310-handover-panel>.ni338-first-checklist {grid-column:1/-1!important}
 }
}

/* Build 39: compact document evidence first, native disclosure for upload.
   Same cascade layer as Build 38. No change to grid columns or portal header. */
@layer tke-page-typography {
 #ni338-handover-layout .ni339-upload-details{
   display:block!important;box-sizing:border-box!important;min-width:0!important;
   margin:5px 0 0!important;padding:0!important;border:1px solid #e1ddeb!important;
   border-radius:7px!important;background:#faf9fd!important;
 }
 #ni338-handover-layout .ni339-upload-details>summary{
   cursor:pointer!important;padding:6px 9px!important;font-size:11px!important;
   font-weight:700!important;line-height:1.3!important;color:#651bb6!important;
 }
 #ni338-handover-layout .ni339-upload-details[open]{padding-bottom:7px!important}
 #ni338-handover-layout .ni339-upload-details[open]>.tke-or-requirement-form{
   margin:0!important;padding:5px 8px 0!important;box-sizing:border-box!important;
 }
 #ni338-handover-layout .ni339-upload-details:not([open])>:not(summary){display:none!important}
 #ni338-handover-layout .ni339-acceptance-tools{
   display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;
   align-items:start!important;margin-top:6px!important;
 }
 #ni338-handover-layout .ni339-acceptance-tools>.ni339-acceptance-upload{grid-column:1;grid-row:1;margin:0!important}
 #ni338-handover-layout .ni339-acceptance-tools>.ni310-open-acceptance{
   grid-column:2;grid-row:1;align-self:start!important;min-height:29px!important;
   height:auto!important;padding:5px 8px!important;width:auto!important;font-size:11px!important;
 }
 #ni338-handover-layout .ni339-acceptance-upload .ni310-acceptance-upload{padding:0 7px!important}
 #ni338-handover-layout .ni339-acceptance-upload .ni310-drop-target{min-height:60px!important;height:auto!important;padding:6px!important}
 #ni338-handover-layout .ni339-acceptance-upload .ni310-upload-icon,
 #ni338-handover-layout .ni339-acceptance-upload .ni310-upload-icon svg{width:24px!important;height:24px!important}
 #ni338-handover-layout .ni339-digital-note{font-size:11px!important;padding:6px 8px!important;background:#eff8f2!important;border-radius:7px!important}
 #ni338-handover-layout .ni310-uploaded-docs{margin:2px 0 0!important;gap:4px!important}
 #ni338-handover-layout .ni337-file-row{padding:5px 7px!important;gap:5px!important}
 #ni338-handover-layout .ni337-file-row .tke-btn,
 #ni338-handover-layout .ni338-slot-setup .ni335-remove-btn,
 #ni338-handover-layout .ni338-slot-lift .ni335-remove-btn,
 #ni338-handover-layout .ni338-slot-lift .ni323-report-head>a{
   min-height:28px!important;height:auto!important;min-width:0!important;
   padding:5px 8px!important;font-size:10px!important;line-height:1.25!important;
 }
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-panel{
   margin:0!important;padding:5px 7px!important;gap:4px!important;min-height:0!important;
 }
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-state{margin:0 0 3px!important;font-size:11px!important;line-height:1.3!important}
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-current{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;min-height:0!important}
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-thumbnail,
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-thumbnail img{
   width:48px!important;height:48px!important;min-width:0!important;max-width:48px!important;
   object-fit:cover!important;border-radius:6px!important;flex:0 0 48px!important;
 }
 #ni338-handover-layout .ni338-slot-setup .tke-v245-document-icon{width:34px!important;height:40px!important}
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-info{
   display:flex!important;flex:1 1 auto!important;min-width:0!important;flex-direction:column!important;gap:3px!important;
 }
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-info strong,
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-info span,
 #ni338-handover-layout .ni338-slot-setup .tke-v245-evidence-open{font-size:11px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
 #ni338-handover-layout .ni338-slot-setup .ni335-file-actions{display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:center!important}
 #ni338-handover-layout .ni338-slot-lift .ni323-approved{margin:0!important;padding:5px 7px!important;gap:3px!important}
 #ni338-handover-layout .ni338-slot-lift .ni323-approved .ni323-report-head{
   display:flex!important;gap:6px!important;align-items:center!important;flex-wrap:wrap!important;min-height:0!important;
 }
 #ni338-handover-layout .ni338-slot-lift .ni323-approved .ni323-report-head>div{
   flex:1 1 125px!important;min-width:0!important;overflow-wrap:anywhere!important;
 }
 #ni338-handover-layout .ni338-slot-lift .ni323-approved .ni323-pdf{width:29px!important;min-width:29px!important;height:32px!important;font-size:9px!important}
 #ni338-handover-layout .ni338-slot-lift .ni323-approved strong{font-size:12px!important;line-height:1.25!important}
 #ni338-handover-layout .ni338-slot-lift .ni323-approved small{font-size:10px!important;line-height:1.25!important}
 /* Equalize only the naturally sized completed/collapsed desktop row.
    If any upload is expanded, other cards retain their natural height. */
 @container (min-width:921px) {
   #ni338-handover-layout.ni310-handover-panel:not(:has(>.ni310-kind-acceptance .ni339-upload-details[open],>.ni338-slot-setup .ni339-upload-details[open]))> :is(.ni310-kind-acceptance,.ni338-slot-setup){align-self:stretch!important}
   #ni338-handover-layout.ni310-handover-panel:not(:has(>.ni338-slot-lift .ni339-upload-details[open],>.ni338-slot-lift .ni323-review-form))> :is(.ni337-visma,.ni338-slot-lift){align-self:stretch!important}
 }
 @media(max-width:700px){
   #ni338-handover-layout .ni339-acceptance-tools{grid-template-columns:minmax(0,1fr)!important}
   #ni338-handover-layout .ni339-acceptance-tools>.ni310-open-acceptance{grid-column:1;grid-row:2;min-height:38px!important}
   #ni338-handover-layout .ni339-upload-details>summary{padding:9px!important}
   #ni338-handover-layout .ni338-slot-lift .ni323-approved .ni323-report-head>a{width:auto!important}
 }
}

/* Build 40 – same compact closed layout regardless of missing / pending / approved.
   Natural growth is allowed only for actual extra evidence, narrow screens or an explicit disclosure. */
@layer tke-page-typography {
 #ni338-handover-layout .ni340-empty-document{
  display:flex!important;align-items:center!important;gap:8px!important;box-sizing:border-box!important;
  min-height:48px!important;padding:5px 7px!important;margin:2px 0 0!important;
  border:1px solid #e1ddeb!important;border-radius:7px!important;background:#f7f6fb!important;
 }
 #ni338-handover-layout .ni340-empty-document>span{display:grid!important;place-items:center!important;flex:0 0 29px!important;height:32px!important;background:#eee8fa!important;border-radius:6px!important}
 #ni338-handover-layout .ni340-empty-document svg{width:19px!important;height:19px!important}
 #ni338-handover-layout .ni340-empty-document>div{display:grid!important;gap:2px!important;min-width:0!important}
 #ni338-handover-layout .ni340-empty-document strong{font-size:11px!important;line-height:1.25!important}
 #ni338-handover-layout .ni340-empty-document small{font-size:10px!important;line-height:1.25!important}
 #ni338-handover-layout .ni340-awaiting .tke-or-row-head>b{background:#fff0d9!important;color:#915515!important;-webkit-text-fill-color:#915515!important}
 #ni338-handover-layout .ni340-approve-trigger,#ni338-handover-layout .ni340-approval-dialog .tke-btn-primary{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:linear-gradient(115deg,#7514d7,#ad26c9 55%,#f76e38)!important;
  border:0!important;min-height:28px!important;padding:5px 8px!important;font-size:10px!important;
 }
 #ni338-handover-layout .ni340-approval-dialog:not([open]){display:none!important}
 #ni338-handover-layout .ni340-approval-dialog[open]{
  display:block!important;position:fixed!important;inset:0!important;margin:auto!important;
  width:min(440px,calc(100% - 32px))!important;max-width:calc(100% - 32px)!important;
  max-height:calc(100dvh - 32px)!important;overflow:auto!important;box-sizing:border-box!important;
  padding:16px!important;background:#fff!important;border:1px solid #e1ddeb!important;border-radius:14px!important;
  box-shadow:0 14px 60px #20152c55!important;color:#172033!important;
 }
 #ni338-handover-layout .ni340-approval-dialog::backdrop{background:#19102e80}
 #ni338-handover-layout .ni340-dialog-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
 #ni338-handover-layout .ni340-dialog-head strong{font-size:15px!important}
 #ni338-handover-layout .ni340-dialog-head button{font-size:23px!important;background:none!important;border:0!important;cursor:pointer!important}
 #ni338-handover-layout .ni340-approval-dialog p{font-size:12px!important;overflow-wrap:anywhere!important}
 #ni338-handover-layout .ni340-approval-dialog form{display:grid!important;gap:10px!important;min-width:0!important}
 #ni338-handover-layout .ni340-approval-dialog form label{min-width:0!important;font-size:12px!important;line-height:1.5!important}
 #ni338-handover-layout .ni340-approval-dialog .tke-btn{min-height:36px!important;font-size:12px!important}
 @container (min-width:921px){
  #ni338-handover-layout.ni310-handover-panel>:is(.ni310-kind-acceptance,.ni338-slot-setup,.ni337-visma,.ni338-slot-lift){min-height:140px!important}
 }
}
