/* Martek Net Numbers */
.nn-roster, .nn-assign { max-width: 100%; margin: 1.5em 0; }
.nn-notice { padding: .75em 1em; background: #f0f6fc; border-left: 4px solid #2271b1; }
.nn-search { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; margin-bottom: 1em; }
.nn-search input[type="search"] { flex: 1 1 14em; min-width: 10em; padding: .5em .6em; }
.nn-search select { padding: .5em; }
.nn-button { display: inline-block; padding: .5em 1em; border: 1px solid #2271b1; background: #fff; color: #2271b1; border-radius: 3px; cursor: pointer; font: inherit; }
.nn-button:hover { background: #f0f6fc; }
.nn-button.nn-primary { background: #2271b1; color: #fff; }
.nn-button.nn-primary:hover { background: #135e96; }
.nn-table-wrap { overflow-x: auto; }
.nn-table { width: 100%; border-collapse: collapse; }
.nn-table th, .nn-table td { padding: .55em .75em; vertical-align: top; }
.nn-table th a { color: inherit; text-decoration: none; }
.nn-table th a:hover { text-decoration: underline; }
.nn-align-left th, .nn-align-left td { text-align: left; }
.nn-align-center th, .nn-align-center td { text-align: center; }
.nn-align-right th, .nn-align-right td { text-align: right; }
.nn-aka { color: #646970; font-size: .85em; }
.nn-flag { color: #b32d2e; cursor: help; }
.nn-count { color: #646970; font-size: .9em; }
.nn-pagination { margin: 1em 0; }
.nn-pagination .page-numbers { display: inline-block; padding: .3em .7em; margin-right: .2em; border: 1px solid #dcdcde; text-decoration: none; }
.nn-pagination .current { background: #2271b1; border-color: #2271b1; color: #fff; }

/* Table styles */
.nn-style-modern .nn-table th { background: #1d2327; color: #fff; }
.nn-style-modern .nn-table tbody tr:nth-child(even) { background: #f6f7f7; }
.nn-style-modern .nn-table td { border-bottom: 1px solid #e0e0e0; }
.nn-style-classic .nn-table, .nn-style-classic .nn-table th, .nn-style-classic .nn-table td { border: 1px solid #c3c4c7; }
.nn-style-classic .nn-table th { background: #f0f0f1; }
.nn-style-minimal .nn-table th { border-bottom: 2px solid #1d2327; }
.nn-style-minimal .nn-table td { border-bottom: 1px solid #eee; }
.nn-style-compact .nn-table { font-size: .9em; }
.nn-style-compact .nn-table th, .nn-style-compact .nn-table td { padding: .25em .5em; border-bottom: 1px solid #e0e0e0; }

/* Small screens: stack cells with labels */
@media (max-width: 600px) {
	.nn-table thead { position: absolute; left: -9999px; }
	.nn-table, .nn-table tbody, .nn-table tr, .nn-table td { display: block; width: 100%; }
	.nn-table tr { margin-bottom: .75em; border: 1px solid #dcdcde; }
	.nn-table td { text-align: left !important; border: 0; border-bottom: 1px solid #eee; }
	.nn-table td::before { content: attr(data-label) ": "; font-weight: 600; }
}

/* Assignment form */
.nn-assign { max-width: 34em; }
.nn-field { margin: 0 0 1em; }
.nn-field label { display: block; font-weight: 600; margin-bottom: .25em; }
.nn-field input[type="text"], .nn-field select, .nn-field textarea { width: 100%; padding: .5em .6em; box-sizing: border-box; }
.nn-row { display: flex; gap: .75em; align-items: flex-end; }
.nn-grow { flex: 1; }
.nn-btn { margin-bottom: 1em; }
.nn-status { min-height: 1.4em; margin: 0 0 1em; }
.nn-status.nn-ok { color: #1a7f37; }
.nn-status.nn-warn { color: #9a6700; }
.nn-status.nn-error { color: #b32d2e; }
.nn-confirm { padding: 1em; margin-bottom: 1em; border: 2px solid #2271b1; border-radius: 4px; background: #f0f6fc; }
.nn-confirm-text { font-size: 1.1em; font-weight: 600; margin-top: 0; }
.nn-miss label { font-weight: 400; }
.nn-actions { display: flex; gap: .5em; flex-wrap: wrap; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* User picker (wp-admin) */
.nn-picker { position: relative; max-width: 32em; }
.nn-chips { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 .5em; padding: 0; list-style: none; }
.nn-chip { display: inline-flex; align-items: center; gap: .3em; margin: 0; padding: .2em .3em .2em .7em; background: #f0f6fc; border: 1px solid #2271b1; border-radius: 999px; }
.nn-chip-x { border: 0; background: none; cursor: pointer; font-size: 1.2em; line-height: 1; color: #b32d2e; padding: 0 .3em; }
.nn-results { position: absolute; z-index: 20; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #8c8f94; box-shadow: 0 2px 6px rgba(0,0,0,.15); max-height: 16em; overflow: auto; }
.nn-results li { margin: 0; padding: .45em .7em; cursor: pointer; }
.nn-results li[aria-selected="true"], .nn-results li:hover { background: #2271b1; color: #fff; }
.nn-results li.nn-empty { cursor: default; color: #646970; background: #fff; }

/* Certificate form */
.nn-cert-form { max-width: 34em; }
.nn-portrait { border: 1px solid #dcdcde; padding: .75em 1em; }
.nn-portrait legend { font-weight: 600; padding: 0 .4em; }
.nn-portrait label { display: block; font-weight: 400; margin: .35em 0; }
.nn-notice-error { background: #fcf0f1; border-left-color: #b32d2e; }

/* Portrait gallery (wp-admin) */
.nn-gallery { display: flex; flex-wrap: wrap; gap: 1em; margin: 0 0 1em; padding: .5em 0; border: 0; }
.nn-gallery legend { margin-bottom: .4em; }
.nn-gallery-item { display: flex; flex-direction: column; align-items: center; width: 110px; text-align: center; font-size: 12px; cursor: pointer; }
.nn-gallery-item img { width: 100px; height: 130px; object-fit: contain; background: #fff; border: 1px solid #c3c4c7; margin: 4px 0; }
.nn-gallery-item input:checked ~ img { border: 3px solid #2271b1; }
.nn-gallery-custom [data-preview] img { width: 90px; height: auto; margin: 4px 0; }
