/* Software & Licences screens */
.ncn-sw .ncn-sw-tabs { margin-bottom: 16px; }
.ncn-sw-muted { color: #646970; font-size: 12px; }
.ncn-sw-bad { color: #b32d2e; font-weight: 600; }
.ncn-sw-right { margin-left: auto; }

.ncn-sw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 16px; }
.ncn-sw-card { display: block; background: #fff; border: 1px solid #dcdcde; border-left: 4px solid #2271b1; border-radius: 4px; padding: 10px 14px; text-decoration: none; color: #1d2327; }
.ncn-sw-card strong { display: block; font-size: 24px; line-height: 1.2; }
.ncn-sw-card span { color: #50575e; font-size: 12px; }
.ncn-sw-card.warn { border-left-color: #dba617; }
.ncn-sw-card.bad { border-left-color: #d63638; }
.ncn-sw-card.is-current { box-shadow: 0 0 0 2px #2271b1; }
a.ncn-sw-card:hover { background: #f6f7f7; }

.ncn-sw-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ncn-sw-filters input[type="search"] { min-width: 240px; }
.ncn-sw-filters select { max-width: 220px; }

.ncn-sw-scroll { overflow-x: auto; }
.ncn-sw-table td, .ncn-sw-table th { vertical-align: top; }
.ncn-sw-actions form { display: inline; }

.ncn-sw-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #f0f0f1; color: #3c434a; }
.ncn-sw-badge.warn { background: #fcf0c3; color: #614200; }
.ncn-sw-badge.bad { background: #fbe1e1; color: #8a1f1f; }
.ncn-sw-badge.crit-high { background: #fbe1e1; color: #8a1f1f; }
.ncn-sw-badge.crit-medium { background: #fcf0c3; color: #614200; }
.ncn-sw-badge.crit-low { background: #e3f6ec; color: #0f6a3d; }

.ncn-sw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.ncn-sw-box { background: #fff; border: 1px solid #dcdcde; border-radius: 4px; padding: 12px 16px; margin: 0 0 16px; min-width: 0; }
.ncn-sw-grid .ncn-sw-box { margin: 0; }
.ncn-sw-box legend { font-weight: 600; padding: 0 6px; }
.ncn-sw-box h2, .ncn-sw-box h3 { margin-top: 0; }
.ncn-sw-box label { display: block; font-weight: 600; margin-bottom: 3px; }
.ncn-sw-box input[type="text"], .ncn-sw-box input[type="number"], .ncn-sw-box input[type="date"], .ncn-sw-box input[type="password"], .ncn-sw-box select, .ncn-sw-box textarea { width: 100%; max-width: 100%; }
.ncn-sw-two, .ncn-sw-three { display: grid; gap: 12px; }
.ncn-sw-two { grid-template-columns: 1fr 1fr; }
.ncn-sw-three { grid-template-columns: 1fr 1fr 1fr; }
.ncn-sw-remaining { display: block; padding: 4px 0; font-weight: 700; font-size: 15px; }
.ncn-sw-remaining.is-negative { color: #b32d2e; }
.ncn-sw-keyrow { display: flex; gap: 6px; }
.ncn-sw-list { list-style: disc; margin-left: 20px; }
.ncn-sw-report th { width: 60%; text-align: left; }
.ncn-sw-dup h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media (max-width: 600px) {
	.ncn-sw-two, .ncn-sw-three { grid-template-columns: 1fr; }
	.ncn-sw-filters input[type="search"], .ncn-sw-filters select { width: 100%; max-width: none; }
}
.ncn-sw-tag { font-size: 13px; margin-left: 8px; vertical-align: middle; }
.ncn-sw-log td { vertical-align: top; }
.ncn-sw-comp td, .ncn-sw-comp th { text-align: center; }
.ncn-sw-comp td:first-child, .ncn-sw-comp th:first-child { text-align: left; }

/* Filter bar: keep the controls in one row even where the theme / plugin styles make inputs full width. */
.ncn-sw .ncn-sw-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ncn-sw .ncn-sw-filters input[type="search"] { flex: 1 1 260px; width: auto; min-width: 200px; max-width: 420px; margin: 0; }
.ncn-sw .ncn-sw-filters select { flex: 0 1 210px; width: auto; max-width: 240px; margin: 0; display: inline-block; }
.ncn-sw .ncn-sw-filters .button, .ncn-sw .ncn-sw-filters a.button { flex: 0 0 auto; width: auto; margin: 0; }
.ncn-sw-dl { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 6px 18px; margin: 0 0 16px; }
.ncn-sw-dl dt { font-weight: 600; }
.ncn-sw-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .ncn-sw-dl { grid-template-columns: 1fr; } }
