:root {
    --nsp-blue: #0b5ca8;
    --nsp-blue-dark: #083f7c;
    --nsp-blue-soft: #eef6ff;
    --nsp-cyan: #11aee5;
    --nsp-red: #ed1c24;
    --nsp-orange: #f7691e;
    --nsp-ink: #152033;
    --nsp-muted: #6c7889;
    --nsp-border: #dbe4ef;
    --nsp-surface: #ffffff;
    --nsp-page: #f4f7fb;
    --nsp-shadow: 0 10px 25px rgba(11, 92, 168, 0.08);
}

html,
body {
    color: var(--nsp-ink);
    background: var(--nsp-page);
}

.ck-editor__editable,
textarea {
    min-height: 150px;
}

.nsp-dropzone-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 8px;
    padding: 9px 11px;
    border: 1px dashed var(--nsp-border);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--nsp-blue-dark);
    font-size: 13px;
    font-weight: 800;
}

.nsp-dropzone-tools span,
.nsp-dropzone-tools strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nsp-dropzone-helper {
    display: grid;
    gap: 6px;
    margin: 7px 0 12px;
    color: var(--nsp-muted);
    font-size: 13px;
    font-weight: 700;
}

.nsp-dropzone-notice {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--nsp-blue-dark);
    background: var(--nsp-blue-soft);
}

.nsp-dropzone-notice.is-success {
    color: #0f6d52;
    background: #eaf8f4;
}

.nsp-dropzone-notice.is-error {
    color: #a51118;
    background: #fff0f1;
}

.nsp-dropzone-notice.is-warning {
    color: #8a4b00;
    background: #fff5df;
}

.dropzone.dz-sortable .dz-preview {
    padding-top: 26px;
    cursor: grab;
}

.dropzone .dz-preview {
    min-height: 170px;
}

.dropzone .dz-preview .dz-upload-status,
.dropzone .dz-preview .dz-order-number {
    position: absolute;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(21, 32, 51, 0.12);
}

.dropzone .dz-preview .dz-upload-status {
    left: 6px;
    right: 6px;
    bottom: 34px;
    min-height: 24px;
    padding: 4px 6px;
    color: #073040;
    background: rgba(234, 248, 251, 0.96);
}

.dropzone .dz-preview .dz-upload-status.is-error {
    color: #a51118;
    background: rgba(255, 240, 241, 0.96);
}

.dropzone .dz-preview .dz-upload-status.is-success {
    color: #0f6d52;
    background: rgba(234, 248, 244, 0.96);
}

.dropzone.dz-sortable .dz-preview .dz-order-number {
    top: 6px;
    left: 6px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    color: #ffffff;
    background: var(--nsp-blue-dark);
}

.dropzone.dz-sortable .dz-sortable-preview {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.dropzone.dz-sortable .dz-sortable-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.dropzone.dz-sortable .dz-sortable-chosen {
    box-shadow: 0 8px 18px rgba(21, 32, 51, 0.16);
}

.dropzone.dz-sortable .dz-sort-handle {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 20;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nsp-border);
    border-radius: 6px;
    color: var(--nsp-blue-dark);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 10px rgba(21, 32, 51, 0.12);
    cursor: grab;
    touch-action: none;
    pointer-events: none;
}

.dropzone.dz-sortable .dz-preview:active,
.dropzone.dz-sortable .dz-sort-handle:active {
    cursor: grabbing;
}

.dropzone .dz-preview .dz-remove {
    position: relative;
    z-index: 1100;
    display: block;
    width: 120px;
    margin-top: 12px;
    text-align: center;
}

.dropzone .dz-preview .dz-error-message,
.dropzone .dz-preview.dz-error:hover .dz-error-message {
    pointer-events: none;
}

.nsp-admin {
    font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nsp-admin .content-wrapper {
    background: var(--nsp-page);
}

.nsp-admin .content {
    padding: 24px 24px 32px !important;
}

.nsp-main-header {
    min-height: 64px;
    border-bottom: 1px solid var(--nsp-border) !important;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(21, 32, 51, 0.06);
}

.nsp-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nsp-blue-dark) !important;
}

.nsp-menu-toggle:hover {
    background: var(--nsp-blue-soft);
}

.nsp-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--nsp-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    padding-left: 14px;
}

.nsp-header-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-header-title a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--nsp-blue);
    background: var(--nsp-blue-soft);
    font-size: 13px;
}

.nsp-header-title a:hover {
    color: #fff;
    background: var(--nsp-blue);
}

.nsp-header-actions {
    gap: 8px;
}

.nsp-notification-link,
.nsp-logout-link {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--nsp-blue-dark) !important;
}

.nsp-notification-link:hover {
    background: var(--nsp-blue-soft);
    color: var(--nsp-blue) !important;
}

.nsp-logout-link {
    color: var(--nsp-red) !important;
}

.nsp-logout-link:hover {
    background: #fff0f1;
}

.nsp-user-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 5px 8px !important;
    border-radius: 8px;
    color: var(--nsp-ink) !important;
}

.nsp-user-toggle:hover,
.nsp-user-toggle[aria-expanded="true"] {
    background: var(--nsp-blue-soft);
}

.nsp-avatar-sm,
.nsp-avatar-md,
.nsp-profile-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffc21a 0%, #ff8a00 100%);
    color: #073040;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(255, 138, 0, 0.28);
}

.nsp-avatar-sm {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

.nsp-avatar-md {
    width: 62px;
    height: 62px;
    font-size: 20px;
}

.nsp-profile-avatar-lg {
    width: 92px;
    height: 92px;
    font-size: 28px;
}

.nsp-user-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    max-width: 220px;
}

.nsp-user-copy strong,
.nsp-account-summary strong {
    overflow: hidden;
    color: var(--nsp-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-user-copy small,
.nsp-account-summary span,
.nsp-account-summary small {
    color: var(--nsp-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.nsp-user-chevron {
    color: var(--nsp-muted);
    font-size: 12px;
}

.nsp-account-dropdown {
    width: 292px;
    padding: 0;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(21, 32, 51, 0.16);
    overflow: hidden;
}

.nsp-account-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 16px 15px;
    background: #fff;
}

.nsp-account-summary div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.nsp-account-summary small {
    overflow: hidden;
    display: block;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-account-dropdown .dropdown-divider {
    margin: 0;
}

.nsp-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 16px;
    color: var(--nsp-ink);
    font-size: 16px;
    font-weight: 800;
    background: #fff;
    border: 0;
}

.nsp-account-item i {
    width: 20px;
    color: var(--nsp-blue-dark);
    text-align: center;
}

.nsp-account-item:hover,
.nsp-account-item:focus {
    color: var(--nsp-blue-dark);
    background: var(--nsp-blue-soft);
}

.nsp-sidebar {
    background: #0a315f;
    box-shadow: 8px 0 24px rgba(8, 63, 124, 0.18);
}

.nsp-brand-link {
    min-height: 80px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: #ffffff;
}

.nsp-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}

.nsp-brand-link .brand-text {
    display: block;
    color: var(--nsp-blue-dark);
    font-weight: 800 !important;
    font-size: 17px;
    line-height: 1.15;
    white-space: normal;
}

.sidebar {
    padding: 12px 10px;
}

.nav-sidebar > .nav-item {
    margin-bottom: 3px;
}

.nav-sidebar .nav-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 9px 11px;
}

.nav-sidebar .nav-link p {
    margin: 0;
    white-space: normal;
    line-height: 1.2;
}

.nav-sidebar .nav-icon {
    width: 22px;
    margin-right: 8px !important;
    color: rgba(255, 255, 255, 0.74);
}

.nav-sidebar .nav-link:hover {
    background: rgba(17, 174, 229, 0.16);
    color: #fff !important;
}

.nav-sidebar .nav-link.active {
    background: var(--nsp-blue) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--nsp-red);
}

.nav-sidebar .nav-link.active .nav-icon,
.nav-sidebar .nav-link:hover .nav-icon {
    color: #fff;
}

.nav-sidebar .nav-treeview {
    margin: 4px 0 8px 18px;
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-sidebar .nav-treeview .nav-link {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 14px;
    background: transparent;
}

.sidebar .select2-container .select2-selection--single,
.sidebar .searchable-field {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-bottom: 12px;
}

.sidebar .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    line-height: 36px;
}

.card {
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    box-shadow: var(--nsp-shadow);
    overflow: hidden;
}

.card-header {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--nsp-border);
    background: #fff;
    color: var(--nsp-ink);
    font-size: 17px;
    font-weight: 700;
}

.card-body {
    background: #fff;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: none !important;
}

.btn-xs {
    border-radius: 6px;
}

.btn-primary,
.btn-info {
    border-color: var(--nsp-blue);
    background: var(--nsp-blue);
    color: #fff;
}

.btn-primary:hover,
.btn-info:hover {
    border-color: var(--nsp-blue-dark);
    background: var(--nsp-blue-dark);
    color: #fff;
}

.btn-success {
    border-color: var(--nsp-cyan);
    background: var(--nsp-cyan);
    color: #fff;
}

.btn-success:hover {
    border-color: #0b90c0;
    background: #0b90c0;
    color: #fff;
}

.btn-danger {
    border-color: var(--nsp-red);
    background: var(--nsp-red);
    color: #fff;
}

.btn-danger:hover {
    border-color: #ca131a;
    background: #ca131a;
    color: #fff;
}

.btn-warning {
    border-color: var(--nsp-orange);
    background: var(--nsp-orange);
    color: #fff;
}

.btn-warning:hover {
    border-color: #d84f0a;
    background: #d84f0a;
    color: #fff;
}

.btn-default,
.btn-secondary {
    border-color: var(--nsp-border);
    background: #fff;
    color: var(--nsp-blue-dark);
}

.btn-default:hover,
.btn-secondary:hover {
    border-color: var(--nsp-blue);
    background: var(--nsp-blue-soft);
    color: var(--nsp-blue-dark);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 2px 2px 2px 0;
    white-space: nowrap;
}

.nsp-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 180px;
}

.nsp-row-actions-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.nsp-row-actions form {
    display: inline-flex;
    margin: 0;
}

.nsp-row-actions-menu {
    display: none;
}

.nsp-row-actions-menu-body {
    min-width: 160px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(21, 32, 51, 0.22);
}

.nsp-row-actions-menu-body .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    font-size: 13px;
    font-weight: 700;
}

.nsp-row-actions-menu-body form {
    display: block;
    width: 100%;
}

.nsp-row-actions-menu-body .dropdown-item[type="submit"] {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.nsp-show-actions,
.nsp-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.nsp-show-actions form,
.nsp-form-actions form {
    display: inline-flex;
    margin: 0;
}

.nsp-show-actions .btn,
.nsp-form-actions .btn {
    margin: 0;
    white-space: nowrap;
}

.nsp-sticky-form-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 250px;
    z-index: 1030;
    padding: 10px 24px;
    border-top: 1px solid var(--nsp-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(21, 32, 51, 0.1);
    backdrop-filter: blur(8px);
}

.sidebar-collapse .nsp-sticky-form-actions {
    left: 4.6rem;
}

.nsp-sticky-form-actions-inner {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
}

.nsp-sticky-form-actions .btn {
    min-width: 116px;
}

body.has-nsp-sticky-actions .content-wrapper {
    padding-bottom: 74px;
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border-color: var(--nsp-border);
    border-radius: 8px;
    color: var(--nsp-ink);
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--nsp-cyan);
    box-shadow: 0 0 0 3px rgba(17, 174, 229, 0.16);
}

.help-block {
    display: block;
    margin-top: 5px;
    color: var(--nsp-muted);
    font-size: 13px;
}

.form-group .required::after {
    content: " *";
    color: var(--nsp-red);
}

.alert {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--nsp-shadow);
}

.alert-success {
    background: #eaf8f4;
    color: #0f6d52;
}

.alert-danger {
    background: #fff0f1;
    color: #a51118;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #dee2e6;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #dee2e6;
}

.select2 {
    max-width: 100%;
    width: 100%;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.select2-container--open {
    z-index: 9999;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.dataTables_length label select {
    width: 65px!important;
}

div.dt-button-collection {
    padding: 0;
}

.buttons-columnVisibility {
    display: block;
}

.buttons-columnVisibility.active {
    background-color: rgba(128, 128, 128, 0.1);
    font-weight: bolder;
}

.dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dt-buttons .btn {
    margin: 0;
    border-radius: 8px;
    padding: 7px 11px;
}

.nsp-datatable-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin: 8px 0 10px;
}

.nsp-mobile-filter-panel {
    display: none;
    margin: 10px 0 12px;
    padding: 12px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #f8fbff;
}

.nsp-mobile-filter-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--nsp-blue-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.nsp-mobile-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nsp-mobile-filter-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--nsp-muted);
    font-size: 12px;
    font-weight: 800;
}

.nsp-mobile-filter-field .search {
    width: 100%;
}

.nsp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 280px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--nsp-border);
    border-radius: 999px;
    color: var(--nsp-blue-dark);
    background: var(--nsp-blue-soft);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.nsp-filter-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-filter-chip i {
    flex: 0 0 auto;
    color: var(--nsp-red);
}

.nsp-export-summary {
    display: grid;
    gap: 6px;
    padding: 13px 15px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #f8fbff;
}

.nsp-export-summary strong {
    color: var(--nsp-ink);
    font-size: 24px;
    line-height: 1.1;
}

.nsp-export-summary span {
    color: var(--nsp-muted);
    font-size: 13px;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--nsp-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.datatable thead .search {
    min-height: 36px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    padding: 6px 9px;
    background: #fff;
    color: var(--nsp-ink);
}

.dataTables_wrapper {
    max-width: 100%;
}

.dataTables_scroll,
.dataTables_scrollBody {
    border-radius: 8px;
}

.dataTables_wrapper .dataTables_info {
    color: var(--nsp-muted);
    padding-top: 14px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
.datatable thead .search:focus {
    border-color: var(--nsp-cyan);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(17, 174, 229, 0.14);
}

.table,
.table.datatable {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th,
table.dataTable thead th {
    border-top: 0;
    border-bottom: 1px solid var(--nsp-border);
    background: #f8fbff;
    color: var(--nsp-ink);
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.table tbody td {
    vertical-align: middle;
    border-top: 1px solid #eef2f7;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfdff;
}

.table-hover tbody tr:hover {
    background-color: var(--nsp-blue-soft);
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid var(--nsp-border);
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nsp-border) !important;
    border-radius: 8px;
    background: #fff !important;
    color: var(--nsp-blue-dark) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--nsp-blue) !important;
    background: var(--nsp-blue) !important;
    color: #fff !important;
}

.label,
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.label-info,
.badge-info {
    background: var(--nsp-blue-soft);
    color: var(--nsp-blue-dark);
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(21, 32, 51, 0.18);
}

.modal-header,
.modal-footer {
    border-color: var(--nsp-border);
}

.main-footer {
    border-top: 1px solid var(--nsp-border);
    background: #fff;
    color: var(--nsp-muted);
    font-size: 13px;
}

.main-footer p {
    max-width: 960px;
    margin-bottom: 0;
}

.nsp-copy-toast {
    position: fixed;
    top: 78px;
    right: 22px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--nsp-blue-dark);
    color: #fff;
    box-shadow: var(--nsp-shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nsp-copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.prompt-preview {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--nsp-ink);
    font: inherit;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 6px;
}

.form-group .required::after {
    color: var(--nsp-red);
}

.nsp-dashboard-shell {
    display: grid;
    gap: 18px;
}

.nsp-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--nsp-shadow);
}

.nsp-dashboard-title {
    margin: 0;
    color: var(--nsp-ink);
    font-size: 24px;
    font-weight: 800;
}

.nsp-dashboard-subtitle {
    margin: 4px 0 0;
    color: var(--nsp-muted);
}

.nsp-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.nsp-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--nsp-shadow);
}

.nsp-stat-card-link {
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nsp-stat-card-link:hover,
.nsp-stat-card-link:focus {
    color: inherit;
    text-decoration: none;
    border-color: rgba(0, 91, 187, .32);
    box-shadow: 0 14px 34px rgba(15, 46, 71, .14);
    transform: translateY(-2px);
}

.nsp-stat-card-link:focus-visible {
    outline: 3px solid rgba(33, 158, 188, .28);
    outline-offset: 2px;
}

.nsp-stat-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--nsp-blue-soft);
    color: var(--nsp-blue);
    font-size: 21px;
}

.nsp-stat-card:nth-child(2n) .nsp-stat-icon {
    background: #eaf9ff;
    color: #0788b8;
}

.nsp-stat-card:nth-child(3n) .nsp-stat-icon {
    background: #fff1e9;
    color: var(--nsp-orange);
}

.nsp-stat-card:nth-child(4n) .nsp-stat-icon {
    background: #fff0f1;
    color: var(--nsp-red);
}

.nsp-stat-label {
    display: block;
    color: var(--nsp-muted);
    font-size: 14px;
    font-weight: 700;
}

.nsp-stat-value {
    display: block;
    margin-top: 4px;
    color: var(--nsp-ink);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.nsp-dashboard-section {
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--nsp-shadow);
    overflow: hidden;
}

.nsp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--nsp-border);
}

.nsp-section-header h3 {
    margin: 0;
    color: var(--nsp-ink);
    font-size: 18px;
    font-weight: 800;
}

.nsp-section-body {
    padding: 18px;
}

.nsp-table-wrap {
    overflow-x: auto;
}

.nsp-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background: #f4f7fb;
}

.nsp-auth-page .login-box {
    width: min(430px, 100%);
}

.nsp-auth-page .login-box.nsp-auth-wide {
    width: min(520px, 100%);
}

.nsp-login-brand {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--nsp-blue-dark);
    text-decoration: none;
}

.nsp-login-brand:hover {
    color: var(--nsp-blue);
    text-decoration: none;
}

.nsp-login-brand img {
    width: 132px;
    max-width: 44vw;
    height: auto;
    object-fit: contain;
}

.nsp-login-brand span {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.nsp-login-brand small {
    color: var(--nsp-muted);
    font-size: 14px;
}

.nsp-auth-page .card {
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(8, 63, 124, 0.16);
}

.nsp-auth-page .login-card-body {
    padding: 28px;
    border-radius: 8px;
}

.nsp-auth-page .login-box-msg {
    color: var(--nsp-ink);
    font-size: 20px;
    font-weight: 800;
}

.nsp-auth-helper {
    margin: -6px 0 18px;
    color: var(--nsp-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.nsp-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nsp-auth-actions .btn {
    flex: 1 1 auto;
}

.nsp-auth-page .btn-flat {
    border-radius: 8px;
}

.nsp-password-wrap {
    position: relative;
}

.nsp-password-wrap .nsp-password-input {
    padding-right: 44px;
}

.nsp-password-toggle {
    color: var(--nsp-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nsp-password-wrap .nsp-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 42px;
    height: calc(100% - 2px);
    border-left: 1px solid var(--nsp-border);
    border-radius: 0 7px 7px 0;
}

.input-group .nsp-password-toggle {
    min-width: 42px;
    border-color: var(--nsp-border);
}

.nsp-password-toggle:hover,
.nsp-password-toggle:focus {
    color: var(--nsp-blue);
    outline: none;
}

.nsp-password-wrap.is-invalid + .invalid-feedback {
    display: block;
}

.nsp-profile-page,
.nsp-password-page {
    display: grid;
    gap: 18px;
}

.nsp-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 172px;
    padding: 28px 30px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: linear-gradient(105deg, #eefbff 0%, #fff7df 100%);
    box-shadow: var(--nsp-shadow);
}

.nsp-profile-kicker {
    display: block;
    margin-bottom: 7px;
    color: #138da5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nsp-profile-hero h1,
.nsp-password-card-header h1 {
    margin: 0;
    color: var(--nsp-ink);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.15;
}

.nsp-profile-hero p,
.nsp-password-card-header p {
    margin: 10px 0 0;
    color: var(--nsp-ink);
    font-size: 15px;
    font-weight: 700;
}

.nsp-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.nsp-profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    padding: 18px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--nsp-shadow);
}

.nsp-profile-info-wide {
    grid-column: 1 / -1;
    align-items: flex-start;
}

.nsp-profile-info-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eaf8fb;
    color: #138da5;
    font-size: 18px;
}

.nsp-profile-label {
    display: block;
    margin-bottom: 5px;
    color: var(--nsp-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nsp-profile-info strong {
    display: block;
    color: var(--nsp-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.nsp-profile-note {
    color: var(--nsp-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.nsp-profile-note p:last-child {
    margin-bottom: 0;
}

.nsp-password-card {
    width: min(620px, 100%);
    padding: 24px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--nsp-shadow);
}

.nsp-password-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nsp-border);
}

@media (max-width: 991.98px) {
    .nsp-admin .content {
        padding: 18px 14px 28px !important;
    }

    .nsp-header-title {
        max-width: calc(100vw - 150px);
        font-size: 18px;
    }

    .nsp-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nsp-user-copy {
        display: none;
    }

    .nsp-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .nsp-main-header {
        min-height: 58px;
    }

    .nav-sidebar .nav-link {
        min-height: 46px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .nav-sidebar .nav-treeview .nav-link {
        min-height: 42px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nsp-header-title {
        padding-left: 8px;
        font-size: 16px;
    }

    .nsp-header-title a {
        display: none;
    }

    .nsp-stat-grid {
        grid-template-columns: 1fr;
    }

    .nsp-dashboard-header,
    .nsp-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dt-buttons {
        width: 100%;
    }

    .dt-buttons .btn {
        flex: 1 1 auto;
    }

    .nsp-row-actions {
        width: 46px;
        min-width: 46px;
        max-width: 46px;
        justify-content: center;
    }

    .nsp-row-actions-inline {
        display: none;
    }

    .nsp-row-actions-menu {
        display: block;
        width: auto;
    }

    .nsp-row-actions-menu > .btn {
        width: 38px;
        min-width: 38px;
        height: 34px;
        padding: 6px 7px;
        gap: 0;
        font-size: 0;
        justify-content: center;
    }

    .nsp-row-actions-menu > .btn i {
        margin: 0;
        font-size: 13px;
    }

    .nsp-row-actions-menu > .btn::after {
        margin-left: 4px;
    }

    table.dataTable td:last-child,
    table.dataTable th:last-child {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        padding-right: 4px;
        padding-left: 4px;
        text-align: center;
    }

    .nsp-row-actions-menu .dropdown-menu {
        min-width: 160px;
    }

    .nsp-row-actions-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 700;
    }

    .nsp-row-actions-menu form {
        display: block;
        width: 100%;
    }

    .nsp-row-actions-menu .dropdown-item[type="submit"] {
        width: 100%;
        border: 0;
        background: transparent;
        text-align: left;
    }

    .nsp-show-actions,
    .nsp-form-actions {
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nsp-show-actions .btn,
    .nsp-form-actions .btn {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    .nsp-mobile-filter-panel {
        display: block;
    }

    .nsp-mobile-filter-grid {
        grid-template-columns: 1fr;
    }

    .datatable thead tr:nth-child(2) {
        display: none;
    }

    .nsp-dropzone-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .nsp-sticky-form-actions {
        left: 0;
        padding: 9px 12px;
    }

    .sidebar-open .nsp-sticky-form-actions {
        display: none;
    }

    .nsp-sticky-form-actions-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nsp-sticky-form-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .nsp-auth-page .login-card-body {
        padding: 22px;
    }

    .nsp-auth-actions {
        flex-direction: column;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: left;
    }

    .nsp-notification-link {
        display: none !important;
    }

    .nsp-user-chevron,
    .nsp-logout-link {
        display: none !important;
    }

    .nsp-account-dropdown {
        width: calc(100vw - 24px);
    }

    .nsp-profile-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .nsp-profile-hero h1,
    .nsp-password-card-header h1 {
        font-size: 24px;
    }

    .nsp-profile-info,
    .nsp-password-card-header {
        align-items: flex-start;
    }
}
