:root {
    --nsp-blue: #0b5ca8;
    --nsp-blue-dark: #083f7c;
    --nsp-blue-soft: #eef6ff;
    --nsp-cyan: #11aee5;
    --nsp-red: #ed1c24;
    --nsp-orange: #f7691e;
    --nsp-success: #08745b;
    --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);
}

/* Numeric values remain typeable while browser increment/decrement controls stay hidden. */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Expense and investment reporting */
.nsp-financial-filter-card .card-header .badge {
    padding: 7px 10px;
    border: 1px solid var(--nsp-border);
    color: var(--nsp-ink);
    font-size: 12px;
}

.nsp-financial-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--nsp-border);
}

.nsp-financial-presets,
.nsp-financial-export-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nsp-financial-stats .nsp-stat-card {
    align-items: flex-start;
}

.nsp-financial-stats .nsp-stat-value {
    font-size: clamp(22px, 2.1vw, 30px);
    white-space: nowrap;
}

.nsp-financial-stats small {
    display: block;
    margin-top: 7px;
    color: var(--nsp-muted);
}

/* Shared payment-report tiles */
.payment-summary-tiles .payment-summary-card {
    min-width: 0;
}

.payment-summary-tiles .payment-summary-total-card {
    border-color: #0b5ca8;
    background: linear-gradient(135deg, #0b5ca8 0%, #0877c9 100%);
    color: #fff;
}

.payment-summary-tiles .payment-summary-total-card > .payment-summary-total-body {
    min-height: 116px;
    background: transparent;
    color: inherit;
}

.payment-summary-tiles .payment-summary-total-label,
.payment-summary-tiles .payment-summary-total-help {
    color: rgba(255, 255, 255, .82);
}

.payment-summary-tiles .payment-summary-total-value {
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.payment-summary-tiles .payment-summary-type-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .75rem;
    min-height: 72px;
    padding: .85rem 1rem;
}

.payment-summary-tiles .payment-summary-type-copy {
    min-width: 0;
}

.payment-summary-tiles .payment-summary-type-name {
    color: var(--nsp-ink);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-summary-tiles .payment-summary-amount {
    align-self: start;
    color: var(--nsp-blue-dark);
    line-height: 1.25;
    text-align: right;
}

.payment-summary-tiles .payment-summary-mode-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
}

.payment-summary-tiles .payment-summary-mode-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nsp-stat-icon-expense {
    background: #fff0f1;
    color: #c92a3a;
}

.nsp-stat-icon-investment {
    background: #eaf8ef;
    color: #198754;
}

.nsp-financial-insight-card .card-body {
    gap: 14px;
}

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

.nsp-financial-chart-wrap {
    position: relative;
    min-height: 340px;
}

.nsp-financial-summary-table td,
.nsp-financial-summary-table th {
    vertical-align: middle;
}

.nsp-financial-summary-table .progress {
    height: 4px;
    min-width: 110px;
    background: #edf1f5;
}

@media (max-width: 767.98px) {
    .nsp-financial-filter-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .nsp-financial-export-actions {
        width: 100%;
    }

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

    .nsp-financial-chart-wrap {
        min-height: 280px;
    }
}

/* Dry Cleaning item identification in both search results and selected chips. */
.dry-cleaning-option {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
}

.dry-cleaning-option__thumb,
.dry-cleaning-selection__thumb {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nsp-border);
    border-radius: 7px;
    background: #f7fafc;
    color: var(--nsp-muted);
}

.dry-cleaning-option__thumb {
    width: 44px;
    height: 44px;
}

.dry-cleaning-selection__thumb {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.dry-cleaning-option__thumb img,
.dry-cleaning-selection__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dry-cleaning-option__copy {
    display: block;
    min-width: 0;
}

.dry-cleaning-option__copy strong,
.dry-cleaning-option__copy small {
    display: block;
    overflow-wrap: anywhere;
}

.dry-cleaning-option__copy small {
    margin-top: 2px;
}

.dry-cleaning-selection {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.nsp-line-item-counter {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd8e6;
    border-radius: 50%;
    background: #eef3f9;
    color: var(--nsp-blue-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.nsp-line-counter-column,
.nsp-line-counter-cell,
#booking-items .booking-counter-column,
#booking-items .booking-item-counter {
    width: 48px;
    min-width: 48px;
    vertical-align: middle;
}

.nsp-select2-line-counter {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-color: #b8c6d9;
    background: #fff;
    font-size: 11px;
}

.dry-cleaning-selection__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#dry-cleaning-items + .select2-container .select2-selection__choice,
#maintenance-items + .select2-container .select2-selection__choice {
    max-width: calc(100% - 10px);
    padding-top: 3px;
    padding-bottom: 3px;
}

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-page-context {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 2px 16px;
    border-bottom: 1px solid var(--nsp-border);
}

.nsp-page-context-copy {
    min-width: 0;
}

.nsp-breadcrumb {
    margin: 0 0 5px;
    padding: 0;
    background: transparent;
    font-size: 13px;
}

.nsp-breadcrumb a {
    color: var(--nsp-blue-dark);
}

.nsp-page-title {
    margin: 0;
    color: var(--nsp-ink);
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 800;
    line-height: 1.15;
}

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

.nsp-favorite-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.nsp-favorite-toggle.is-favorite {
    border-color: #b77900;
    background: #fff7dc;
    color: #704800;
}

.nsp-admin-content {
    width: 100%;
}

.nsp-admin-content > .card,
.nsp-admin-content > form > .card,
.nsp-admin-content > .row > [class*="col-"] > .card,
.nsp-admin-content > form > .row > [class*="col-"] > .card {
    margin-bottom: 20px;
}

.nsp-page-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px !important;
    padding: 10px 14px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: var(--nsp-surface);
    box-shadow: var(--nsp-shadow);
}

.nsp-page-toolbar h1,
.nsp-page-toolbar h2,
.nsp-page-toolbar h3,
.nsp-page-toolbar .h3,
.nsp-page-toolbar .h4 {
    margin-bottom: 0 !important;
    color: var(--nsp-ink);
    font-weight: 800;
    line-height: 1.2;
}

.nsp-page-toolbar > div,
.nsp-page-toolbar .nsp-show-actions,
.nsp-page-toolbar .nsp-form-actions {
    min-width: 0;
}

.nsp-page-toolbar > div:not(:only-child):last-child,
.nsp-page-toolbar > .nsp-show-actions,
.nsp-page-toolbar > .nsp-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.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;
}

.nsp-sidebar .sidebar {
    display: flex;
    flex-direction: column;
}

.nsp-sidebar .sidebar > nav {
    flex: 1 0 auto;
}

.nsp-sidebar-footer {
    margin: 14px 2px 4px;
    padding: 14px 8px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

.nsp-sidebar-footer p {
    margin: 0;
}

.nsp-sidebar-footer strong {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.nsp-sidebar-copyright {
    margin-top: 8px !important;
    font-size: 10px;
}

@media (min-width: 768px) {
    .sidebar-mini.sidebar-collapse .nsp-sidebar-footer {
        display: none;
    }
}

.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: 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-bottom: 0;
}

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

.sidebar .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.sidebar .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.nsp-menu-filter,
.nsp-sidebar-search {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 2px;
}

.nsp-menu-filter-control {
    position: relative;
    display: flex;
    align-items: center;
}

.nsp-menu-filter-control .form-control {
    min-height: 42px;
    padding: 8px 38px 8px 36px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nsp-menu-filter-control .form-control::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.nsp-menu-filter-control .form-control:focus {
    border-color: var(--nsp-cyan);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(17, 174, 229, 0.16);
}

.nsp-menu-filter-control > .fa-search {
    position: absolute;
    left: 12px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.nsp-menu-filter-clear {
    position: absolute;
    right: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
}

.nsp-menu-filter-clear:hover,
.nsp-menu-filter-clear:focus {
    color: #fff;
}

.nsp-data-search .select2-container {
    width: 100% !important;
}

.nsp-menu-filter-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 22px 10px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    text-align: center;
}

.nsp-menu-filter-empty i {
    color: var(--nsp-cyan);
    font-size: 20px;
}

.nsp-menu-filter-expanded > .nav-treeview {
    display: block !important;
}

.nsp-menu-filter[hidden],
.nsp-sidebar-search[hidden],
.nsp-menu-filter-empty[hidden],
.nav-sidebar .nav-item[hidden],
.nsp-sidebar-shortcut-list > li[hidden] {
    display: none !important;
}

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

.nsp-admin-content .nsp-ui-card {
    margin-bottom: 20px;
}

.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;
}

.nsp-admin-content .nsp-ui-card-header {
    padding: 13px 18px;
    line-height: 1.35;
}

.card-body {
    background: #fff;
}

.nsp-admin-content .nsp-ui-card-body {
    padding: 20px;
}

.nsp-admin-content .form-group {
    margin-bottom: 18px;
}

.nsp-admin-content .form-group > label,
.nsp-admin-content .form-check-label {
    margin-bottom: 7px;
    color: var(--nsp-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

/* AdminLTE's bundled custom-control rule places markers on top of their labels. */
.nsp-whatsapp-settings-form .custom-control-label::before,
.nsp-whatsapp-settings-form .custom-control-label::after {
    left: -1.5rem;
}

.nsp-whatsapp-settings-form .custom-control-label,
.nsp-whatsapp-settings-form .nsp-whatsapp-slot-option {
    cursor: pointer;
}

.nsp-whatsapp-settings-form .nsp-whatsapp-custom-control {
    min-height: 58px;
}

.nsp-whatsapp-settings-form .nsp-whatsapp-slot-option {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.nsp-whatsapp-settings-form .nsp-whatsapp-slot-radio {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 0 10px 0 0;
}

.nsp-whatsapp-settings-form .nsp-whatsapp-slot-copy {
    display: block;
    min-width: 0;
}

.nsp-admin-content .form-control,
.nsp-admin-content .custom-select,
.nsp-admin-content .select2-container .select2-selection--single {
    min-height: 42px;
    border-color: var(--nsp-border);
    border-radius: 8px;
    color: var(--nsp-ink);
    background-color: #fff;
    box-shadow: none;
}

.nsp-admin-content textarea.form-control {
    min-height: 120px;
}

.nsp-admin-content .form-control:focus,
.nsp-admin-content .custom-select:focus,
.nsp-admin-content .select2-container--focus .select2-selection,
.nsp-admin-content .select2-container--open .select2-selection {
    border-color: var(--nsp-blue);
    box-shadow: 0 0 0 3px rgba(11, 92, 168, 0.11);
}

.nsp-admin-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
}

.nsp-admin-content .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.nsp-admin-content .select2-container--default .select2-selection--multiple {
    min-height: 42px;
    border-color: var(--nsp-border);
    border-radius: 8px;
}

.nsp-admin-content .input-group-text {
    min-height: 42px;
    border-color: var(--nsp-border);
    background: #f7f9fc;
    color: var(--nsp-blue-dark);
    font-weight: 700;
}

.nsp-admin-content .help-block,
.nsp-admin-content .form-text,
.nsp-admin-content small.text-muted {
    display: block;
    margin-top: 6px;
    color: var(--nsp-muted) !important;
    line-height: 1.4;
}

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

.nsp-admin-content .nsp-ui-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    white-space: nowrap;
}

.nsp-admin-content .btn-sm.nsp-ui-button {
    min-height: 34px;
    padding: 6px 10px;
}

.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-action-strip {
    width: 100%;
    margin-bottom: 18px !important;
    padding: 10px 12px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #f8fbff;
    font-size: 0;
}

.nsp-action-strip:last-child {
    margin-top: 4px;
    margin-bottom: 0 !important;
}

.nsp-action-strip .btn {
    font-size: 14px;
}

.nsp-table-wrap {
    margin: 0;
}

.nsp-admin-content .nsp-ui-table {
    margin-bottom: 0;
    color: var(--nsp-ink);
}

.nsp-admin-content .nsp-ui-table thead th {
    border-bottom-width: 1px;
    border-color: var(--nsp-border);
    background: #f3f7fc;
    color: var(--nsp-blue-dark);
    font-size: 13px;
    font-weight: 800;
    vertical-align: middle;
}

.nsp-admin-content .nsp-ui-table td,
.nsp-admin-content .nsp-ui-table th {
    padding: 11px 12px;
    border-color: var(--nsp-border);
    vertical-align: middle;
}

.nsp-admin-content .nsp-ui-table.table-striped tbody tr:nth-of-type(odd) {
    background: #f9fbfe;
}

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

.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;
}

.nsp-booking-queues .nsp-queue-card {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--nsp-border);
    border-radius: 10px;
    background: #fff;
    color: var(--nsp-ink);
    box-shadow: 0 4px 14px rgba(21, 32, 51, 0.06);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.nsp-booking-queues .nsp-queue-card:hover,
.nsp-booking-queues .nsp-queue-card.active {
    border-color: var(--nsp-cyan);
    box-shadow: 0 8px 20px rgba(17, 174, 229, .14);
    text-decoration: none;
    transform: translateY(-1px);
}

.nsp-queue-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 9px;
    background: var(--nsp-blue-soft);
    font-size: 17px;
}

.nsp-queue-card strong,
.nsp-queue-card small {
    display: block;
}

.nsp-queue-card strong { font-size: 19px; line-height: 1.1; }
.nsp-queue-card small { margin-top: 4px; color: var(--nsp-muted); font-size: 12px; }
.nsp-list-filters { gap: 6px; }
.nsp-list-filters .form-control { width: auto; min-height: 34px; }

.nsp-booking-card > .card-header,
.nsp-booking-summary > .card-header {
    font-weight: 700;
}

.nsp-booking-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.nsp-booking-switches label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 600;
}

.nsp-booking-switches input { width: 17px; height: 17px; }

#customer-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 0;
    color: #334155;
}

#customer-context .nsp-booking-customer-recent {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* AdminLTE's generic .alert a rule otherwise makes these links white. */
#customer-context .nsp-booking-recent-link {
    padding: 6px 9px;
    border: 1px solid #bfd2e5;
    background: #edf4fb;
    color: #174d7c;
    white-space: normal;
    text-decoration: none;
}

#customer-context .nsp-booking-recent-link:hover,
#customer-context .nsp-booking-recent-link:focus {
    background: #dceafa;
    color: #123d63;
    text-decoration: underline;
}

#customer-context .nsp-booking-recent-link:focus-visible {
    outline: 2px solid #174d7c;
    outline-offset: 2px;
}

#booking-payments { min-width: 1040px; }
#booking-payments .payment-lockable-select { min-width: 120px; }
#booking-payments .payment-type { min-width: 150px; }
#booking-payments input.payment-amount,
#operation-payments input.payment-amount { min-width: 160px; }
.nsp-booking-tabs .nav-link { padding: 14px 18px; font-weight: 700; }
.nsp-booking-tabs .nav-link i { margin-right: 6px; }

.booking-item-thumb {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #f7fafc;
    color: var(--nsp-muted);
}

.booking-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.booking-item-product .select2-container { min-width: 210px; }
.min-width-0 { min-width: 0; }

#booking-items .booking-item-column { min-width: 300px; }
#booking-items .booking-money-column,
#booking-items .booking-money-cell { min-width: 100px; }
#booking-items .booking-extra-column,
#booking-items .booking-extra-cell { min-width: 118px; }
#booking-items .booking-total-column { min-width: 92px; }
#booking-items .booking-note-column { min-width: 190px; }

.booking-extra-input {
    width: 100%;
    min-width: 104px;
    flex-wrap: nowrap;
}

.booking-extra-input .item-extra {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
}

.booking-extra-input .line-discount {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
}

.booking-extra-input .input-group-append {
    flex: 0 0 auto;
}

.booking-extra-input .input-group-text {
    min-width: 34px;
    min-height: 40px;
    justify-content: center;
    padding-right: 8px;
    padding-left: 8px;
}

.operational-line-table td { vertical-align: middle; }
.operational-item-thumb {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #f7fafc;
    color: var(--nsp-muted);
}
.operational-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.nsp-total-row,
.nsp-grand-total,
.nsp-pending-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--nsp-border);
}

.nsp-grand-total {
    margin-top: 6px;
    padding: 14px 0;
    border-top: 2px solid var(--nsp-ink);
    border-bottom: 2px solid var(--nsp-ink);
    font-size: 18px;
}

.nsp-pending-total {
    margin-top: 10px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #fff1f2;
    color: #b4232c;
}

.nsp-pending-total.settled { background: #eaf8f4; color: #0f6d52; }
.nsp-booking-summary.sticky-top { top: 72px; z-index: 10; }

.nsp-booking-focus-title { display: none; }

body.nsp-booking-focus-mode {
    overflow: hidden;
}

body.nsp-booking-focus-mode .main-header,
body.nsp-booking-focus-mode .main-sidebar,
body.nsp-booking-focus-mode .main-footer,
body.nsp-booking-focus-mode .nsp-page-context,
body.nsp-booking-focus-mode #sidebar-overlay {
    display: none !important;
}

body.nsp-booking-focus-mode .wrapper {
    min-height: 100vh;
    min-height: 100dvh;
}

body.nsp-booking-focus-mode .content-wrapper {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin-left: 0 !important;
    overflow-y: auto;
}

body.nsp-booking-focus-mode .content-wrapper > .content {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px !important;
}

body.nsp-booking-focus-mode .nsp-admin-content {
    max-width: none;
}

body.nsp-booking-focus-mode .nsp-booking-workspace-toolbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    min-height: 50px;
    margin-bottom: 12px !important;
    padding: 8px 10px;
    border: 1px solid var(--nsp-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 18px rgba(21, 32, 51, .10);
    backdrop-filter: blur(8px);
}

body.nsp-booking-focus-mode .nsp-booking-focus-title {
    display: inline-flex;
    align-items: center;
}

body.nsp-booking-focus-mode .booking-workspace-primary-actions {
    display: none;
}

body.nsp-booking-focus-mode .nsp-booking-summary.sticky-top {
    top: 62px;
}

.nsp-item-picker-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--nsp-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(21,32,51,.07);
}

.nsp-item-picker-card.unavailable { opacity: .72; }
.nsp-item-browser-modal #item-browser-grid > [class*="col-"] {
    flex: 0 0 20%;
    max-width: 20%;
}
.nsp-item-picker-image {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 210px;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    place-items: start center;
    overflow: hidden;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    background: #f4f7fa;
    color: #a0adba;
    font-size: 42px;
}
.nsp-item-picker-image img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    object-position: center top;
}
.nsp-item-picker-image .badge { position: absolute; top: 9px; right: 9px; }
.nsp-item-picker-card small { display: block; min-height: 36px; margin-top: 5px; color: var(--nsp-muted); }

@media (max-width: 1399.98px) {
    .nsp-item-browser-modal #item-browser-grid > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 1199.98px) {
    .nsp-item-browser-modal #item-browser-grid > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .nsp-item-browser-modal #item-browser-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .nsp-item-browser-modal #item-browser-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* AdminLTE caps modal dialogs at 500px; inventory browsers need the viewport. */
.nsp-item-browser-modal {
    z-index: 1120;
    padding: 0 !important;
}

body.nsp-item-browser-open > .modal-backdrop {
    z-index: 1110;
}

.nsp-item-browser-modal .modal-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
}

.nsp-item-browser-modal .modal-content {
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
}

.nsp-item-browser-modal .modal-header {
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.nsp-item-browser-modal .modal-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.nsp-item-browser-modal .nsp-item-browser-cancel {
    flex: 0 0 auto;
    min-width: 124px;
    min-height: 48px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(220, 53, 69, .22);
}

.nsp-item-browser-modal .modal-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}

.nsp-item-browser-modal .nsp-item-browser-filters {
    position: sticky;
    top: -1rem;
    z-index: 5;
    margin: -1rem -1rem 1rem !important;
    padding: 1rem;
    border-bottom: 1px solid var(--nsp-border);
    background: #fff;
    box-shadow: 0 5px 12px rgba(21, 32, 51, .06);
}

.nsp-customer-create-modal {
    z-index: 1140;
}

body.nsp-customer-create-open > .modal-backdrop {
    z-index: 1130;
}

.nsp-customer-create-modal .modal-dialog {
    width: calc(100vw - 32px);
    max-width: none;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    margin: 16px auto;
}

.nsp-customer-create-modal .modal-content,
.nsp-customer-create-modal .js-customer-form {
    height: 100%;
    min-height: 0;
}

.nsp-customer-create-modal .js-customer-form {
    display: flex;
    flex-direction: column;
}

.nsp-customer-create-modal .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.nsp-measurement-row {
    margin: 0 0 12px;
    padding: 12px 4px 0;
    border: 1px solid var(--nsp-border);
    border-radius: 10px;
    background: #f9fbfd;
}

.nsp-workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.nsp-workflow-steps::before { content: ''; position: absolute; top: 18px; right: 8%; left: 8%; height: 3px; background: var(--nsp-border); }
.nsp-workflow-step { position: relative; z-index: 1; display: flex; width: 25%; align-items: center; flex-direction: column; gap: 6px; color: var(--nsp-muted); font-size: 12px; }
.nsp-workflow-step span { display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid var(--nsp-border); border-radius: 50%; background: #fff; }
.nsp-workflow-step.active { color: var(--nsp-blue-dark); }
.nsp-workflow-step.active span { border-color: var(--nsp-cyan); background: var(--nsp-blue-soft); }

@media (max-width: 767.98px) {
    .nsp-booking-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nsp-booking-tabs .nav-item { flex: 0 0 auto; }
    .nsp-booking-tabs .nav-link { padding: 11px 9px; font-size: 12px; white-space: nowrap; }
    .nsp-booking-summary.sticky-top { position: static !important; }
    .nsp-list-filters .form-control { width: 100%; }
    .nsp-list-filters { width: 100%; margin-top: 8px; }

    .nsp-booking-items-heading > div:last-child {
        width: 100%;
        margin-top: 12px;
    }

    .nsp-booking-items-heading .btn { width: 100%; }

    .booking-items-responsive { overflow: visible; }

    #booking-items {
        display: block;
        width: 100%;
        margin-bottom: 0;
        border: 0;
    }

    #booking-items thead { display: none; }

    #booking-items tbody {
        display: grid;
        gap: 14px;
    }

    #booking-items .booking-item-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--nsp-border);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(21, 32, 51, .06);
    }

    #booking-items .booking-item-row > td {
        display: block;
        width: auto;
        min-width: 0 !important;
        padding: 0;
        border: 0;
    }

    #booking-items .booking-item-row > td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: var(--nsp-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    #booking-items .booking-item-product,
    #booking-items .booking-item-note,
    #booking-items .booking-item-actions {
        grid-column: 1 / -1;
    }

    #booking-items .booking-item-counter {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        gap: 8px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--nsp-border);
        text-align: left !important;
    }

    #booking-items .booking-item-counter::before { margin: 0; }

    #booking-items .booking-item-product > .d-flex { align-items: flex-start !important; }
    #booking-items .booking-item-product .select2-container { width: 100% !important; min-width: 0; }

    #booking-items .booking-item-net-cell {
        display: flex;
        min-height: 40px;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        border-radius: 8px;
        background: #f7fafc;
        text-align: right !important;
    }

    #booking-items .booking-item-net-cell::before { margin: 0 10px 0 0; }

    #booking-items .booking-item-actions {
        padding-top: 10px;
        border-top: 1px solid var(--nsp-border);
        text-align: right !important;
    }

    #booking-items .booking-item-actions::before { display: none; }
    #booking-items .booking-extra-input { min-width: 0; }

    .nsp-item-browser-filters > [class*="col-"] + [class*="col-"] {
        margin-top: 8px;
    }
}

@media (max-width: 575.98px) {
    #booking-items .booking-item-row { grid-template-columns: minmax(0, 1fr); }

    .nsp-item-browser-modal .modal-header {
        padding: 12px;
    }

    .nsp-item-browser-modal .nsp-item-browser-cancel {
        min-width: 112px;
        padding-right: 12px;
        padding-left: 12px;
    }

    body.nsp-booking-focus-mode .nsp-booking-workspace-toolbar > div:first-child {
        width: 100%;
        justify-content: space-between;
    }

    body.nsp-booking-focus-mode .nsp-booking-focus-title { display: none; }

    .nsp-customer-create-modal .modal-dialog {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
    }

    .nsp-customer-create-modal .modal-content {
        border: 0;
        border-radius: 0;
    }

    .nsp-customer-create-modal .modal-header,
    .nsp-customer-create-modal .modal-body {
        padding-right: 12px;
        padding-left: 12px;
    }

    .nsp-measurement-row .remove-measurement {
        margin-bottom: 4px;
    }
}

.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,
table.ajaxTable,
table[class*="datatable-"] {
    width: 100% !important;
}

.nsp-table-wrap,
.card-body.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nsp-table-wrap .dataTables_wrapper,
.card-body.table-responsive > .dataTables_wrapper {
    min-width: 100%;
}

.nsp-money-column {
    text-align: right;
    white-space: nowrap;
}

.nsp-date-column,
.nsp-status-column {
    white-space: nowrap;
}

.nsp-wrap-cell {
    max-width: 360px;
    overflow-wrap: anywhere;
    white-space: normal !important;
}

.nsp-json-viewer {
    max-height: 520px;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #101820;
    color: #e8f1f8;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.nsp-detail-table th {
    min-width: 150px;
    width: 18%;
}

.nsp-rental-history-pagination {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 2px;
}

.nsp-rental-history-summary {
    flex: 1 1 auto;
    color: var(--nsp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.nsp-rental-history-summary strong {
    color: var(--nsp-ink);
    font-weight: 700;
}

.nsp-rental-history-pages {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
}

.nsp-rental-history-pages nav,
.nsp-rental-history-pages .pagination {
    margin: 0;
}

.nsp-rental-history-pages .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nsp-rental-history-pages .page-link {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
}

.nsp-rental-history-pages .page-link svg {
    width: 1em;
    height: 1em;
}

.nsp-security-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nsp-security-tabs .nav-link {
    font-weight: 700;
    white-space: nowrap;
}

.nsp-message-list .list-group-item,
.nsp-message-thread .list-group-item {
    border-right: 0;
    border-left: 0;
}

.nsp-message-content {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.datatable-Role td,
.datatable-Permission td,
.datatable-User td {
    max-width: 420px;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .nsp-detail-table th {
        min-width: 125px;
    }

    .nsp-rental-history-pagination {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .nsp-rental-history-summary {
        width: 100%;
    }

    .nsp-rental-history-pages {
        width: 100%;
        margin-left: 0;
    }

    .nsp-rental-history-pages .pagination {
        justify-content: flex-start;
    }

    .nsp-list-filters {
        display: grid !important;
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .nsp-list-filters .form-control,
    .nsp-list-filters .btn {
        margin: 0 !important;
        width: 100%;
    }
}

table.dataTable th.nsp-select-column,
table.dataTable td.nsp-select-column {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding-right: 6px;
    padding-left: 6px;
    text-align: center;
}

table.dataTable th.nsp-actions-column,
table.dataTable td.nsp-actions-column {
    min-width: 180px;
    vertical-align: middle;
}

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,
table.dataTable thead .search,
.datatable thead .search {
    min-height: 36px;
    width: 100%;
    min-width: 112px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    padding: 6px 9px;
    background: #fff;
    color: var(--nsp-ink);
}

.dataTables_wrapper {
    max-width: 100%;
}

.nsp-datatable-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    color: var(--nsp-muted);
    font-size: 11px;
    font-weight: 800;
}

.nsp-datatable-status__pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--nsp-border);
    border-radius: 999px;
    background: #f8fbff;
    white-space: nowrap;
}

.nsp-datatable-status__rows {
    font-variant-numeric: tabular-nums;
}

.nsp-datatable-status__pill i {
    color: var(--nsp-teal);
    margin-right: 5px;
}

.dataTables_wrapper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "length buttons filter"
        "chips chips chips"
        "mobile mobile mobile"
        "table table table"
        "info info pagination"
        "actions actions actions";
    align-items: center;
    column-gap: 1rem;
    width: 100%;
}

.dataTables_wrapper > .dataTables_length {
    grid-area: length;
    justify-self: start;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper > .dataTables_filter {
    grid-area: filter;
    justify-self: end;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper > .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
}

.dataTables_wrapper > .dt-buttons {
    grid-area: buttons;
    justify-self: start;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper > .nsp-datatable-filter-chips {
    grid-area: chips;
    margin: 0 0 0.75rem;
}

.dataTables_wrapper > .nsp-mobile-filter-panel {
    grid-area: mobile;
    margin: 0 0 0.75rem;
}

.dataTables_wrapper > .dataTables_scroll,
.dataTables_wrapper > table.dataTable {
    grid-area: table;
    min-width: 0;
    width: 100% !important;
}

.dataTables_wrapper > .dataTables_info {
    grid-area: info;
}

.dataTables_wrapper > .dataTables_paginate {
    grid-area: pagination;
    justify-self: end;
}

.dataTables_wrapper > .actions {
    grid-area: actions;
}

@media (max-width: 1399.98px) {
    .dataTables_wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "length length"
            "buttons buttons"
            "filter filter"
            "chips chips"
            "mobile mobile"
            "table table"
            "info pagination"
            "actions actions";
    }

    .dataTables_wrapper > .dataTables_filter {
        justify-self: stretch;
    }
}

.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,
.datatable thead .search:focus {
    border-color: var(--nsp-cyan);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(17, 174, 229, 0.14);
}

table.dataTable thead .nsp-column-filter-row th,
table.dataTable thead .nsp-column-filter-row td {
    padding: 7px 6px;
    border-top: 1px solid var(--nsp-border);
    background: #f8fbff;
}

table.dataTable thead .nsp-column-filter-disabled {
    min-width: 42px;
    background: #f3f6fa;
}

.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);
}

.nsp-confirm-details {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    background: #f8fbff;
    white-space: pre-line;
}

#nspActionConfirmModal {
    z-index: 30050;
}

body.nsp-action-confirm-open > .modal-backdrop {
    z-index: 30040;
}

#nspActionConfirmModal .modal-dialog {
    max-width: 500px;
}

#nspActionConfirmModal .modal-content {
    overflow: hidden;
    border: 1px solid #dfe5eb;
    border-radius: 5px;
}

#nspActionConfirmModal .modal-header {
    align-items: center;
    padding: 15px 17px;
}

#nspActionConfirmModal .modal-title {
    margin: 0;
    color: #1f2d3d;
    font-size: 20px;
    font-weight: 500;
}

#nspActionConfirmModal .modal-header .close {
    margin: -8px -5px -8px auto;
    padding: 8px 10px;
    color: #676f78;
    font-size: 28px;
    opacity: 0.85;
}

#nspActionConfirmModal .modal-body {
    padding: 24px 22px;
}

.nsp-confirm-prompt {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.nsp-confirm-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: 1px;
    border-radius: 50%;
    background: #fff4d6;
    color: #9b7500;
    font-size: 18px;
}

.nsp-confirm-copy {
    flex: 1 1 auto;
    min-width: 0;
}

#nspActionConfirmMessage {
    padding-top: 2px;
    color: #303943;
    font-size: 16px;
    line-height: 1.45;
    white-space: pre-line;
}

#nspActionConfirmModal .modal-footer {
    gap: 8px;
    padding: 16px;
    background: #f7fafc;
}

#nspActionConfirmModal .modal-footer .btn {
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
}

#nspActionConfirmModal .nsp-confirm-cancel {
    border-color: #dbe2e8;
    background: #fff;
    color: #263341;
}

#nspActionConfirmModal.nsp-confirm-unsaved .nsp-confirm-icon {
    background: #fff4d6;
    color: #9b7500;
}

#nspActionConfirmModal.nsp-confirm-unsaved .nsp-confirm-cancel {
    border-color: #dbe2e8;
    background: #fff;
    color: #263341;
}

#nspActionConfirmModal.nsp-confirm-unsaved #nspActionConfirmButton {
    border-color: #dc3545;
    background: #dc3545;
    color: #fff;
}

#nspActionConfirmModal.nsp-confirm-unsaved #nspActionConfirmButton:hover,
#nspActionConfirmModal.nsp-confirm-unsaved #nspActionConfirmButton:focus {
    border-color: #bd2130;
    background: #c82333;
    color: #fff;
}

@media (max-width: 575.98px) {
    #nspActionConfirmModal .modal-dialog {
        margin: 12px;
    }

    #nspActionConfirmModal .modal-body {
        padding: 20px 18px;
    }

    .nsp-confirm-prompt {
        gap: 12px;
    }
}

.nsp-feedback-stack:empty {
    display: none;
}

.nsp-toast-region {
    position: fixed;
    top: 78px;
    right: 18px;
    z-index: 11000;
    display: grid;
    width: min(390px, calc(100vw - 36px));
    gap: 8px;
    pointer-events: none;
}

.nsp-toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-left: 4px solid var(--nsp-blue);
    border-radius: 8px;
    background: #fff;
    color: var(--nsp-ink);
    box-shadow: 0 14px 40px rgba(21, 32, 51, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

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

.nsp-toast-success {
    border-left-color: var(--nsp-success);
}

.nsp-toast-danger {
    border-left-color: var(--nsp-red);
}

.nsp-toast-warning {
    border-left-color: var(--nsp-orange);
}

.nsp-toast-close {
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--nsp-muted);
    font-size: 20px;
    line-height: 1;
}

.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-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

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

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

/* Panache dashboard command centre */
.nsp-dashboard-shell {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 22px;
    overflow-x: clip;
}

.nsp-dashboard-shell.is-loading > :not(.nsp-command-header) {
    opacity: .62;
    pointer-events: none;
}

.nsp-dashboard-shell.is-loading [data-card-value],
.nsp-dashboard-shell.is-loading [data-kpi-value],
.nsp-dashboard-shell.is-loading .nsp-schedule-main,
.nsp-dashboard-shell.is-loading .nsp-compact-row {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    color: transparent !important;
    background: #e7edf4;
}

.nsp-dashboard-shell.is-loading .nsp-schedule-main *,
.nsp-dashboard-shell.is-loading .nsp-compact-row * {
    color: transparent !important;
}

.nsp-dashboard-shell.is-loading [data-card-value]::after,
.nsp-dashboard-shell.is-loading [data-kpi-value]::after,
.nsp-dashboard-shell.is-loading .nsp-schedule-main::after,
.nsp-dashboard-shell.is-loading .nsp-compact-row::after {
    position: absolute;
    inset: 0;
    content: '';
    transform: translateX(-100%);
    animation: nsp-dashboard-shimmer 1.15s infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
}

@keyframes nsp-dashboard-shimmer {
    100% { transform: translateX(100%); }
}

.nsp-command-header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    border: 1px solid #d9e6f4;
    border-radius: 14px;
    background: linear-gradient(120deg, #fff 0%, #f7fbff 68%, #eef6ff 100%);
    box-shadow: 0 16px 38px rgba(13, 62, 105, .08);
}

.nsp-command-heading {
    min-width: 0;
}

.nsp-command-eyebrow,
.nsp-section-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--nsp-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.nsp-command-heading h1 {
    margin: 0;
    color: var(--nsp-ink);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 800;
    letter-spacing: -.025em;
}

.nsp-command-heading p {
    margin: 7px 0 0;
    color: var(--nsp-muted);
    font-size: 15px;
}

.nsp-command-actions,
.nsp-period-controls {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nsp-command-actions .btn {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 700;
}

.nsp-dashboard-toolbar {
    position: relative;
    z-index: 8;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid var(--nsp-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--nsp-shadow);
}

.nsp-command-search {
    position: relative;
    flex: 1 1 360px;
    min-width: 220px;
}

.nsp-command-search > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    color: #8290a2;
    transform: translateY(-50%);
}

.nsp-command-search .form-control {
    height: 42px;
    padding-left: 40px;
    border-color: #d7e1ec;
    border-radius: 9px;
    background: #f8fafc;
}

.nsp-command-search .form-control:focus {
    border-color: rgba(11, 92, 168, .45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 92, 168, .1);
}

.nsp-command-search-results {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 440px;
    overflow-y: auto;
    border: 1px solid var(--nsp-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(18, 45, 70, .2);
}

.nsp-search-group + .nsp-search-group {
    border-top: 1px solid #edf1f5;
}

.nsp-search-group-label {
    display: block;
    padding: 9px 13px 5px;
    color: var(--nsp-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nsp-search-result {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 13px;
    color: var(--nsp-ink);
}

.nsp-search-result:hover,
.nsp-search-result:focus {
    color: var(--nsp-blue-dark);
    text-decoration: none;
    background: var(--nsp-blue-soft);
}

.nsp-search-result > i {
    width: 30px;
    color: var(--nsp-blue);
    text-align: center;
}

.nsp-search-result span,
.nsp-search-result strong,
.nsp-search-result small {
    display: block;
    min-width: 0;
}

.nsp-search-result small {
    margin-top: 2px;
    color: var(--nsp-muted);
    font-size: 12px;
}

.nsp-search-empty {
    padding: 16px;
    color: var(--nsp-muted);
    text-align: center;
}

.nsp-period-controls > label {
    margin: 0;
    color: var(--nsp-muted);
    font-size: 12px;
    font-weight: 700;
}

.nsp-period-controls > .form-control {
    width: auto;
    min-width: 135px;
    height: 40px;
    border-radius: 8px;
}

.nsp-custom-period {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nsp-custom-period[hidden] {
    display: none !important;
}

.nsp-custom-period .form-control {
    width: 146px;
    height: 40px;
    border-radius: 8px;
}

.nsp-refresh-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--nsp-border);
    border-radius: 8px;
    color: var(--nsp-blue);
}

.nsp-dashboard-shell.is-loading .nsp-refresh-button i {
    animation: nsp-dashboard-spin .8s linear infinite;
}

@keyframes nsp-dashboard-spin {
    to { transform: rotate(360deg); }
}

.nsp-dashboard-updated {
    flex: 0 0 auto;
    color: var(--nsp-muted);
    font-size: 11px;
    white-space: nowrap;
}

.nsp-dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 11px;
    padding: 0 2px;
}

.nsp-dashboard-section-heading h2,
.nsp-panel-header h2 {
    margin: 0;
    color: var(--nsp-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.nsp-dashboard-section-heading > p {
    margin: 0;
    color: var(--nsp-muted);
    font-size: 13px;
}

.nsp-period-label {
    padding: 5px 10px;
    border: 1px solid #d8e5f2;
    border-radius: 999px;
    background: #f5f9fd;
    color: var(--nsp-blue-dark);
    font-size: 11px;
    font-weight: 800;
}

.nsp-attention-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.nsp-attention-card {
    --attention-color: var(--nsp-blue);
    --attention-soft: var(--nsp-blue-soft);
    display: flex;
    min-width: 0;
    min-height: 116px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--nsp-border);
    border-top: 3px solid var(--attention-color);
    border-radius: 11px;
    background: #fff;
    color: var(--nsp-ink);
    box-shadow: 0 8px 24px rgba(18, 45, 70, .07);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.nsp-attention-card:hover,
.nsp-attention-card:focus {
    color: var(--nsp-ink);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(18, 45, 70, .12);
}

.nsp-attention-card.is-danger { --attention-color: #df4055; --attention-soft: #fff0f2; }
.nsp-attention-card.is-warning { --attention-color: #e58924; --attention-soft: #fff6e9; }
.nsp-attention-card.is-info { --attention-color: #1687af; --attention-soft: #eaf8fd; }
.nsp-attention-card.is-success { --attention-color: #25a56a; --attention-soft: #edf9f3; }

.nsp-attention-icon {
    display: inline-flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--attention-soft);
    color: var(--attention-color);
    font-size: 17px;
}

.nsp-attention-copy {
    display: block;
    min-width: 0;
}

.nsp-attention-label,
.nsp-attention-copy strong,
.nsp-attention-copy small {
    display: block;
}

.nsp-attention-label {
    color: var(--nsp-muted);
    font-size: 12px;
    font-weight: 700;
}

.nsp-attention-copy strong {
    margin-top: 3px;
    font-size: 24px;
    line-height: 1.08;
}

.nsp-attention-copy small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--nsp-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-card-arrow {
    margin-left: auto;
    color: #a9b5c2;
    font-size: 12px;
}

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

.nsp-kpi-card {
    --kpi-color: var(--nsp-blue);
    --kpi-soft: var(--nsp-blue-soft);
    display: flex;
    min-width: 0;
    min-height: 120px;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--nsp-border);
    border-radius: 11px;
    background: #fff;
    color: var(--nsp-ink);
    box-shadow: 0 8px 22px rgba(18, 45, 70, .055);
    transition: transform .16s ease, box-shadow .16s ease;
}

.nsp-kpi-card:hover,
.nsp-kpi-card:focus {
    color: var(--nsp-ink);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(18, 45, 70, .11);
}

.nsp-kpi-card.is-success { --kpi-color: #15905a; --kpi-soft: #edf9f3; }
.nsp-kpi-card.is-info { --kpi-color: #1687af; --kpi-soft: #eaf8fd; }
.nsp-kpi-card.is-warning { --kpi-color: #e58924; --kpi-soft: #fff6e9; }
.nsp-kpi-card.is-danger { --kpi-color: #df4055; --kpi-soft: #fff0f2; }

.nsp-kpi-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--kpi-soft);
    color: var(--kpi-color);
    font-size: 19px;
}

.nsp-kpi-copy,
.nsp-kpi-label,
.nsp-kpi-copy > strong,
.nsp-kpi-meta,
.nsp-kpi-meta span {
    display: block;
    min-width: 0;
}

.nsp-kpi-label {
    color: var(--nsp-muted);
    font-size: 12px;
    font-weight: 700;
}

.nsp-kpi-copy > strong {
    margin-top: 4px;
    font-size: 25px;
    line-height: 1.08;
}

.nsp-kpi-meta {
    margin-top: 7px;
    color: var(--nsp-muted);
    font-size: 10px;
    line-height: 1.35;
}

.nsp-kpi-meta span:last-child {
    color: var(--kpi-color);
    font-weight: 700;
}

.nsp-operations-layout,
.nsp-analytics-layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    align-items: start;
    gap: 16px;
}

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

/* Keep the rental queue full width; leads/readiness sit beside Recent Sales. */
.nsp-operations-layout--schedule {
    grid-template-columns: minmax(0, 1fr);
}

.nsp-module-activity-grid--with-operations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.nsp-module-activity-grid--with-operations > :only-child {
    grid-column: 1 / -1;
}

.nsp-module-activity-grid--with-operations .nsp-operations-side {
    grid-template-columns: minmax(0, 1fr);
}

.nsp-operations-side {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.nsp-dashboard-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--nsp-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 45, 70, .06);
}

.nsp-panel-header {
    display: flex;
    min-height: 67px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #e8eef4;
}

.nsp-panel-header .nsp-section-kicker {
    margin-bottom: 3px;
}

.nsp-panel-link,
.nsp-context-action {
    flex: 0 0 auto;
    color: var(--nsp-blue);
    font-size: 12px;
    font-weight: 800;
}

.nsp-panel-link:hover,
.nsp-context-action:hover {
    color: var(--nsp-blue-dark);
    text-decoration: none;
}

.nsp-schedule-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #edf1f5;
    background: #fbfcfe;
}

.nsp-segmented-control,
.nsp-filter-pills {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nsp-schedule-controls .nsp-filter-pills {
    flex-wrap: wrap;
}

.nsp-segmented-control {
    padding: 3px;
    border: 1px solid #dce5ee;
    border-radius: 9px;
    background: #f1f5f9;
}

.nsp-segmented-control button,
.nsp-filter-pills button {
    border: 0;
    background: transparent;
    color: var(--nsp-muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.nsp-segmented-control button {
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 7px;
}

.nsp-segmented-control button span {
    display: inline-flex;
    min-width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    border-radius: 999px;
    background: #e2e9f0;
    font-size: 9px;
}

.nsp-segmented-control button.active {
    background: #fff;
    color: var(--nsp-blue-dark);
    box-shadow: 0 2px 7px rgba(31, 55, 78, .11);
}

.nsp-filter-pills button {
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
}

.nsp-filter-pills button.active {
    border-color: #c9dcec;
    background: var(--nsp-blue-soft);
    color: var(--nsp-blue-dark);
}

/* Readable Rental Schedule filters; keep other dashboard controls unchanged. */
.nsp-schedule-controls .nsp-segmented-control,
.nsp-schedule-controls .nsp-filter-pills {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 6px;
}

.nsp-schedule-controls .nsp-segmented-control button,
.nsp-schedule-controls .nsp-filter-pills button {
    max-width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 16px;
    line-height: 1.35;
}

.nsp-schedule-controls [data-schedule-bucket-count],
.nsp-schedule-controls [data-deposit-pending-count] {
    display: inline-flex;
    flex-shrink: 0;
    min-width: 24px;
    min-height: 24px;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    font-size: 13px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nsp-schedule-list,
.nsp-compact-list,
.nsp-top-items {
    display: grid;
}

.nsp-schedule-row {
    display: grid;
    min-width: 0;
    grid-template-columns: 82px minmax(0, 1fr) 120px auto;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 11px 14px;
    border-bottom: 1px solid #edf1f5;
}

.nsp-schedule-row:last-child,
.nsp-compact-row:last-child,
.nsp-top-item:last-child {
    border-bottom: 0;
}

.nsp-schedule-row:hover {
    background: #fbfdff;
}

.nsp-schedule-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #13835a;
    font-size: 11px;
    font-weight: 800;
}

.nsp-schedule-row.is-return .nsp-schedule-type {
    color: #bd741d;
}

.nsp-schedule-row.is-deposit .nsp-schedule-type {
    color: #a35c14;
}

.nsp-schedule-main,
.nsp-schedule-main div,
.nsp-schedule-main small,
.nsp-schedule-date,
.nsp-schedule-date strong,
.nsp-schedule-date small {
    display: block;
    min-width: 0;
}

.nsp-schedule-main div,
.nsp-schedule-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-schedule-main div > span {
    margin-left: 5px;
}

.nsp-schedule-main small,
.nsp-schedule-date small {
    margin-top: 3px;
    color: var(--nsp-muted);
    font-size: 11px;
}

.nsp-schedule-date {
    text-align: right;
}

.nsp-schedule-date strong {
    font-size: 12px;
}

.nsp-schedule-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.nsp-dashboard-empty {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    color: var(--nsp-muted);
    text-align: center;
}

.nsp-dashboard-empty > i {
    margin-bottom: 4px;
    color: #45a879;
    font-size: 25px;
}

.nsp-dashboard-empty-compact {
    min-height: 98px;
    font-size: 12px;
}

.nsp-dashboard-empty-compact > i {
    font-size: 19px;
}

.nsp-compact-row {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 11px 14px;
    border-bottom: 1px solid #edf1f5;
}

.nsp-compact-row > div,
.nsp-compact-row > div > span,
.nsp-compact-row > small {
    display: block;
    min-width: 0;
}

.nsp-compact-row > div > span,
.nsp-compact-row > small {
    margin-top: 2px;
    color: var(--nsp-muted);
    font-size: 11px;
}

.nsp-context-action {
    justify-self: start;
    margin-top: 2px;
}

.nsp-maintenance-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
    border-bottom: 1px solid #edf1f5;
    background: #fbfcfe;
}

.nsp-maintenance-counts a {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: 1px solid #e2e9f0;
    border-radius: 8px;
    background: #fff;
    color: var(--nsp-ink);
    text-align: center;
}

.nsp-maintenance-counts a:hover {
    border-color: #bdd3e7;
    text-decoration: none;
}

.nsp-maintenance-counts i {
    color: var(--nsp-blue);
    font-size: 12px;
}

.nsp-maintenance-counts strong {
    font-size: 18px;
}

.nsp-maintenance-counts span {
    overflow: hidden;
    color: var(--nsp-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-maintenance-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.nsp-activity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.nsp-activity-row > div > small {
    display: block;
    min-width: 0;
    margin-top: 2px;
    overflow: hidden;
    color: var(--nsp-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-activity-value {
    color: var(--nsp-ink);
    font-size: 12px;
    white-space: nowrap;
}

.nsp-analytics-layout {
    grid-template-columns: minmax(0, 2fr) minmax(290px, .8fr);
}

.nsp-chart-wrap {
    position: relative;
    height: 310px;
    padding: 16px 16px 5px;
}

.nsp-chart-wrap-doughnut {
    height: 245px;
    padding-bottom: 10px;
}

.nsp-financial-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid #edf1f5;
    background: #fbfcfe;
}

.nsp-financial-summary > span {
    min-width: 0;
    padding: 10px;
    border-right: 1px solid #edf1f5;
    text-align: center;
}

.nsp-financial-summary > span:last-child {
    border-right: 0;
}

.nsp-financial-summary small,
.nsp-financial-summary strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-financial-summary small {
    color: var(--nsp-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.nsp-financial-summary strong {
    margin-top: 3px;
    font-size: 12px;
}

.nsp-inventory-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    padding: 11px 14px 14px;
    border-top: 1px solid #edf1f5;
}

.nsp-inventory-legend span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: var(--nsp-muted);
    font-size: 10px;
}

.nsp-inventory-legend i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.nsp-inventory-legend strong {
    margin-left: auto;
    color: var(--nsp-ink);
}

.nsp-top-items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nsp-top-item {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    padding: 14px;
    border-right: 1px solid #edf1f5;
}

.nsp-top-item:last-child {
    border-right: 0;
}

.nsp-top-rank {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
    border-radius: 7px;
    background: var(--nsp-blue-soft);
    color: var(--nsp-blue);
    font-size: 11px;
    font-weight: 800;
}

.nsp-top-item div,
.nsp-top-item div a,
.nsp-top-item div span {
    display: block;
    min-width: 0;
}

.nsp-top-item div a,
.nsp-top-item div > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsp-top-item div span {
    margin-top: 3px;
    color: var(--nsp-muted);
    font-size: 10px;
}

.nsp-top-item > strong {
    grid-column: 2;
    font-size: 12px;
}

.nsp-notes-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.nsp-note-card {
    min-width: 0;
    min-height: 122px;
    padding: 14px;
    border-right: 1px solid #edf1f5;
}

.nsp-note-card:last-child {
    border-right: 0;
}

.nsp-note-card > span {
    display: block;
    overflow: hidden;
    color: var(--nsp-blue-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nsp-note-card p {
    display: -webkit-box;
    margin: 8px 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 12px;
    line-height: 1.45;
}

.nsp-note-card small {
    color: var(--nsp-muted);
    font-size: 10px;
}

@media (max-width: 1199.98px) {
    .nsp-command-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nsp-command-actions {
        width: 100%;
        justify-content: flex-start;
    }

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

    .nsp-operations-layout,
    .nsp-analytics-layout {
        grid-template-columns: 1fr;
    }

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

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

    .nsp-top-items,
    .nsp-notes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nsp-top-item,
    .nsp-note-card {
        border-bottom: 1px solid #edf1f5;
    }
}

@media (max-width: 991.98px) {
    .nsp-dashboard-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .nsp-command-search {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .nsp-period-controls {
        justify-content: flex-start;
    }

    .nsp-dashboard-updated {
        align-self: flex-start;
    }

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

    .nsp-schedule-row {
        grid-template-columns: 76px minmax(0, 1fr) 110px;
    }

    .nsp-schedule-actions {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .nsp-financial-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nsp-financial-summary > span:nth-child(3) {
        border-right: 0;
    }

    .nsp-financial-summary > span:nth-child(-n+3) {
        border-bottom: 1px solid #edf1f5;
    }
}

@media (max-width: 767.98px) {
    .nsp-dashboard-shell {
        gap: 17px;
    }

    .nsp-command-header {
        padding: 18px;
        border-radius: 11px;
    }

    .nsp-command-actions .btn,
    .nsp-command-actions .dropdown {
        flex: 1 1 calc(50% - 8px);
    }

    .nsp-command-actions .dropdown .btn {
        width: 100%;
    }

    .nsp-dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .nsp-dashboard-section-heading-inline {
        flex-direction: row;
    }

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

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

    .nsp-schedule-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .nsp-segmented-control {
        width: 100%;
    }

    .nsp-segmented-control button {
        flex: 1 1 auto;
    }

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

@media (max-width: 575.98px) {
    .nsp-command-heading p {
        font-size: 13px;
    }

    .nsp-command-actions .btn,
    .nsp-command-actions .dropdown {
        flex-basis: 100%;
    }

    .nsp-period-controls {
        width: 100%;
    }

    .nsp-period-controls > label {
        width: 100%;
    }

    .nsp-period-controls > .form-control {
        flex: 1 1 auto;
    }

    .nsp-custom-period {
        width: 100%;
        flex-wrap: wrap;
    }

    .nsp-custom-period .form-control {
        flex: 1 1 130px;
        width: auto;
    }

    .nsp-attention-grid,
    .nsp-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .nsp-attention-card,
    .nsp-kpi-card {
        min-height: 122px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .nsp-attention-icon,
    .nsp-kpi-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 9px;
        font-size: 15px;
    }

    .nsp-attention-copy strong,
    .nsp-kpi-copy > strong {
        font-size: 20px;
    }

    .nsp-attention-copy small,
    .nsp-kpi-meta span:last-child,
    .nsp-card-arrow {
        display: none;
    }

    .nsp-panel-header {
        min-height: 60px;
        padding: 11px 12px;
    }

    .nsp-schedule-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 10px;
        padding: 12px;
    }

    .nsp-schedule-type {
        align-self: start;
    }

    .nsp-schedule-date,
    .nsp-schedule-actions {
        grid-column: 2;
        text-align: left;
    }

    .nsp-chart-wrap {
        height: 280px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .nsp-chart-wrap-doughnut {
        height: 230px;
    }

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

    .nsp-top-items,
    .nsp-notes-grid {
        grid-template-columns: 1fr;
    }

    .nsp-top-item,
    .nsp-note-card {
        border-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nsp-attention-card,
    .nsp-kpi-card,
    .nsp-dashboard-shell.is-loading .nsp-refresh-button i,
    .nsp-dashboard-shell.is-loading [data-card-value]::after,
    .nsp-dashboard-shell.is-loading [data-kpi-value]::after,
    .nsp-dashboard-shell.is-loading .nsp-schedule-main::after,
    .nsp-dashboard-shell.is-loading .nsp-compact-row::after {
        transition: none;
        animation: none;
    }
}

.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-captcha-field {
    margin-bottom: 1rem;
}

.nsp-captcha-label {
    display: block;
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.nsp-captcha-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 40px;
    height: 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6dce3;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.nsp-captcha-input-group:focus-within {
    border-color: #b9c2cc;
    box-shadow: 0 0 0 2px rgba(11, 92, 168, .08);
}

.nsp-captcha-input-group.is-invalid {
    border-color: #dc3545;
}

.nsp-captcha-question {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 0 12px;
    color: #374151;
    background: #e8edf1;
    border-right: 1px solid #d0d6dd;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.nsp-captcha-answer.form-control {
    min-width: 0;
    min-height: 40px;
    height: 40px;
    flex: 1 1 auto;
    padding: 0 12px;
    color: #374151;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}

.nsp-captcha-answer.form-control:focus {
    border: 0;
    box-shadow: none;
}

.nsp-captcha-answer.form-control.is-invalid {
    background-image: none;
    border: 0;
}

.nsp-captcha-answer.form-control::placeholder {
    color: #6b7280;
    opacity: 1;
}

.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);
}

.nsp-sidebar-shortcuts {
    display: block;
    margin: 0 2px 12px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.nsp-sidebar-shortcuts[hidden] {
    display: none !important;
}

.nsp-sidebar-shortcut-title {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nsp-sidebar-shortcut-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nsp-sidebar-shortcut-list a {
    display: block;
    overflow: hidden;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@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;
    }

    .nsp-admin-content .nsp-ui-card-body {
        padding: 16px;
    }
}

@media (max-width: 767.98px) {
    .nsp-page-context {
        align-items: flex-start;
        flex-direction: column;
    }

    .nsp-favorite-toggle {
        width: 100%;
        justify-content: center;
    }

    .dt-buttons {
        width: 100%;
    }

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

    .dataTables_wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "length"
            "filter"
            "buttons"
            "chips"
            "mobile"
            "table"
            "info"
            "pagination"
            "actions";
        column-gap: 0;
    }

    .dataTables_wrapper > .dataTables_length,
    .dataTables_wrapper > .dataTables_filter {
        justify-self: stretch;
    }

    .dataTables_wrapper > .dataTables_filter,
    .nsp-datatable-status {
        justify-content: flex-start;
    }

    .nsp-datatable-status {
        width: 100%;
    }

    .dataTables_wrapper > .dataTables_filter label {
        width: 100%;
    }

    .dataTables_wrapper > .dataTables_filter input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dataTables_wrapper > .dataTables_paginate {
        justify-self: start;
    }
}

@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-page-toolbar {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .nsp-page-toolbar > div,
    .nsp-page-toolbar > div:not(:only-child):last-child,
    .nsp-page-toolbar > .nsp-show-actions,
    .nsp-page-toolbar > .nsp-form-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nsp-page-toolbar > .btn,
    .nsp-page-toolbar > button.btn,
    .nsp-page-toolbar > div > .btn,
    .nsp-page-toolbar > div > button.btn {
        flex: 1 1 auto;
    }

    .nsp-admin-content .nsp-ui-card-header,
    .nsp-admin-content .nsp-ui-card-body {
        padding-right: 12px;
        padding-left: 12px;
    }

    .nsp-show-actions.nsp-action-strip,
    .nsp-form-actions.nsp-action-strip {
        flex-wrap: wrap;
        padding: 9px;
        overflow: visible;
    }

    .nsp-action-strip > .btn,
    .nsp-action-strip > form {
        flex: 1 1 auto;
    }

    .nsp-action-strip > form > .btn {
        width: 100%;
    }

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

    .nsp-section-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .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.nsp-actions-column,
    table.dataTable th.nsp-actions-column {
        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;
    }

    table.dataTable thead .nsp-column-filter-row,
    .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;
    }

    .nsp-captcha-question {
        min-width: 68px;
        padding: 0 12px;
    }

    .nsp-captcha-answer.form-control {
        padding-right: 12px;
        padding-left: 12px;
    }

    .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;
    }
}
#operation-payments { min-width: 1060px; }
#operation-payments .form-control { min-width: 120px; }
#operation-payments .payment-type { min-width: 155px; }
#operation-payments input[type="date"] { min-width: 145px; }
