/* NI Office 3.1.0 Build 5 – scoped project refinements. */
@layer tke-page-typography {
 .ni397-project-app .ni311-unit-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:0 0 18px!important;min-width:0!important}
 .ni397-project-app .ni311-unit-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:82px!important;padding:15px 18px!important;border:1px solid #e6e0ef!important;background:#fff!important;border-radius:13px!important;box-shadow:0 3px 12px #1a0b3307!important;box-sizing:border-box!important;min-width:0!important}
 .ni397-project-app .ni311-unit-card>div{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
 .ni397-project-app .ni311-unit-card small{font-size:12px!important;font-weight:600!important;color:#31314c!important}
 .ni397-project-app .ni311-unit-card strong{font-size:18px!important;line-height:1.3!important;color:#11172e!important;font-weight:650!important;overflow-wrap:anywhere}
 .ni397-project-app .ni311-unit-card span{font-size:11px!important;color:#737084!important}
 .ni397-project-app .ni311-unit-card .ni397-edit{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;border-radius:9px!important}
 .ni397-project-app .ni311-unit-grid>[data-ni398-unit-feedback]{grid-column:1/-1!important;margin:0!important;color:#236848!important;font-size:12px!important}
 .ni397-project-app .ni311-unit-grid>[hidden]{display:none!important}
 .ni397-project-app .tke-v203-tabs .ni397-tab-count{font-size:11px!important;line-height:1.4!important;padding:3px 7px!important}
 @media(max-width:700px){.ni397-project-app .ni311-unit-grid{grid-template-columns:1fr!important;gap:8px!important}.ni397-project-app .ni311-unit-card{min-height:75px!important;padding:12px 14px!important}}
}
/* Dialogs deliberately sit outside project panels; prevent old CSS for inline editors from leaking. */
.ni311-project-dialog:not([open]){display:none!important}
.ni311-project-dialog[open]{position:fixed!important;inset:0!important;margin:auto!important;box-sizing:border-box!important;display:block!important;width:min(540px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:0!important;background:#fff!important;border:1px solid #e0d8ec!important;border-radius:17px!important;box-shadow:0 20px 60px #12072440!important;overflow:auto!important;color:#17172e!important;z-index:100090!important}
.ni311-project-dialog::backdrop{background:rgba(15,9,38,.7)!important}
.ni311-dialog-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:19px 21px!important;border-bottom:1px solid #ece7f4!important;background:linear-gradient(115deg,#faf8ff,#fff)!important}
.ni311-dialog-head h2{font-size:21px!important;line-height:1.3!important;margin:0!important;color:#17132f!important;font-weight:780!important}
.ni311-dialog-head .ni311-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:11px;border:1px solid #ded6ea;background:#fff;color:#26173e;font-size:27px;cursor:pointer}
.ni311-dialog-body{padding:20px!important;min-width:0!important}
.ni311-dialog-body p{font-size:13px!important;line-height:1.55!important;color:#59536d!important;margin:0 0 14px!important}
.ni311-dialog-body .tke-v239-manager-section,.ni311-dialog-body .tke-v220-number-section{margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.ni311-dialog-body details{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important}
.ni311-dialog-body details>summary{display:none!important}
.ni311-dialog-body .tke-v220-number-form,.ni311-dialog-body .tke-v239-manager-form,.ni311-dialog-form{display:flex!important;flex-direction:column!important;gap:13px!important;min-width:0!important;margin:0!important}
.ni311-project-dialog .ni311-dialog-form>label:not(.ni311-check-label),.ni311-project-dialog .tke-v220-number-form>label,.ni311-project-dialog .tke-v239-manager-form>label{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;font-size:13px!important;font-weight:650!important;color:#241e3c!important}
.ni311-project-dialog input[type=text],.ni311-project-dialog input[type=number],.ni311-project-dialog select{box-sizing:border-box!important;width:100%!important;min-height:44px!important;padding:9px 12px!important;border:1px solid #dad2eb!important;border-radius:10px!important;background:#fff!important;color:#201c34!important;font:inherit!important}
.ni311-project-dialog .ni311-dialog-actions,.ni311-project-dialog .tke-v239-manager-form-actions,.ni311-project-dialog .tke-v220-form-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin-top:10px!important}
.ni311-project-dialog .tke-btn{min-height:40px!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:8px 15px!important;font-size:12px!important;font-weight:700!important}
.ni311-project-dialog .ni311-note{padding:10px 12px;background:#f8f5ff;border-radius:8px}
.ni311-project-dialog .tke-v220-number-details,.ni311-project-dialog .tke-v239-manager-details{display:block!important}
.ni311-project-dialog .ni311-team-options{max-height:170px;overflow:auto;border:1px solid #e5dff0;border-radius:10px;padding:10px 12px}
.ni311-project-dialog .ni311-team-options legend{font-size:12px;font-weight:750;padding:0 6px}
.ni311-project-dialog .ni311-check-label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;min-height:32px!important;font-size:13px!important;font-weight:500!important}
.ni311-project-dialog .ni311-check-label input{width:18px!important;height:18px!important;accent-color:#7422da;flex:0 0 18px!important}
.ni311-project-dialog .tke-v220-number-notice{font-size:12px!important}
@media(max-width:500px){.ni311-dialog-body{padding:15px!important}.ni311-dialog-head{padding:14px 15px!important}.ni311-dialog-head h2{font-size:18px!important}}

@media(max-width:1100px),(min-width:1101px) and (max-width:1400px) and (pointer:coarse){
 .ni397-project-app .ni311-unit-grid{order:2!important;align-self:stretch!important;margin:0!important}
}

/* Build 6 – align technical cards with the shared project inset and compact number editor. */
@layer tke-page-typography {
 html body.tke-op-page .tke-app.ni397-project-app>.tke-main>.ni311-unit-grid{
   margin-left:var(--ni395-project-inset,24px)!important;
   margin-right:0!important;
   width:auto!important;
   max-width:none!important;
   align-self:stretch!important;
 }
 /* The global page rules must not shift the modal or its form columns. */
 #ni311-dialog-numbers[open]{margin:auto!important;width:min(560px,calc(100vw - 24px))!important;}
 #ni311-dialog-numbers .ni311-dialog-body{display:block!important;width:100%!important;box-sizing:border-box!important;padding:20px 21px!important;margin:0!important;}
 #ni311-dialog-numbers .tke-v220-number-section,
 #ni311-dialog-numbers .tke-v220-number-details{display:block!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:0!important;}
 #ni311-dialog-numbers .tke-v220-number-form{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   align-items:start!important;justify-items:stretch!important;gap:16px!important;
   width:100%!important;max-width:none!important;min-width:0!important;
   margin:0!important;padding:0!important;border:0!important;box-sizing:border-box!important;
 }
 #ni311-dialog-numbers .tke-v220-number-form>label{
   grid-column:auto!important;grid-row:1!important;align-self:start!important;justify-self:stretch!important;
   width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;text-align:left!important;
 }
 #ni311-dialog-numbers .tke-v220-number-form>label>span{font-size:12px!important;font-weight:700!important;}
 #ni311-dialog-numbers .tke-v220-number-form>label>small{font-size:11px!important;font-weight:400!important;line-height:1.4!important;}
 #ni311-dialog-numbers .tke-v220-number-form>label>input{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;}
 #ni311-dialog-numbers .tke-v220-form-actions{
   grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-direction:column!important;
   align-items:flex-start!important;justify-content:flex-start!important;justify-self:stretch!important;
   gap:8px!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;text-align:left!important;
 }
 #ni311-dialog-numbers .tke-v220-form-actions>small{max-width:none!important;font-size:11px!important;line-height:1.4!important;font-weight:400!important;}
 #ni311-dialog-numbers .tke-v220-form-actions>.tke-btn-primary{min-height:38px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
 @media(max-width:500px){
   #ni311-dialog-numbers .ni311-dialog-body{padding:15px!important;}
   #ni311-dialog-numbers .tke-v220-number-form{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
   #ni311-dialog-numbers .tke-v220-number-form>label{grid-column:1!important;grid-row:auto!important;}
   #ni311-dialog-numbers .tke-v220-form-actions{grid-row:auto!important;}
 }
}

/* Build 11: same card height, two new cards only on EOX/H2. */
@layer tke-page-typography {
 .ni397-project-app .ni311-unit-grid.ni316-unit-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 @media(max-width:700px){.ni397-project-app .ni311-unit-grid.ni316-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.ni397-project-app .ni316-unit-grid .ni311-unit-card[aria-label="Antal stop"]{grid-column:1/-1!important;}}
 @media(max-width:480px){.ni397-project-app .ni311-unit-grid.ni316-unit-grid{gap:8px!important;}.ni397-project-app .ni316-unit-grid .ni311-unit-card{padding:10px!important;gap:4px!important;min-height:75px!important;}.ni397-project-app .ni316-unit-grid .ni311-unit-card .ni397-edit{flex-basis:28px!important;width:28px!important;}}
}
.ni316-link{margin:12px 0;padding:12px 14px;border:1px solid #e5ddf4;border-radius:12px;background:#fff;}
.ni316-link>summary{cursor:pointer;color:#7619cc;font-weight:650;}
.ni316-link-form label input[type=search]{display:block;width:100%;margin-top:7px;padding:9px;border:1px solid #d5cee4;border-radius:8px;box-sizing:border-box;}
.ni316-link-form .ni316-result{flex:1 1 100%;font-size:12px;color:#625b72;}

/* Build 12: scope compact typography to KS & DV only. */
@layer tke-page-typography {
 html body .tke-app .tke-v289-module{font-size:13px!important;line-height:1.45!important;}
 html body .tke-app .tke-v289-module .tke-v289-heading{gap:12px!important;margin-bottom:14px!important;align-items:center!important;}
 html body .tke-app .tke-v289-module .tke-v289-heading h2{font-size:20px!important;line-height:1.3!important;font-weight:700!important;margin:0 0 5px!important;}
 html body .tke-app .tke-v289-module p{font-size:13px!important;line-height:1.5!important;margin:0 0 10px!important;}
 html body .tke-app .tke-v289-module p :is(b,strong){font-size:inherit!important;}
 html body .tke-app .tke-v289-module .tke-v289-heading p{margin:0!important;}
 html body .tke-app .tke-v289-module .tke-v289-status{font-size:12px!important;line-height:1.4!important;padding:7px 12px!important;}
 html body .tke-app .tke-v289-module .tke-v289-card>strong{font-size:22px!important;line-height:1.25!important;font-weight:650!important;}
 html body .tke-app .tke-v289-module .tke-v289-card>small{font-size:12px!important;font-weight:650!important;}
 html body .tke-app .tke-v289-module .tke-v289-card>span{font-size:12px!important;line-height:1.4!important;}
 html body .tke-app .tke-v289-module .tke-v289-box{padding:16px 18px!important;margin-bottom:14px!important;}
 html body .tke-app .tke-v289-module .tke-v289-box h3{font-size:16px!important;line-height:1.35!important;font-weight:700!important;margin:0 0 9px!important;}
 html body .tke-app .tke-v289-module .tke-v289-list :is(span,strong),html body .tke-app .tke-v289-module .tke-v289-control label strong{font-size:13px!important;line-height:1.45!important;}
 html body .tke-app .tke-v289-module .tke-v289-list{padding:10px 0!important;}
 html body .tke-app .tke-v289-module .tke-v289-control :is(select,input){font-size:13px!important;}
 html body .tke-app .tke-v289-module .tke-v289-downloads{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;margin-top:12px!important;}
 html body .tke-app .tke-v289-module .tke-v289-downloads p{flex:1 0 100%!important;margin:0!important;}
 html body .tke-app .tke-v289-module .tke-btn{font-size:12px!important;line-height:1.3!important;min-height:36px!important;padding:8px 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;}
 html body .tke-app .tke-v289-module .tke-btn-primary{color:#fff!important;-webkit-text-fill-color:#fff!important;}
 @media(max-width:700px){html body .tke-app .tke-v289-module .tke-v289-heading{align-items:flex-start!important;flex-direction:column!important;gap:8px!important;}html body .tke-app .tke-v289-module .tke-v289-box{padding:13px!important;}html body .tke-app .tke-v289-module .tke-btn{min-height:42px!important;}}
}
