/*!
 * NEPREM Portal — design system
 * Scoped under .neprem-portal to avoid leaking into the WP theme.
 * Mirrors the HTML mockups in /NEPREM Portal/*-mockup.html.
 */

/* ================================================================
   1. SCOPED RESET + TYPOGRAPHY
   ================================================================ */
.neprem-portal,
.neprem-portal * {
    box-sizing: border-box;
}
.neprem-portal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    font-size: 15px;
}
.neprem-portal h1, .neprem-portal h2, .neprem-portal h3, .neprem-portal h4, .neprem-portal h5 {
    font-family: inherit;
    margin: 0;
    color: inherit;
    font-weight: 700;
}
.neprem-portal p { margin: 0 0 10px; }
.neprem-portal a { color: #0f3d22; text-decoration: none; }
.neprem-portal a:hover { text-decoration: underline; }

/* ================================================================
   2. DESIGN TOKENS
   ================================================================ */
.neprem-portal {
    --np-green-900: #0f3d22;
    --np-green-700: #1a6b3c;
    --np-green-500: #2a8f52;
    --np-green-50:  #ecfdf5;
    --np-grad: linear-gradient(135deg, #0f3d22 0%, #1a6b3c 50%, #2a8f52 100%);

    --np-role-manager:  #0f3d22;
    --np-role-board:    #7c3aed;
    --np-role-landlord: #d97706;
    --np-role-tenant:   #1976d2;
    --np-role-owner:    #10b981;

    --np-gray-900: #1a1a1a;
    --np-gray-700: #374151;
    --np-gray-600: #4b5563;
    --np-gray-500: #6b7280;
    --np-gray-400: #9ca3af;
    --np-gray-300: #d1d5db;
    --np-gray-200: #e5e7eb;
    --np-gray-100: #f3f4f6;
    --np-gray-50:  #f9fafb;
    --np-white:    #ffffff;

    --np-ok:    #10b981;
    --np-warn:  #d97706;
    --np-err:   #dc2626;
    --np-info:  #1976d2;

    --np-radius-lg: 12px;
    --np-radius-md: 8px;
    --np-radius-sm: 6px;

    --np-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --np-shadow-md: 0 2px 8px rgba(0,0,0,0.06);
    --np-shadow-lg: 0 8px 24px rgba(0,0,0,0.10);

    background: var(--np-gray-50);
    padding: 0;
    margin: 0;
    border-radius: var(--np-radius-lg);
    overflow: hidden;
}

/* ================================================================
   3. HERO
   ================================================================ */
.neprem-portal .np-hero {
    background: var(--np-grad);
    color: var(--np-white);
    padding: 40px 40px 36px;
}
.neprem-portal .np-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.neprem-portal .np-hero-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--np-white);
    margin-bottom: 4px;
}
.neprem-portal .np-hero-subtitle {
    font-size: 14px;
    opacity: 0.88;
    color: var(--np-white);
    margin: 0;
}
.neprem-portal .np-hero-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.neprem-portal .np-hero-meta a {
    color: #d1fae5;
}
.neprem-portal .np-hero-meta a:hover {
    color: var(--np-white);
}
.neprem-portal .np-hero-user {
    font-size: 13px;
    opacity: 0.9;
}
/* v2.11.3 — segment + bookkeeping badge row in hero */
.neprem-portal .np-hero-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.neprem-portal .np-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    line-height: 1.2;
}
.neprem-portal .np-hero-badge-commercial {
    background: rgba(251, 191, 36, .22);
    border-color: rgba(251, 191, 36, .45);
}
.neprem-portal .np-hero-badge-residential {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .30);
}
.neprem-portal .np-hero-badge-bookkeeping {
    background: rgba(148, 163, 184, .28);
    border-color: rgba(203, 213, 225, .45);
}
.neprem-portal .np-hero-badge-sub {
    opacity: .8;
    font-weight: 500;
}

/* Role badge chip inside hero */
.neprem-portal .np-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--np-white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ================================================================
   4. STATS GRID
   ================================================================ */
.neprem-portal .np-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.neprem-portal .np-stat-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--np-radius-md);
    padding: 14px 16px;
    text-decoration: none;
    color: var(--np-white);
    display: block;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.neprem-portal .np-stat-card:hover {
    background: rgba(255, 255, 255, 0.22);
    text-decoration: none;
    transform: translateY(-1px);
}
.neprem-portal .np-stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    font-family: "SF Mono", Menlo, Monaco, monospace;
}
.neprem-portal .np-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Alternative stats (on white background, below hero) */
.neprem-portal .np-stats-grid--light {
    background: transparent;
    padding: 24px 40px 0;
}
.neprem-portal .np-stats-grid--light .np-stat-card {
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    color: var(--np-gray-900);
    box-shadow: var(--np-shadow-sm);
}
.neprem-portal .np-stats-grid--light .np-stat-card:hover {
    background: var(--np-gray-50);
}
.neprem-portal .np-stats-grid--light .np-stat-value { color: var(--np-green-900); }
.neprem-portal .np-stats-grid--light .np-stat-label { color: var(--np-gray-500); }

/* ================================================================
   5. BODY / SECTION CONTAINER
   ================================================================ */
.neprem-portal .np-body {
    padding: 24px 40px 40px;
    background: var(--np-gray-50);
}
.neprem-portal .np-section {
    margin-bottom: 28px;
}
.neprem-portal .np-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--np-green-900);
    margin-bottom: 12px;
    letter-spacing: -0.1px;
}

/* ================================================================
   6. TAB BAR
   ================================================================ */
.neprem-portal .np-tabs {
    background: var(--np-white);
    border-bottom: 1px solid var(--np-gray-200);
    padding: 0 40px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    position: relative;
    top: 0;
    z-index: 2;
}
.neprem-portal .np-tab {
    background: none;
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--np-gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    font-family: inherit;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.neprem-portal .np-tab:hover {
    color: var(--np-green-700);
}
.neprem-portal .np-tab.is-active {
    color: var(--np-green-900);
    border-bottom-color: var(--np-green-700);
}

.neprem-portal .np-tab-panel {
    display: none;
}
.neprem-portal .np-tab-panel.is-active {
    display: block;
}

/* ================================================================
   7. CARDS
   ================================================================ */
.neprem-portal .np-card {
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--np-shadow-sm);
    margin-bottom: 20px;
}
.neprem-portal .np-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--np-gray-100);
}
.neprem-portal .np-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--np-green-900);
}
.neprem-portal .np-card-subtitle {
    font-size: 13px;
    color: var(--np-gray-500);
    margin-top: 2px;
}

/* ================================================================
   8. FORMS
   ================================================================ */
.neprem-portal .np-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.neprem-portal .np-form .np-field-wide {
    grid-column: 1 / -1;
}
.neprem-portal .np-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--np-gray-600);
    margin-bottom: 6px;
}
.neprem-portal .np-input,
.neprem-portal .np-select,
.neprem-portal .np-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--np-gray-300);
    border-radius: var(--np-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--np-gray-900);
    background: var(--np-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.neprem-portal .np-input:focus,
.neprem-portal .np-select:focus,
.neprem-portal .np-textarea:focus {
    outline: none;
    border-color: var(--np-green-500);
    box-shadow: 0 0 0 3px rgba(42, 143, 82, 0.15);
}
.neprem-portal .np-textarea { min-height: 96px; resize: vertical; }
.neprem-portal .np-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ================================================================
   9. BUTTONS
   ================================================================ */
.neprem-portal .np-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--np-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
}
.neprem-portal .np-btn-primary {
    background: var(--np-green-900);
    color: var(--np-white);
}
.neprem-portal .np-btn-primary:hover {
    background: var(--np-green-700);
    color: var(--np-white);
    text-decoration: none;
}
.neprem-portal .np-btn-secondary {
    background: var(--np-white);
    color: var(--np-green-900);
    border-color: var(--np-green-900);
}
.neprem-portal .np-btn-secondary:hover {
    background: var(--np-green-50);
    text-decoration: none;
}
.neprem-portal .np-btn-danger {
    background: var(--np-err);
    color: var(--np-white);
}
.neprem-portal .np-btn-danger:hover {
    background: #b91c1c;
    color: var(--np-white);
    text-decoration: none;
}
.neprem-portal .np-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}
.neprem-portal .np-btn-stripe {
    background: #635bff;
    color: var(--np-white);
}
.neprem-portal .np-btn-stripe:hover {
    background: #4f46e5;
    color: var(--np-white);
    text-decoration: none;
}

/* ================================================================
   10. TABLES
   ================================================================ */
.neprem-portal .np-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-radius-lg);
    overflow: hidden;
}
.neprem-portal .np-table th {
    background: var(--np-green-900);
    color: var(--np-white);
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.neprem-portal .np-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--np-gray-100);
    vertical-align: middle;
}
.neprem-portal .np-table tr:last-child td { border-bottom: none; }
.neprem-portal .np-table tr:hover td { background: var(--np-gray-50); }
.neprem-portal .np-table .np-num {
    text-align: right;
    font-family: "SF Mono", Menlo, Monaco, monospace;
    font-size: 13px;
}

/* Simple list-row (not a table) */
.neprem-portal .np-row-header {
    display: grid;
    padding: 10px 16px;
    background: var(--np-gray-50);
    font-size: 11px;
    font-weight: 700;
    color: var(--np-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--np-gray-200);
}
.neprem-portal .np-row {
    display: grid;
    padding: 12px 16px;
    border-bottom: 1px solid var(--np-gray-100);
    align-items: center;
    font-size: 14px;
}
.neprem-portal .np-row:last-child { border-bottom: none; }
.neprem-portal .np-row:hover { background: var(--np-gray-50); }

/* ================================================================
   11. PILLS / BADGES
   ================================================================ */
.neprem-portal .np-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.neprem-portal .np-pill-ok    { background: #d1fae5; color: #065f46; }
.neprem-portal .np-pill-warn  { background: #fed7aa; color: #9a3412; }
.neprem-portal .np-pill-err   { background: #fee2e2; color: #991b1b; }
.neprem-portal .np-pill-info  { background: #dbeafe; color: #1e40af; }
.neprem-portal .np-pill-muted { background: var(--np-gray-100); color: var(--np-gray-700); }
.neprem-portal .np-pill-type-a { background: #dcfce7; color: #065f46; }
.neprem-portal .np-pill-type-b { background: #dbeafe; color: #1e40af; }
.neprem-portal .np-pill-type-c { background: #ede9fe; color: #6b21a8; }

.neprem-portal .np-code {
    font-family: "SF Mono", Menlo, Monaco, monospace;
    font-size: 12px;
    background: var(--np-gray-100);
    color: var(--np-gray-700);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ================================================================
   12. EMPTY STATES
   ================================================================ */
.neprem-portal .np-empty {
    background: var(--np-white);
    border: 2px dashed var(--np-gray-300);
    border-radius: var(--np-radius-lg);
    padding: 40px 32px;
    text-align: center;
    color: var(--np-gray-500);
}
.neprem-portal .np-empty h4 {
    font-size: 16px;
    color: var(--np-gray-700);
    margin-bottom: 6px;
}
.neprem-portal .np-empty p {
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   Branded empty-state card (v2.9.51)
   Used by neprem_empty_state() — shared helper across list shortcodes.
   Distinct from .np-empty above: this variant is a fuller card with
   icon, headline, body, and optional CTA. Rendered any time a list
   view returns zero rows, so it's often the first thing a new client
   or new tenant sees when they land on a portal page.
   ---------------------------------------------------------------- */
/* Unscoped so the helper renders correctly in shortcodes that don't
   always wrap their output in .neprem-portal (workflows, renewals landlord
   view, etc.). Class names are unique to NEPREM, collision risk negligible. */
.np-empty-state {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(15, 81, 50, 0.04);
    margin: 8px 0;
}
.np-empty-state-icon {
    font-size: 36px;
    line-height: 1;
    margin: 0 0 12px;
    opacity: 0.7;
}
.np-empty-state-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
    letter-spacing: 0.1px;
}
.np-empty-state-body {
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto 14px;
}
.np-empty-state-body a { color: #0f5132; text-decoration: underline; }
.np-empty-state-cta {
    display: inline-block;
    background: #0f5132;
    color: #ffffff !important;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}
.np-empty-state-cta:hover,
.np-empty-state-cta:focus {
    background: #0c3f28;
    text-decoration: none;
    color: #ffffff !important;
}
.np-empty-state--info    { border-left: 4px solid #2563eb; }
.np-empty-state--success { border-left: 4px solid #059669; }
.np-empty-state--warn    { border-left: 4px solid #d97706; }

@media (max-width: 600px) {
    .np-empty-state { padding: 28px 18px; }
    .np-empty-state-icon { font-size: 30px; }
    .np-empty-state-title { font-size: 15px; }
    .np-empty-state-body { font-size: 13px; }
}

/* ================================================================
   13. TOOLBAR
   ================================================================ */
.neprem-portal .np-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.neprem-portal .np-toolbar .np-input,
.neprem-portal .np-toolbar .np-select {
    width: auto;
}
.neprem-portal .np-toolbar-search {
    flex: 1;
    min-width: 220px;
}
.neprem-portal .np-toolbar-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--np-gray-500);
    white-space: nowrap;
}

/* ================================================================
   14. MESSAGES / ALERTS
   ================================================================ */
.neprem-portal .np-alert {
    border-radius: var(--np-radius-md);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    border-left: 4px solid var(--np-info);
    background: #eff6ff;
    color: #1e3a8a;
}
.neprem-portal .np-alert-ok {
    border-left-color: var(--np-ok);
    background: #ecfdf5;
    color: #065f46;
}
.neprem-portal .np-alert-warn {
    border-left-color: var(--np-warn);
    background: #fffbeb;
    color: #78350f;
}
.neprem-portal .np-alert-err {
    border-left-color: var(--np-err);
    background: #fef2f2;
    color: #991b1b;
}

/* ================================================================
   15. RESPONSIVE — 820px breakpoint
   ================================================================ */
@media (max-width: 820px) {
    .neprem-portal .np-hero { padding: 28px 20px 22px; }
    .neprem-portal .np-hero-title { font-size: 22px; }
    .neprem-portal .np-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .neprem-portal .np-hero-meta {
        text-align: left;
        align-items: flex-start;
    }
    .neprem-portal .np-body { padding: 16px 20px 24px; }
    .neprem-portal .np-tabs { padding: 0 20px; }
    .neprem-portal .np-tab { padding: 12px 14px; }
    .neprem-portal .np-form { grid-template-columns: 1fr; }
    .neprem-portal .np-card { padding: 16px; }
    .neprem-portal .np-stats-grid { grid-template-columns: 1fr 1fr; }
    .neprem-portal .np-stats-grid--light { padding: 16px 20px 0; }
}

/* ================================================================
   16. ROLE-SPECIFIC ACCENTS
   Hero is always the NEPREM green gradient (see section 3).
   Role differentiation shows up in buttons, badges, and focus
   accents — not the hero — so every portal feels on-brand.
   Values for data-role come from neprem_get_user_role_category():
   manager | assoc_owner | assoc_tenant | board_member | landlord | rental_tenant
   ================================================================ */
/* Role-accented UI pieces (tabs, links, pills that should reflect role color). */
.neprem-portal[data-role="board_member"] .np-btn-primary {
    background: #7c3aed;
    border-color: #7c3aed;
}
.neprem-portal[data-role="board_member"] .np-btn-primary:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}
.neprem-portal[data-role="landlord"] .np-btn-primary {
    background: #d97706;
    border-color: #d97706;
}
.neprem-portal[data-role="landlord"] .np-btn-primary:hover {
    background: #b45309;
    border-color: #b45309;
}
.neprem-portal[data-role="assoc_tenant"] .np-btn-primary,
.neprem-portal[data-role="rental_tenant"] .np-btn-primary {
    background: #1976d2;
    border-color: #1976d2;
}
.neprem-portal[data-role="assoc_tenant"] .np-btn-primary:hover,
.neprem-portal[data-role="rental_tenant"] .np-btn-primary:hover {
    background: #1565c0;
    border-color: #1565c0;
}
.neprem-portal[data-role="assoc_owner"] .np-btn-primary {
    background: #10b981;
    border-color: #10b981;
}
.neprem-portal[data-role="assoc_owner"] .np-btn-primary:hover {
    background: #047857;
    border-color: #047857;
}

/* ================================================================
   17. UTILITY
   ================================================================ */
.neprem-portal .np-muted   { color: var(--np-gray-500); }
.neprem-portal .np-mono    { font-family: "SF Mono", Menlo, Monaco, monospace; font-size: 13px; }
.neprem-portal .np-right   { text-align: right; }
.neprem-portal .np-mt-0    { margin-top: 0; }
.neprem-portal .np-mt-12   { margin-top: 12px; }
.neprem-portal .np-mt-24   { margin-top: 24px; }
.neprem-portal .np-mb-0    { margin-bottom: 0; }
.neprem-portal .np-hidden  { display: none; }
.neprem-portal .np-flex    { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ================================================================
   18. FORM EXTENSIONS  (Manager create/edit workflows)
   ================================================================ */
/* Wrap long admin forms in .np-form-stack for one-column flow;
   use .np-form for 2-col grids. */
.neprem-portal .np-form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}
.neprem-portal .np-form-section {
    padding: 20px 22px;
    background: var(--np-white);
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-radius-md);
}
.neprem-portal .np-form-section + .np-form-section {
    margin-top: 0;
}
.neprem-portal .np-form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--np-gray-500);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--np-gray-200);
}
/* Individual field shell — label, input, and optional hint. */
.neprem-portal .np-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.neprem-portal .np-field + .np-field {
    margin-top: 14px;
}
.neprem-portal .np-hint {
    font-size: 12px;
    color: var(--np-gray-500);
    line-height: 1.45;
}
.neprem-portal .np-required {
    color: var(--np-err);
    font-weight: 700;
    margin-left: 3px;
}
.neprem-portal .np-field.is-error .np-input,
.neprem-portal .np-field.is-error .np-select,
.neprem-portal .np-field.is-error .np-textarea {
    border-color: var(--np-err);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.neprem-portal .np-field.is-error .np-hint {
    color: var(--np-err);
    font-weight: 600;
}

/* Disabled / readonly inputs */
.neprem-portal .np-input:disabled,
.neprem-portal .np-select:disabled,
.neprem-portal .np-textarea:disabled,
.neprem-portal .np-input[readonly] {
    background: var(--np-gray-100);
    color: var(--np-gray-500);
    cursor: not-allowed;
}

/* Checkbox + radio rows */
.neprem-portal .np-checkbox-row,
.neprem-portal .np-radio-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--np-gray-200);
    border-radius: var(--np-radius-sm);
    background: var(--np-gray-50);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.neprem-portal .np-checkbox-row:hover,
.neprem-portal .np-radio-row:hover {
    border-color: var(--np-gray-300);
    background: var(--np-white);
}
.neprem-portal .np-checkbox-row input[type="checkbox"],
.neprem-portal .np-radio-row input[type="radio"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--np-green-700);
    flex-shrink: 0;
}
.neprem-portal .np-checkbox-row .np-check-label,
.neprem-portal .np-radio-row .np-check-label {
    font-size: 14px;
    color: var(--np-gray-900);
    line-height: 1.45;
}
.neprem-portal .np-checkbox-row .np-check-label small,
.neprem-portal .np-radio-row .np-check-label small {
    display: block;
    font-size: 12px;
    color: var(--np-gray-500);
    margin-top: 2px;
    font-weight: 400;
}
.neprem-portal .np-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

/* File inputs */
.neprem-portal .np-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed var(--np-gray-300);
    border-radius: var(--np-radius-sm);
    background: var(--np-gray-50);
    font-size: 13px;
    color: var(--np-gray-600);
}
.neprem-portal .np-file input[type="file"] {
    font-family: inherit;
    font-size: 13px;
    color: var(--np-gray-700);
    flex: 1;
}

/* Form action bar (submit / cancel / secondary buttons). */
.neprem-portal .np-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid var(--np-gray-200);
}
.neprem-portal .np-form-actions .np-form-actions-note {
    margin-left: auto;
    font-size: 12px;
    color: var(--np-gray-500);
}

/* Three-up grid for compact admin forms (e.g., add-unit). */
.neprem-portal .np-form-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 820px) {
    .neprem-portal .np-form-3col { grid-template-columns: 1fr; }
    .neprem-portal .np-form-section { padding: 16px; }
    .neprem-portal .np-form-actions { flex-direction: column; align-items: stretch; }
    .neprem-portal .np-form-actions .np-btn { justify-content: center; }
    .neprem-portal .np-form-actions .np-form-actions-note {
        margin-left: 0;
        text-align: center;
        order: 99;
    }
}

/* Inline form (search-style, e.g., filter bars). */
.neprem-portal .np-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.neprem-portal .np-form-inline .np-field {
    flex: 1 1 180px;
    min-width: 0;
}
.neprem-portal .np-form-inline .np-btn {
    margin-bottom: 0;
}

/* Admin detail meta rows (read-only key/value summary inside forms). */
.neprem-portal .np-meta-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    font-size: 13px;
}
.neprem-portal .np-meta-list dt {
    color: var(--np-gray-500);
    font-weight: 600;
}
.neprem-portal .np-meta-list dd {
    margin: 0;
    color: var(--np-gray-900);
}

/* ================================================================
   MOCKUP DASHBOARD SYSTEM (ported from manager-portal-redesign-mockup.html)
   Classes scoped under .neprem-portal so they don't leak into theme.
   ================================================================ */

/* Topbar ---------------------------------------------------------- */
.neprem-portal .np-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 22px;
    flex-wrap: wrap;
    gap: 14px;
}
.neprem-portal .np-topbar-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.neprem-portal .np-topbar-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.neprem-portal .np-topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.neprem-portal .np-search-input {
    width: 300px;
    max-width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='16.5' y1='16.5' x2='21' y2='21'/></svg>") 12px center no-repeat;
}
.neprem-portal .np-btn-primary-solid {
    background: #1a6b3c;
    color: #fff;
    border: 1px solid #1a6b3c;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.neprem-portal .np-btn-primary-solid:hover { background: #14562f; color: #fff; text-decoration: none; }
.neprem-portal .np-btn-ghost {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.neprem-portal .np-btn-ghost:hover { background: #f9fafb; color: #374151; border-color: #d1d5db; text-decoration: none; }

/* Stripe alert (top banner when onboarding incomplete) ------------ */
.neprem-portal .np-stripe-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.neprem-portal .np-stripe-alert-body { display: flex; align-items: center; gap: 12px; }
.neprem-portal .np-stripe-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: #635bff;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.neprem-portal .np-stripe-alert-title { font-size: 14px; font-weight: 700; color: #1e40af; margin: 0; }
.neprem-portal .np-stripe-alert-sub   { font-size: 12px; color: #1e3a8a; margin: 2px 0 0; opacity: 0.85; }
.neprem-portal .np-stripe-btn {
    background: #635bff;
    color: #fff;
    border: 1px solid #635bff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.neprem-portal .np-stripe-btn:hover { background: #4f46e5; border-color: #4f46e5; color: #fff; text-decoration: none; }

/* Stats grid (colored-icon cards) -------------------------------- */
.neprem-portal .np-stats-cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.neprem-portal .np-stat-card-mock {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}
.neprem-portal .np-stat-card-mock:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
    border-color: #cfe3d6;
    text-decoration: none;
    color: inherit;
}
.neprem-portal .np-stat-ic {
    width: 32px; height: 32px; border-radius: 8px;
    background: #e7f2eb; color: #1a6b3c;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
}
.neprem-portal .np-stat-ic.blue   { background: #dbeafe; color: #1d4ed8; }
.neprem-portal .np-stat-ic.amber  { background: #fef3c7; color: #b45309; }
.neprem-portal .np-stat-ic.red    { background: #fee2e2; color: #b91c1c; }
.neprem-portal .np-stat-ic.violet { background: #ede9fe; color: #6d28d9; }
.neprem-portal .np-stat-ic.cyan   { background: #cffafe; color: #0e7490; }
.neprem-portal .np-stat-ic.pink   { background: #fce7f3; color: #be185d; }
.neprem-portal .np-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 2px;
    letter-spacing: -0.02em;
    line-height: 1;
}
.neprem-portal .np-stat-lbl {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin: 0;
}

/* Content grid (2fr / 1fr) --------------------------------------- */
.neprem-portal .np-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
}
.neprem-portal .np-dash-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    margin-bottom: 20px;
    overflow: hidden;
}
.neprem-portal .np-dash-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f1;
    background: #fcfdfb;
}
.neprem-portal .np-dash-card-head-left { display: flex; align-items: center; gap: 10px; }
.neprem-portal .np-card-ic {
    width: 34px; height: 34px; border-radius: 8px;
    background: #e7f2eb; color: #1a6b3c;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.neprem-portal .np-card-ic.blue   { background: #dbeafe; color: #1d4ed8; }
.neprem-portal .np-card-ic.amber  { background: #fef3c7; color: #b45309; }
.neprem-portal .np-card-ic.violet { background: #ede9fe; color: #6d28d9; }
.neprem-portal .np-card-ic.red    { background: #fee2e2; color: #b91c1c; }
.neprem-portal .np-card-ic.cyan   { background: #cffafe; color: #0e7490; }
.neprem-portal .np-card-ic.pink   { background: #fce7f3; color: #be185d; }
.neprem-portal .np-card-ic.green  { background: #dcfce7; color: #166534; }
.neprem-portal .np-dash-card-title { margin: 0; font-size: 16px; font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.neprem-portal .np-dash-card-sub   { margin: 2px 0 0; font-size: 12px; color: #6b7280; }
.neprem-portal .np-dash-card-body  { padding: 18px 20px; }
.neprem-portal .np-card-action {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.neprem-portal .np-card-action:hover { background: #1a6b3c; border-color: #1a6b3c; color: #fff; text-decoration: none; }

/* Quick actions grid --------------------------------------------- */
.neprem-portal .np-qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.neprem-portal .np-qa {
    padding: 14px;
    border: 1px solid #f1f5f1;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.neprem-portal .np-qa:hover {
    background: #fff;
    border-color: #cfe3d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15,23,42,0.04);
    text-decoration: none;
    color: inherit;
}
.neprem-portal .np-qa-ic {
    width: 34px; height: 34px; border-radius: 8px;
    background: #e7f2eb; color: #1a6b3c;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
}
.neprem-portal .np-qa-lbl { font-size: 13px; font-weight: 700; color: #111827; margin: 0 0 2px; }
.neprem-portal .np-qa-desc { font-size: 11px; color: #6b7280; margin: 0; }

/* Alert rows ----------------------------------------------------- */
.neprem-portal .np-alert-row {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.neprem-portal .np-alert-row:last-child { border-bottom: 0; }
.neprem-portal .np-alert-ic {
    width: 28px; height: 28px; border-radius: 6px;
    background: #fef3c7; color: #92400e;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.neprem-portal .np-alert-ic.red  { background: #fee2e2; color: #991b1b; }
.neprem-portal .np-alert-ic.blue { background: #dbeafe; color: #1e40af; }
.neprem-portal .np-alert-body { flex: 1; min-width: 0; }
.neprem-portal .np-alert-title { font-size: 13px; font-weight: 700; color: #111827; margin: 0 0 2px; }
.neprem-portal .np-alert-desc  { font-size: 12px; color: #6b7280; margin: 0; }

/* Activity feed -------------------------------------------------- */
.neprem-portal .np-activity {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.neprem-portal .np-activity:last-child { border-bottom: 0; }
.neprem-portal .np-activity-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #1a6b3c;
    margin-top: 6px;
    flex-shrink: 0;
}
.neprem-portal .np-activity-body { flex: 1; min-width: 0; }
.neprem-portal .np-activity-text { font-size: 13px; color: #111827; margin: 0 0 2px; }
.neprem-portal .np-activity-meta { font-size: 11px; color: #9ca3af; margin: 0; }

/* Empty state ---------------------------------------------------- */
.neprem-portal .np-empty {
    text-align: center;
    padding: 24px 16px;
    color: #9ca3af;
}
.neprem-portal .np-empty-emoji {
    font-size: 28px;
    opacity: 0.6;
    display: block;
    margin-bottom: 6px;
}
.neprem-portal .np-empty-title { font-size: 13px; font-weight: 600; color: #6b7280; margin: 0 0 2px; }
.neprem-portal .np-empty-sub   { font-size: 12px; color: #9ca3af; margin: 0; }

/* Management section divider ------------------------------------- */
.neprem-portal .np-mgmt-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.neprem-portal .np-mgmt-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.neprem-portal .np-mgmt-section-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 18px;
}

/* Responsive ----------------------------------------------------- */
@media (max-width: 1280px) {
    .neprem-portal .np-stats-cards { grid-template-columns: repeat(4, 1fr); }
    .neprem-portal .np-qa-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .neprem-portal .np-content-grid { grid-template-columns: 1fr; }
    .neprem-portal .np-search-input { width: 100%; }
}
@media (max-width: 640px) {
    .neprem-portal .np-stats-cards { grid-template-columns: repeat(2, 1fr); }
    .neprem-portal .np-topbar { flex-direction: column; }
    .neprem-portal .np-topbar-actions { width: 100%; }
}

/* ================================================================
   16. WORKFLOW SHORTCODES (v2.9.0) — violations, tax docs, renewal, move-in
   ================================================================ */
.neprem-portal .np-alert-success {
    border-left-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}
.neprem-portal .np-alert-info {
    border-left-color: #3b82f6;
    background: #eff6ff;
    color: #1e3a8a;
}
.neprem-portal .np-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e5e7eb;
    color: #374151;
}
.neprem-portal .np-badge-amber  { background: #fef3c7; color: #92400e; }
.neprem-portal .np-badge-blue   { background: #dbeafe; color: #1e40af; }
.neprem-portal .np-badge-red    { background: #fee2e2; color: #991b1b; }
.neprem-portal .np-badge-green  { background: #dcfce7; color: #166534; }
.neprem-portal .np-badge-gray   { background: #e5e7eb; color: #374151; }
.neprem-portal .np-sub { color: #6b7280; font-size: 12px; }
.neprem-portal .np-btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #1f2937;
    cursor: pointer;
}
.neprem-portal .np-btn-xs:hover { background: #e5e7eb; }
.neprem-portal .np-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.neprem-portal .np-form-grid label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}
.neprem-portal .np-form .np-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.neprem-portal .np-stepper { display: flex; gap: 8px; flex-wrap: wrap; }
.neprem-portal .np-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
}
.neprem-portal .np-step-num {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e5e7eb; color: #374151;
    border-radius: 50%;
    font-size: 12px; font-weight: 700;
}
.neprem-portal .np-step-active { background: #eef5f0; color: #0f3d22; font-weight: 600; }
.neprem-portal .np-step-active .np-step-num { background: #1a6b3c; color: #fff; }
.neprem-portal .np-step-done { background: #dcfce7; color: #166534; }
.neprem-portal .np-step-done .np-step-num { background: #16a34a; color: #fff; }
.neprem-portal .np-qa-disabled { opacity: 0.55; pointer-events: none; }
@media (max-width: 640px) {
    .neprem-portal .np-form-grid { grid-template-columns: 1fr; }
}
