/* Page zoom scales type, controls and spacing together. Embedded details inherit
   the outer panel's scale; print and the mobile layout keep their own sizing. */
@media screen and (min-width:901px) {
 html:has(body.nr-workspace:not(.nr-panel-view)) {zoom:1.1}
}
@media screen {
 body.nr-workspace .nr-manual-report-options {display:flex;align-items:end;gap:14px;flex-wrap:wrap}
 body.nr-workspace .nr-manual-report-options label {display:flex;flex-direction:column;gap:7px;flex:1;min-width:180px;max-width:100%}
 body.nr-workspace .nr-manual-report-options select {width:100%;max-width:100%}
 body.nr-workspace .nr-manual-report-layout {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px;align-items:start}
 body.nr-workspace .nr-manual-report-preview iframe {display:block;width:100%;height:600px;border:1px solid var(--line);border-radius:5px;background:white;margin-top:16px}
 body.nr-workspace .nr-manual-report-send {display:flex;flex-direction:column;gap:16px}
 body.nr-workspace .nr-manual-report-send>label {display:flex;flex-direction:column;gap:8px}
 body.nr-workspace .nr-manual-report-send fieldset {border:1px solid var(--line);border-radius:5px;margin:0;padding:12px;max-height:320px;overflow:auto}
 body.nr-workspace .nr-manual-report-send .nr-report-recipient {display:flex;align-items:flex-start;gap:10px;padding:10px 0;min-height:44px;line-height:1.6}
 body.nr-workspace .nr-report-recipient input {flex-shrink:0;margin-top:4px}
 body.nr-workspace .nr-report-recipient strong {display:block;font-size:12px;font-weight:500}
 body.nr-workspace .nr-report-recipient small {display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
 body.nr-workspace .nr-manual-report-send>button {align-self:flex-start}
 @media(max-width:950px){body.nr-workspace .nr-manual-report-layout {grid-template-columns:1fr}}
 body.nr-workspace[data-density=compact] {--row:46px!important}
 body.nr-workspace[data-density=comfortable] {--row:59px!important}
 body.nr-workspace[data-density=compact] .pv-data-table td {height:var(--row)!important;padding-top:5px!important;padding-bottom:5px!important}
 body.nr-workspace[data-density=compact] .pv-row-sub {margin-top:2px!important}
 body.nr-workspace[data-density=compact] .pv-work-item {padding-top:9px!important;padding-bottom:9px!important}
 body.nr-workspace .nr-bar-actions [data-nr-density][aria-pressed=true] {background:#ffffff20!important;border-radius:4px}
 body.nr-workspace .nr-participant-list {display:flex;flex-direction:column;gap:10px;margin:18px 0 22px;min-width:0}
 body.nr-workspace .nr-participant-row {display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);min-width:0}
 body.nr-workspace .nr-participant-avatar {display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
 body.nr-workspace .nr-participant-identity {display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;overflow-wrap:anywhere}
 body.nr-workspace .nr-participant-identity strong {display:block;font-size:13px;font-weight:600;line-height:1.5}
 body.nr-workspace .nr-participant-identity .comment-head {font-size:11px;line-height:1.5;white-space:normal}
 body.nr-workspace .nr-detail-section form.nr-participant-remove {display:block!important;grid-template-columns:none!important;flex:0 0 auto;margin:0!important;padding:0;border:0}
 body.nr-workspace .nr-participant-remove button {white-space:nowrap;margin:0}
 body.nr-workspace .nr-detail-section form.nr-participant-add {display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:0;padding:18px;border:1px solid var(--line);border-radius:6px;background:var(--hover)}
 body.nr-workspace .nr-participant-add label {display:flex;flex-direction:column;gap:8px;width:100%;font-size:12px}
 body.nr-workspace .nr-participant-add select {width:100%;min-width:0;max-width:100%}
 body.nr-workspace .nr-participant-add button {align-self:flex-start}
 body.nr-workspace .nr-detail-section>.field-help {display:block;color:var(--muted);font-size:12px;line-height:1.7;margin:4px 0 16px}
 body.nr-workspace .nr-detail-section .text-box {padding:16px;background:var(--hover);border:1px solid var(--line);border-radius:5px;line-height:1.8;overflow-wrap:anywhere}
 body.nr-workspace .nr-detail-section .inline-form:not(.nr-participant-add) {margin:18px 0 24px;gap:16px}
 body.nr-workspace .nr-detail-section .inline-form>textarea {grid-column:1/-1;min-height:140px}
 body.nr-workspace .nr-detail-section .inline-form>.check {gap:9px;line-height:1.6;align-items:flex-start}
 body.nr-workspace .nr-detail-section form:not(.nr-participant-remove) input[type=hidden] {display:none!important}
 body.nr-workspace .nr-detail-section form:not(.nr-participant-remove)>label {line-height:1.6;min-width:0}
 body.nr-workspace .nr-detail-section form>.grid {grid-column:1/-1}
 body.nr-workspace .nr-detail-section form:not(.nr-participant-remove)>.field-help {margin-top:0;font-size:11px;color:var(--muted)}
 body.nr-workspace .nr-detail-section .term-ticket-box {padding:16px;border:1px solid var(--line);border-radius:6px;line-height:1.7;margin-bottom:18px}
 body.nr-workspace .nr-detail-section .term-ticket-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
 body.nr-workspace .nr-detail-section .ticket-term-item {display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
 body.nr-workspace .nr-detail-section .attachments {display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 body.nr-workspace .nr-detail-section .attachment {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:5px;line-height:1.6}
 body.nr-workspace .nr-detail-section .attachment span {margin-left:auto;white-space:nowrap;font-size:11px;color:var(--muted)}
 body.nr-workspace .pv-device-icon .nr-topic-icon {width:24px!important;height:24px!important;stroke-width:1.5}
 body.nr-workspace .nr-detail-section .timeline-item {display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);line-height:1.7}
 body.nr-workspace .nr-detail-section .timeline-item>div:last-child {min-width:0;flex:1}
 body.nr-workspace .nr-detail-section .timeline-dot {width:8px;height:8px;flex:0 0 8px;margin-top:8px;border-radius:50%;background:var(--accent)}
 body.nr-workspace .nr-detail-section .history-values {margin-top:8px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
 @media(max-width:700px) {
  body.nr-workspace[data-density=compact] .nr-mobile-list tbody tr {margin-bottom:8px}
  body.nr-workspace[data-density=compact] .nr-mobile-list tbody td {height:auto!important;padding-top:8px!important;padding-bottom:8px!important}
  body.nr-workspace .nr-participant-row {flex-wrap:wrap;padding:12px}
  body.nr-workspace .nr-participant-identity {flex-basis:calc(100% - 48px)}
  body.nr-workspace .nr-detail-section form.nr-participant-remove {margin-left:48px!important}
  body.nr-workspace .nr-detail-section form.nr-participant-add {padding:14px}
  body.nr-workspace .nr-participant-add button {align-self:stretch}
 }
}
.nr-company-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.nr-company-form{display:flex;flex-direction:column;gap:14px;min-width:0;padding:20px;border:1px solid var(--pv-border,#dfe3eb);border-radius:6px}
.nr-company-form label:not(.nr-company-check){display:flex;flex-direction:column;gap:7px;min-width:0}
.nr-company-form input:not([type=checkbox]){width:100%;min-width:0}
.nr-company-form button{align-self:flex-start}
.nr-company-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.nr-company-form fieldset{display:flex;flex-wrap:wrap;gap:14px;padding:16px;border:1px solid var(--pv-border,#dfe3eb);border-radius:5px}
.nr-company-check{display:inline-flex;align-items:center;gap:8px}
.nr-company-check input{width:16px!important;height:16px;flex:none}
@media(max-width:900px){.nr-company-fields{grid-template-columns:1fr}.nr-company-form{padding:16px}}
/* Settings share a bounded content column. User actions stay beside the name,
   while long company lists expand below instead of widening the entire page. */
body.nr-workspace .pv-settings-layout{grid-template-columns:190px minmax(0,1fr)!important;align-items:start}
body.nr-workspace .pv-settings-body,body.nr-workspace .nr-settings-content{min-width:0;width:100%;max-width:1140px}
body.nr-workspace .nr-user-directory{display:flex;flex-direction:column;gap:0;min-width:0;max-width:100%;width:100%;overflow:visible;border:0;background:transparent;border-radius:0}
body.nr-workspace .nr-directory-user{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'identity actions' 'scope scope';gap:12px 20px;padding:20px 0;border-bottom:1px solid var(--line);min-width:0}
body.nr-workspace .nr-directory-user:last-child{border-bottom:0}
body.nr-workspace .nr-directory-identity{grid-area:identity;min-width:0}
body.nr-workspace .nr-directory-identity h3{margin:0 0 5px;font-size:14px;overflow-wrap:anywhere}
body.nr-workspace .nr-directory-identity p{margin:0 0 8px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
body.nr-workspace .nr-directory-labels,body.nr-workspace .nr-directory-modules,body.nr-workspace .nr-directory-companies{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
body.nr-workspace .nr-directory-companies{margin-top:9px}
body.nr-workspace .nr-directory-companies .badge{white-space:normal;overflow-wrap:anywhere;max-width:100%}
body.nr-workspace .nr-directory-actions{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;gap:8px;grid-area:actions;min-width:0;max-width:300px}
body.nr-workspace .nr-directory-actions>.pv-btn{margin:0}
body.nr-workspace .nr-directory-scope{grid-area:scope;display:flex;gap:10px;flex-direction:column;min-width:0;color:var(--muted);font-size:12px}
body.nr-workspace .nr-directory-scope summary{cursor:pointer;color:var(--accent);width:fit-content}
body.nr-workspace .nr-password-action{max-width:100%;min-width:0}
body.nr-workspace .nr-password-action>summary{cursor:pointer;color:var(--accent);padding:7px 10px;border:1px solid var(--line);border-radius:4px;list-style:revert}
body.nr-workspace .nr-password-action form{display:flex;flex-direction:column;gap:10px;padding-top:12px;width:240px;max-width:100%}
body.nr-workspace .nr-password-action label{display:flex;flex-direction:column;gap:7px}
body.nr-workspace .nr-password-action input{width:100%;min-width:0}
body.nr-workspace .nr-directory-actions:has(.nr-password-action[open]){flex-basis:280px}
body.nr-workspace .nr-company-picker{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:22px 0}
body.nr-workspace .nr-company-picker label{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}
body.nr-workspace .nr-company-picker select{width:100%;min-width:0}
body.nr-workspace .nr-settings-company .nr-company-form{border:0;padding:0;max-width:650px}
body.nr-workspace .nr-company-settings .settings-create{margin:20px 0}
body.nr-workspace .nr-company-settings .settings-create>summary{cursor:pointer;color:var(--accent)}
body.nr-workspace .nr-company-settings .settings-create .nr-company-form{border:0;padding:20px 0 0;margin:0}
@media(max-width:950px){body.nr-workspace .pv-settings-layout{grid-template-columns:160px minmax(0,1fr)!important}}
@media(max-width:700px){body.nr-workspace .pv-settings-layout{grid-template-columns:minmax(0,1fr)!important}body.nr-workspace .pv-settings-menu{flex-direction:row!important;flex-wrap:wrap}body.nr-workspace .pv-settings-menu a{width:auto}body.nr-workspace .nr-directory-user{grid-template-columns:minmax(0,1fr);grid-template-areas:'identity' 'actions' 'scope';gap:12px;padding:18px 0}body.nr-workspace .nr-directory-user>.nr-directory-actions{justify-content:flex-start;max-width:100%;width:100%}body.nr-workspace .nr-company-picker button{flex-shrink:0}}
body.nr-workspace .nr-workspace-tile svg{width:24px!important;height:24px!important;padding:10px!important;box-sizing:content-box!important;stroke-width:1.8!important;flex:0 0 auto!important;border-radius:8px!important}
body.nr-workspace .nr-workspace-tile{min-height:78px!important;gap:16px!important}
body.nr-workspace .nr-location-form{max-width:700px;display:flex;flex-direction:column;gap:20px}
body.nr-workspace .nr-location-form label{display:flex;flex-direction:column;gap:8px}
body.nr-workspace .nr-location-form select{width:100%}
body.nr-workspace .nr-location-form .actions{display:flex;gap:10px;flex-wrap:wrap}
body.nr-workspace .nr-about-product .nr-about-brand{display:flex;align-items:center;gap:20px;margin-bottom:24px}
body.nr-workspace .nr-about-brand img{display:block!important;width:80px!important;height:80px!important;max-width:80px!important;max-height:80px!important;object-fit:contain;flex:0 0 80px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:12px}
body.nr-workspace .nr-about-brand h2{margin:0 0 6px;font-size:26px}
body.nr-workspace .nr-about-brand p{margin:0 0 10px;color:var(--muted)}
body.nr-workspace .nr-about-page .panel>p{line-height:1.75;max-width:850px}
body.nr-workspace .nr-about-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
body.nr-workspace .nr-about-features span{padding:12px 14px;border:1px solid var(--line);border-radius:5px;font-size:12px}
body.nr-workspace .nr-about-company{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}
body.nr-workspace .nr-about-company div{min-width:0}
body.nr-workspace .nr-about-company dt{color:var(--muted);font-size:12px;margin-bottom:6px}
body.nr-workspace .nr-about-company dd{margin:0;overflow-wrap:anywhere}
body.nr-workspace .nr-legal-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}
body.nr-workspace .nr-legal-heading p{color:var(--muted);font-size:12px;margin-top:8px}
body.nr-workspace .nr-legal-notice{padding:14px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:4px;font-size:12px}
body.nr-workspace .nr-legal-section{padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}
body.nr-workspace .nr-legal-section h3{font-size:15px;margin:0 0 10px}
body.nr-workspace .nr-legal-section p{line-height:1.8;color:var(--muted);margin:0}
body.nr-workspace .nr-legal-footer{font-size:11px;color:var(--muted);margin-top:32px}
@media(max-width:700px){body.nr-workspace .nr-about-features,body.nr-workspace .nr-about-company{grid-template-columns:1fr}body.nr-workspace .nr-legal-heading{flex-direction:column}}
@media screen {
 body.nr-workspace.nr-machine-detail .nr-machine-disk-card{padding:16px;margin-bottom:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)!important;color:var(--text)!important}
 body.nr-workspace.nr-machine-detail .item{padding:10px;min-width:0;border:1px solid var(--line);border-radius:5px;background:var(--hover)!important;color:var(--text)!important}
 body.nr-workspace.nr-machine-detail .item .label{color:var(--muted)!important}
 body.nr-workspace.nr-machine-detail .item .value{color:var(--text)!important}
 body.nr-workspace .nr-detail-section :is(table,tbody,tr,td,.nr-table-scroll){background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
 body.nr-workspace .nr-detail-section table tbody tr:hover td{background:var(--hover)!important}
 body.nr-workspace .nr-detail-section :is(.comment,.history-item,.event,.change,.text-box,.machine-ticket){background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
 body.nr-workspace .nr-detail-section :is(.comment-body,.event strong,.change,.text-box){color:var(--text)!important}
}
