/* Kaycee-like Investors portal (sky theme) — NIS Management Ltd. */

.inv-portal {
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --amber-400: #fbbf24;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --soft: #f0f9ff;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: linear-gradient(to bottom right, #eff6ff, #e0f2fe, #eef2ff);
    min-height: 100vh;
}

.inv-portal #header,
.inv-portal #footer2 {
    position: relative;
    z-index: 20;
}

.inv-hero {
    background: linear-gradient(to bottom right, var(--sky-500), var(--sky-600), var(--sky-700));
    color: #fff;
    padding: 56px 0 72px;
    position: relative;
    overflow: hidden;
}

.inv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18), transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(251, 191, 36, 0.12), transparent 40%);
    pointer-events: none;
}

.inv-hero .container {
    position: relative;
    z-index: 1;
}

.inv-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.95);
    color: #78350f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.inv-hero h1 {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff !important;
    max-width: 820px;
}

.inv-hero p {
    margin: 0;
    max-width: 620px;
    font-size: 17px;
    line-height: 1.65;
    color: #fef3c7;
}

.inv-shell {
    margin-top: -40px;
    padding-bottom: 72px;
    position: relative;
    z-index: 2;
}

.inv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.inv-badge,
.inv-updated,
.inv-stock {
    background: linear-gradient(to right, #f0f9ff, #fffbeb);
    border: 1px solid #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
}

.inv-badge {
    min-width: 260px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.inv-badge .logo-wrap {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.inv-badge .logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.inv-badge .badge-text {
    min-width: 0;
}

.inv-badge .code {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--sky-600);
    line-height: 1.1;
}

.inv-badge .name {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 600;
}

.inv-badge .exchange {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #e0f2fe;
    color: var(--sky-700);
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 4px 10px;
}

.inv-updated,
.inv-stock {
    background: #fff;
}

.inv-updated .label,
.inv-stock .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    font-weight: 800;
}

.inv-updated .value {
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
    color: var(--ink);
}

.inv-stock {
    flex: 1;
    min-width: 260px;
}

.inv-stock-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.inv-stock-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
}

.inv-stock-price .currency {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    margin-right: 4px;
}

.inv-stock-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    padding: 4px 10px;
}

.inv-stock-change.up {
    background: #dcfce7;
    color: #166534;
}

.inv-stock-change.down {
    background: #fee2e2;
    color: #991b1b;
}

.inv-stock-change.flat {
    background: #f1f5f9;
    color: #475569;
}

.inv-stock-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.inv-stock-meta a {
    color: var(--sky-700) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.inv-stock-meta a:hover {
    text-decoration: underline !important;
}

.inv-stock-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inv-stock-sync .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.inv-stock-sync.live .dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: invPulse 1.6s ease infinite;
}

@keyframes invPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.inv-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.inv-sidebar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.inv-sidebar-title {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.inv-nav {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.inv-nav li {
    margin: 0;
}

.inv-nav a,
.inv-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    transition: background 0.15s ease, color 0.15s ease;
}

.inv-nav a:hover,
.inv-nav a.active,
.inv-nav-link:hover,
.inv-nav-link.active {
    background: #e0f2fe;
    color: var(--sky-700) !important;
}

.inv-nav .inv-subnav {
    list-style: none;
    margin: 0 0 4px;
    padding: 0 0 0 8px;
}

.inv-nav .inv-subnav a {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted) !important;
    padding: 7px 10px;
}

.inv-content {
    min-width: 0;
}

.inv-section {
    display: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    padding: 22px;
    scroll-margin-top: 100px;
}

.inv-section.active {
    display: block;
}

.inv-section h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink) !important;
}

.inv-section .inv-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.inv-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.inv-table th,
.inv-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 14px;
}

.inv-table th {
    background: #f8fafc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 800;
}

.inv-table tr:last-child td {
    border-bottom: none;
}

.inv-table td.name {
    font-weight: 700;
}

.inv-table a {
    color: var(--sky-600) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.inv-table a:hover {
    text-decoration: underline !important;
}

.inv-committee {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
}

.inv-committee h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink) !important;
}

.inv-member-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px dashed #e2e8f0;
    font-size: 14px;
}

.inv-member-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.inv-member-row .role {
    color: var(--sky-700);
    font-weight: 700;
    background: #e0f2fe;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.inv-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: var(--muted);
    background: #f8fafc;
}

.inv-files-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.inv-files-head .count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.inv-file-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.inv-file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.inv-file-card:hover {
    background: #f8fafc;
    border-color: #bae6fd;
}

.inv-file-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-700);
    font-size: 16px;
    flex-shrink: 0;
}

.inv-file-card .title {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    min-height: auto;
    margin: 0;
}

.inv-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.inv-btn {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.inv-btn-primary {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: var(--sky-700) !important;
}

.inv-btn-primary:hover {
    background: #bae6fd;
    color: var(--sky-700) !important;
}

.inv-btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: #334155 !important;
}

.inv-btn-ghost:hover {
    border-color: #bae6fd;
    color: var(--sky-700) !important;
}

.inv-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.inv-folder-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    text-decoration: none !important;
    color: var(--ink) !important;
    background: #f8fafc;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.inv-folder-card:hover {
    transform: translateY(-2px);
    border-color: #bae6fd;
    background: #e0f2fe;
}

.inv-folder-card i {
    display: block;
    margin-bottom: 8px;
    color: var(--sky-600);
}

.inv-contact-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    background: #f8fafc;
}

.inv-contact-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink) !important;
}

.inv-contact-card p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.inv-mobile-nav {
    display: none;
    margin-bottom: 14px;
}

.inv-mobile-nav select {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 0 12px;
    font-weight: 700;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

@media (max-width: 991px) {
    .inv-layout {
        grid-template-columns: 1fr;
    }

    .inv-sidebar {
        display: none;
    }

    .inv-mobile-nav {
        display: block;
    }

    .inv-hero h1 {
        font-size: 28px;
    }

    .inv-hero {
        padding: 40px 0 56px;
    }

    .inv-file-card {
        flex-wrap: wrap;
    }

    .inv-file-actions {
        width: 100%;
    }
}
