/* ═══════════════════════════════════════════════════════════════
   NEONATAL NUTRITION PLANNER v4.0
   Interactive · Clean · Physician-grade · Responsive
   ═══════════════════════════════════════════════════════════════ */

.np-page {
    font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
    color: #1c1917;
    background: #fafaf9;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.np-main {
    position: relative;
    padding-top: calc(var(--header-height, 64px) + 1.5rem);
    padding-bottom: 4rem;
}

.np-main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(13, 148, 136, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 50% at 30% 20%, #000 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── HERO ───────────────────────────────────────────────────── */
.np-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, #0d9488 0%, #0369a1 100%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px -12px rgba(13, 148, 136, 0.35);
    overflow: hidden;
}

.np-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.np-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
}

.np-hero h1 {
    margin: 0;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    line-height: 1.1;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.np-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.np-pill {
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.78rem;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
}

.np-pill:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.np-pill:active {
    transform: translateY(0) scale(0.98);
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.np-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.np-left,
.np-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.np-right {
    position: sticky;
    top: calc(var(--header-height, 64px) + 1rem);
    align-self: start;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.np-card {
    border-radius: 18px;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 4px 20px -8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-card:hover {
    box-shadow: 0 8px 30px -8px rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
}

.np-summary {
    border-color: rgba(13, 148, 136, 0.25);
    background: linear-gradient(155deg, #f0fdfa 0%, #ecfdf5 100%);
}

.np-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f5f5f4;
}

.np-card-head h2 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 700;
    color: #292524;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-card-head h2::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #0d9488, #0369a1);
    flex-shrink: 0;
}

/* ── GRID & FIELDS ──────────────────────────────────────────── */
.np-grid {
    display: grid;
    gap: 0.75rem;
}

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

.np-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.np-field span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #78716c;
    font-weight: 700;
}

.np-field input,
.np-field select,
#shiftNote {
    min-height: 44px;
    border-radius: 12px;
    border: 1.5px solid #e7e5e4;
    background: #fafaf9;
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
    color: #1c1917;
    transition: all 0.2s ease;
    font-family: inherit;
}

.np-field input:focus,
.np-field select:focus,
#shiftNote:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    background: #fff;
}

.np-field input:hover,
.np-field select:hover {
    border-color: #d6d3d1;
}

.np-field .readonly,
.np-field input.readonly {
    background: #ecfdf5;
    color: #0f766e;
    font-weight: 700;
    border-color: #a7f3d0;
}

/* ── CHECKBOXES ─────────────────────────────────────────────── */
.np-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.np-checks label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #44403c;
    border: 1.5px solid #e7e5e4;
    background: #fafaf9;
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.np-checks label:hover {
    border-color: #0d9488;
    background: #f0fdfa;
}

.np-checks input {
    accent-color: #0d9488;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── CUSTOM FORMULA ─────────────────────────────────────────── */
.np-custom-formula {
    grid-column: 1 / -1;
    border: 1.5px dashed #0d9488;
    background: #f0fdfa;
    border-radius: 14px;
    padding: 0.875rem;
}

/* ── FEEDING RECOMMENDATION ─────────────────────────────────── */
.np-feed-rec {
    margin-bottom: 1rem;
    border: 1.5px solid rgba(13, 148, 136, 0.2);
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-radius: 14px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.np-feed-rec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0d9488, #0369a1);
}

.np-feed-rec h3 {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: -0.01em;
}

.np-feed-rec p {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #57534e;
    line-height: 1.5;
}

.np-feed-rec ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.3rem;
}

.np-feed-rec li {
    font-size: 0.8rem;
    color: #44403c;
    line-height: 1.45;
}

.np-feed-rec li::marker {
    color: #0d9488;
}

/* ── VOLUME BOXES ───────────────────────────────────────────── */
.np-vol {
    position: relative;
    border: 1.5px solid rgba(13, 148, 136, 0.2);
    background: linear-gradient(145deg, #fff 0%, #f0fdfa 100%);
    border-radius: 14px;
    padding: 0.75rem 0.875rem;
    min-height: 52px;
    color: #0f766e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 12px -4px rgba(13, 148, 136, 0.1);
    transition: all 0.2s ease;
}

.np-vol:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 6px 16px -4px rgba(13, 148, 136, 0.15);
}

.np-vol-dual,
.np-vol-single {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.np-vol-label {
    flex: 1 1 100%;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d9488;
}

.np-vol-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(13, 148, 136, 0.1);
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

.np-vol strong {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.np-vol small {
    font-size: 0.62rem;
    font-weight: 700;
    color: #0d9488;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── KPIs (SIDEBAR) ─────────────────────────────────────────── */
.np-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

.np-kpis > div {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: 12px;
    padding: 0.625rem 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
}

.np-kpis > div:hover {
    border-color: rgba(13, 148, 136, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(13, 148, 136, 0.1);
}

.np-kpis span {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a8a29e;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.np-kpis strong {
    font-size: 0.88rem;
    color: #1c1917;
    font-weight: 700;
}

.np-kpis strong span {
    display: inline;
    font-size: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: none;
    margin: 0;
}

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.np-progress-wrap {
    margin-top: 0.875rem;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.np-progress-wrap > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #57534e;
}

.np-progress-wrap > div:first-child strong {
    color: #0d9488;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.np-progress {
    height: 10px;
    border-radius: 999px;
    background: #e7e5e4;
    overflow: hidden;
    position: relative;
}

.np-progress #kcalBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #0369a1);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.np-progress #kcalBar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 0 999px 999px 0;
}

/* ── LINES (SIDEBAR METRICS) ────────────────────────────────── */
.np-lines p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f4;
    font-size: 0.85rem;
    color: #57534e;
}

.np-lines p:last-child {
    border-bottom: none;
}

.np-lines strong {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.85rem;
    color: #1c1917;
    font-weight: 700;
    white-space: nowrap;
}

.np-lines strong span {
    font-family: inherit;
}

/* ── BADGES ─────────────────────────────────────────────────── */
.np-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.badge-safe {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── TARGETS ────────────────────────────────────────────────── */
.np-targets {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.4rem;
}

.np-target-item {
    border: 1.5px solid #e7e5e4;
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    background: #fafaf9;
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.np-target-item:hover {
    border-color: #d6d3d1;
}

.np-target-item.ok {
    background: #f0fdf4;
    border-color: #86efac;
}

.np-target-item.ok strong {
    color: #166534;
}

.np-target-item.low,
.np-target-item.high {
    background: #fffbeb;
    border-color: #fcd34d;
}

.np-target-item.low strong,
.np-target-item.high strong {
    color: #92400e;
}

.np-target-item strong {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── ALERTS ─────────────────────────────────────────────────── */
.np-alerts {
    display: grid;
    gap: 0.5rem;
}

.np-alert {
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    border: 1.5px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    animation: alertSlideIn 0.3s ease both;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.np-alert::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.np-alert.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.np-alert.info::before { background: #3b82f6; }

.np-alert.warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.np-alert.warn::before { background: #f59e0b; }

.np-alert.critical {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.np-alert.critical::before { background: #ef4444; }

/* ── SHIFT NOTE ─────────────────────────────────────────────── */
#shiftNote {
    width: 100%;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    line-height: 1.5;
    resize: none;
    min-height: 140px;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1.5px solid #e7e5e4;
    background: #fafaf9;
    padding: 0.75rem;
    color: #44403c;
    field-sizing: content;
}

#shiftNote:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    background: #fff;
}

.np-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.np-actions .btn {
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.np-actions .btn-primary {
    background: linear-gradient(135deg, #0d9488, #0369a1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.np-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.np-actions .btn-secondary {
    background: #fff;
    color: #44403c;
    border: 1.5px solid #e7e5e4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.np-actions .btn-secondary:hover {
    border-color: #0d9488;
    color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .np-layout {
        grid-template-columns: 1fr;
    }

    .np-right {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .np-right .np-card {
        height: fit-content;
    }

    .np-right .np-card:nth-child(5),
    .np-right .np-card:nth-child(6) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .np-hero {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .np-presets {
        justify-content: flex-start;
    }

    .np-grid.two,
    .np-grid.three,
    .np-checks,
    .np-kpis {
        grid-template-columns: 1fr;
    }

    .np-vol-dual,
    .np-vol-single {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .np-right {
        grid-template-columns: 1fr;
    }

    .np-right .np-card:nth-child(5),
    .np-right .np-card:nth-child(6) {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .np-main {
        padding-top: calc(var(--header-height, 64px) + 0.75rem);
    }

    .np-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .np-hero {
        border-radius: 16px;
    }

    .np-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.72rem;
    }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
    .np-hero,
    .np-layout,
    .np-actions,
    .header,
    .footer,
    .bottom-tab-bar,
    .donate-wrapper,
    #printBtn {
        display: none !important;
    }

    body {
        background: white !important;
        color: #1c1917 !important;
    }

    /* Print Report */
    .np-print-report {
        display: block !important;
        font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
        color: #1c1917 !important;
        background: white !important;
        padding: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .np-print-header {
        text-align: center;
        border-bottom: 3px solid #0d9488;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
    }

    .np-print-header h1 {
        color: #0d9488 !important;
        font-size: 1.5rem;
        margin: 0 0 0.25rem 0;
        font-weight: 800;
    }

    .np-print-subtitle {
        color: #78716c !important;
        font-size: 0.9rem;
        margin: 0;
    }

    .np-print-section {
        margin-bottom: 1.25rem;
        page-break-inside: auto;
    }

    .np-print-section:last-child {
        page-break-inside: auto;
    }

    /* Ensure shift note section can span multiple pages */
    .np-print-section:has(.np-print-note) {
        page-break-before: auto;
        page-break-inside: auto;
    }

    .np-print-section h2 {
        color: #0d9488 !important;
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 0.4rem 0;
        padding-bottom: 0.2rem;
        border-bottom: 1px solid #e7e5e4;
    }

    .np-print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.8rem;
    }

    .np-print-table td {
        padding: 0.35rem 0.5rem;
        border: 1px solid #e7e5e4;
        vertical-align: top;
    }

    .np-print-table td:first-child {
        background: #f5f5f4;
        width: 25%;
        font-weight: 600;
        color: #57534e;
    }

    .np-print-table td:nth-child(3) {
        background: #f5f5f4;
        width: 25%;
        font-weight: 600;
        color: #57534e;
    }

    .np-results-table td:first-child,
    .np-results-table td:nth-child(3) {
        background: #ecfdf5;
        color: #065f46;
    }

    .np-print-note {
        background: #ffffff !important;
        border: 2px solid #0d9488 !important;
        padding: 1rem;
        border-radius: 6px;
        font-size: 0.85rem;
        line-height: 1.6;
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        color: #1c1917 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        overflow: visible !important;
        max-height: none !important;
        page-break-inside: auto !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        min-height: auto !important;
        height: auto !important;
    }

    .np-print-footer {
        margin-top: 1.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e7e5e4;
        text-align: center;
        font-size: 0.75rem;
        color: #a8a29e;
    }

    .np-print-footer p {
        margin: 0.2rem 0;
    }
}

/* ── DARK MODE ──────────────────────────────────────────────── */
[data-theme="dark"] .np-page {
    color: #e7e5e4;
    background: #0c0a09;
}

[data-theme="dark"] .np-main::before {
    background-image:
        linear-gradient(to right, rgba(13, 148, 136, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 148, 136, 0.08) 1px, transparent 1px);
}

[data-theme="dark"] .np-card {
    background: rgba(28, 25, 23, 0.85);
    border-color: rgba(120, 113, 108, 0.35);
}

[data-theme="dark"] .np-card:hover {
    border-color: rgba(13, 148, 136, 0.3);
}

[data-theme="dark"] .np-card-head {
    border-bottom-color: rgba(120, 113, 108, 0.25);
}

[data-theme="dark"] .np-card-head h2 {
    color: #f5f5f4;
}

[data-theme="dark"] .np-field span {
    color: #a8a29e;
}

[data-theme="dark"] .np-field input,
[data-theme="dark"] .np-field select,
[data-theme="dark"] #shiftNote {
    background: rgba(41, 37, 36, 0.8);
    border-color: rgba(120, 113, 108, 0.4);
    color: #e7e5e4;
}

[data-theme="dark"] .np-field input:focus,
[data-theme="dark"] .np-field select:focus,
[data-theme="dark"] #shiftNote:focus {
    border-color: #0d9488;
    background: rgba(41, 37, 36, 0.95);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

[data-theme="dark"] .np-field .readonly,
[data-theme="dark"] .np-field input.readonly {
    background: rgba(6, 78, 59, 0.4);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .np-checks label {
    background: rgba(41, 37, 36, 0.8);
    border-color: rgba(120, 113, 108, 0.4);
    color: #d6d3d1;
}

[data-theme="dark"] .np-checks label:hover {
    border-color: #0d9488;
    background: rgba(6, 78, 59, 0.25);
}

[data-theme="dark"] .np-kpis > div {
    background: rgba(41, 37, 36, 0.6);
    border-color: rgba(120, 113, 108, 0.3);
}

[data-theme="dark"] .np-kpis > div:hover {
    border-color: rgba(13, 148, 136, 0.3);
}

[data-theme="dark"] .np-kpis strong {
    color: #f5f5f4;
}

[data-theme="dark"] .np-summary {
    background: linear-gradient(155deg, rgba(6, 78, 59, 0.3), rgba(8, 145, 178, 0.2));
    border-color: rgba(13, 148, 136, 0.35);
}

[data-theme="dark"] .np-vol {
    background: linear-gradient(145deg, rgba(28, 25, 23, 0.9), rgba(6, 78, 59, 0.25));
    border-color: rgba(13, 148, 136, 0.3);
    border-left-color: rgba(13, 148, 136, 0.5);
    color: #99f6e4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 12px -4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .np-vol:hover {
    border-color: rgba(13, 148, 136, 0.45);
}

[data-theme="dark"] .np-vol-label {
    color: #5eead4;
}

[data-theme="dark"] .np-vol-metric {
    background: rgba(41, 37, 36, 0.6);
    border-color: rgba(13, 148, 136, 0.15);
}

[data-theme="dark"] .np-vol strong {
    color: #5eead4;
}

[data-theme="dark"] .np-vol small {
    color: #7dd3fc;
}

[data-theme="dark"] .np-custom-formula {
    background: rgba(6, 78, 59, 0.2);
    border-color: rgba(13, 148, 136, 0.35);
}

[data-theme="dark"] .np-feed-rec {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.25), rgba(8, 145, 178, 0.15));
    border-color: rgba(13, 148, 136, 0.3);
}

[data-theme="dark"] .np-feed-rec h3 {
    color: #5eead4;
}

[data-theme="dark"] .np-feed-rec p,
[data-theme="dark"] .np-feed-rec li {
    color: #d6d3d1;
}

[data-theme="dark"] .np-lines p {
    border-bottom-color: rgba(120, 113, 108, 0.25);
    color: #a8a29e;
}

[data-theme="dark"] .np-lines strong {
    color: #f5f5f4;
}

[data-theme="dark"] .np-progress {
    background: rgba(120, 113, 108, 0.3);
}

[data-theme="dark"] .np-target-item {
    background: rgba(41, 37, 36, 0.6);
    border-color: rgba(120, 113, 108, 0.35);
    color: #d6d3d1;
}

[data-theme="dark"] .np-target-item.ok {
    background: rgba(6, 78, 59, 0.3);
    border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .np-target-item.low,
[data-theme="dark"] .np-target-item.high {
    background: rgba(120, 53, 15, 0.25);
    border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .np-alert.info {
    background: rgba(30, 58, 138, 0.25);
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
}

[data-theme="dark"] .np-alert.warn {
    background: rgba(120, 53, 15, 0.25);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

[data-theme="dark"] .np-alert.critical {
    background: rgba(127, 29, 29, 0.25);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

[data-theme="dark"] .badge-safe {
    background: rgba(6, 78, 59, 0.4);
    color: #86efac;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .badge-warning {
    background: rgba(120, 53, 15, 0.3);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .badge-danger {
    background: rgba(127, 29, 29, 0.3);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] #shiftNote {
    background: rgba(41, 37, 36, 0.8);
    border-color: rgba(120, 113, 108, 0.4);
    color: #d6d3d1;
}

[data-theme="dark"] .np-actions .btn-secondary {
    background: rgba(41, 37, 36, 0.8);
    border-color: rgba(120, 113, 108, 0.4);
    color: #d6d3d1;
}

[data-theme="dark"] .np-actions .btn-secondary:hover {
    border-color: #0d9488;
    color: #5eead4;
}
