﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


html {
    font-family: "Open Sans", sans-serif;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.4em;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0
}

    h1:focus {
        outline: none;
    }

h2 {
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #134D8C;
    margin: 0
}

h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0
}

    h3 span {
        display: block;
        font-size: 1.4rem;
        font-weight: 300
    }

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNs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5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.sidebar {
    background-color: #005487;
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.8rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        /* font-size: 0.9rem; */
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
            text-decoration: none;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

header, .row {
    display: flex;
}

.row {
    padding: 5px;
}

.col {
    flex: 1;
}

.col hr {
    width: 90%;
}

.item-gap {
    gap: 0.25rem;
}

div.checkbox-modal
{
    display: block !important;
    opacity: 0;
    background-color: white;
    padding: 0.25rem;
    pointer-events: none;
    min-width: 18rem;
    max-height: 15rem;
    transition-property: all;
    transition-duration: 150ms;
    left: 100%;
    bottom: 0%;
    position: absolute;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: 5px 5px 30px;
    border: 1px solid lightgrey;
    border-radius: 3px;
}

.static-details {
    position: relative;
}

input.check-button
{
    position: absolute;
    left: -100vw;
}

label.check-button
{
    width: fit-content;
    background-color: #005487;
    color: white;
    padding: 0.25rem;
    border-color: rgb(0, 50, 81);
    border-width: 1px;
    border-style: solid;
    position: relative;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

input.check-button:checked + div.checkbox-modal
{
    display: block !important;
    pointer-events: all;
    opacity: 1;
}

.d-flex > .check-button
{
    margin-top: 0.25rem;
    padding: 0.25rem;
}

.template-section header, .template-section .row {
    display: flex;
}
.template-section .info-row {
    margin-bottom: 6px;
    padding: 3px;
}
.template-section .col {
    flex: 1;
}
.template-section .col hr {
    width: 90%;
}
.template-section .item-gap {
    gap: 0.25rem;
}

.cew-redesign {
    /* color */
    --cew-bg: #FFFFFF;
    --cew-surface: #FFFFFF;
    --cew-text-strong: #0A0A0A;
    --cew-text: #5C5C5C;
    --cew-text-muted: #9A9A9A;
    --cew-border: #E8E7E2;
    --cew-border-row: #F2F1EC;
    --cew-border-input: #D9DEE5;
    --cew-text-meta: #6B7280;
    --cew-text-faint: #9CA3AF;
    --cew-text-extra-faint: #D1D5DB;
    --cew-surface-soft: #F3F4F6;
    --cew-surface-hint: #F9FAFB;
    --cew-border-soft: #E5E7EB;
    --cew-accent: #0A2540;
    --cew-accent-ink: #FFFFFF;

    /* type */
    --cew-font-sans: 'Inter', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --cew-fs-display: 30px;
    --cew-fs-h2: 20px;
    --cew-fs-body: 14px;
    --cew-fs-label: 12px;
    --cew-fs-meta: 13px;
    --cew-lh-meta: 20px;
    --cew-lh-label: 16px;
    --cew-fw-regular: 400;
    --cew-fw-medium: 500;
    --cew-fw-semibold: 600;

    /* space */
    --cew-space-1: 4px;
    --cew-space-2: 8px;
    --cew-space-3: 12px;
    --cew-space-4: 16px;
    --cew-space-6: 24px;
    --cew-space-8: 32px;

    /* radius */
    --cew-radius-sm: 5px;
    --cew-radius-md: 6px;
    --cew-radius-chip-glyph: 3px;
}

.cew-redesign .cew-page-heading {
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-display);
    font-weight: var(--cew-fw-semibold);
    color: var(--cew-text-strong);
    margin: 0 0 var(--cew-space-6) 0;
    line-height: 1.2;
    text-transform: none;
}

.cew-redesign .cew-product-tabs {
    display: flex;
    gap: var(--cew-space-6);
    border-bottom: 1px solid var(--cew-border);
    margin-bottom: var(--cew-space-6);
}

.cew-redesign .cew-product-tabs button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: var(--cew-space-3) 0;
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-body);
    font-weight: var(--cew-fw-regular);
    color: var(--cew-text-muted);
    cursor: pointer;
    transition: color 120ms ease, border-color 120ms ease;
}

.cew-redesign .cew-product-tabs button:hover {
    color: var(--cew-text);
}

.cew-redesign .cew-product-tabs button.is-active {
    color: var(--cew-text-strong);
    font-weight: var(--cew-fw-semibold);
    border-bottom-color: var(--cew-accent);
}

.cew-redesign .cew-filter-row {
    display: flex;
    align-items: flex-end;
    gap: var(--cew-space-8);
    margin-bottom: var(--cew-space-6);
}

.cew-redesign .cew-filter-input {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding-bottom: var(--cew-space-2);
    border-bottom: 1px solid var(--cew-border-input);
    color: var(--cew-text-muted);
    flex-shrink: 0;
}

.cew-redesign .cew-filter-input--date     { width: 260px; }
.cew-redesign .cew-filter-input--advisor  { width: 360px; }
.cew-redesign .cew-filter-input--investor { flex: 1; min-width: 360px; }

.cew-redesign .cew-filter-input svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--cew-text-muted);
}

.cew-redesign .cew-filter-input__trigger {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: var(--cew-text-muted);
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-body);
    line-height: 20px;
}

.cew-redesign .cew-filter-input__trigger:focus-visible {
    outline: 2px solid var(--cew-accent);
    outline-offset: 2px;
    border-radius: var(--cew-radius-sm);
}

.cew-redesign .cew-filter-input__label {
    color: var(--cew-text-muted);
}

.cew-redesign .cew-filter-input__label.is-set {
    color: var(--cew-text-strong);
}

.cew-redesign .cew-filter-input__field {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    padding: 0;
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-body);
    font-weight: var(--cew-fw-regular);
    line-height: 20px;
    color: var(--cew-text-strong);
}

.cew-redesign .cew-filter-input__field::placeholder {
    color: var(--cew-text-muted);
    opacity: 1;
}

.cew-redesign .cew-filter-input:focus-within {
    border-bottom-color: var(--cew-accent);
}

.cew-redesign .cew-date-range-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
}

.cew-redesign .cew-date-range-popover {
    position: absolute;
    top: calc(100% + var(--cew-space-2));
    left: 0;
    z-index: 1000;
    min-width: 260px;
    padding: var(--cew-space-4);
    background: var(--cew-surface);
    border: 1px solid var(--cew-border-input);
    border-radius: var(--cew-radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--cew-space-3);
}

.cew-redesign .cew-date-range-popover__field {
    display: flex;
    flex-direction: column;
    gap: var(--cew-space-1);
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-label);
    color: var(--cew-text);
}

.cew-redesign .cew-date-range-popover__field input {
    height: 32px;
    padding: 0 var(--cew-space-2);
    border: 1px solid var(--cew-border-input);
    border-radius: var(--cew-radius-sm);
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-body);
    color: var(--cew-text-strong);
}

.cew-redesign .cew-date-range-popover__clear {
    align-self: flex-end;
    padding: var(--cew-space-1) var(--cew-space-3);
    background: transparent;
    border: 0;
    color: var(--cew-accent);
    cursor: pointer;
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-label);
    font-weight: var(--cew-fw-medium);
}

.cew-redesign .cew-date-range-popover__clear:disabled {
    color: var(--cew-text-muted);
    cursor: not-allowed;
}

/* ─── Event table (chunk 4) ─────────────────────────────────────── */

.cew-redesign .cew-event-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--cew-font-sans);
}

.cew-redesign .cew-event-table thead th,
.cew-redesign .cew-event-table tbody td {
    padding: 0;
    vertical-align: middle;
    border: 0;
}

.cew-redesign .cew-event-table__header-row,
.cew-redesign .cew-event-table__row {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.cew-redesign .cew-event-table__header-row {
    height: 39px;
    padding-block: 12px;
    border-bottom: 1px solid var(--cew-border);
}

.cew-redesign .cew-event-table__row {
    padding-block: 18px;
    border-bottom: 1px solid var(--cew-border-row);
}

.cew-redesign .cew-event-table__row:hover {
    background: rgba(10, 10, 10, 0.02);
}

.cew-redesign .cew-event-table__chev      { width: 24px; flex-shrink: 0; text-align: center; }
.cew-redesign .cew-event-table__trailing  { width: 32px; flex-shrink: 0; }

.cew-redesign .cew-event-table__chev-btn {
    width: 24px; height: 24px;
    padding: 0; border: 0;
    background: transparent;
    color: var(--cew-text-muted);
    font-family: var(--cew-font-sans);
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
}
.cew-redesign .cew-event-table__row.is-expanded .cew-event-table__chev-btn {
    color: var(--cew-text);
}
.cew-redesign .cew-event-table__chev-btn:focus-visible {
    outline: 2px solid var(--cew-accent);
    outline-offset: 2px;
    border-radius: var(--cew-radius-sm);
}

.cew-redesign .cew-event-table__col--ref      { width: 58px;  flex-shrink: 0; }
.cew-redesign .cew-event-table__col--type     { width: 240px; flex-shrink: 0; }
.cew-redesign .cew-event-table__col--date     { width: 108px; flex-shrink: 0; }
.cew-redesign .cew-event-table__col--advisor  { width: 168px; flex-shrink: 0; }
.cew-redesign .cew-event-table__col--subject  { width: 220px; flex-shrink: 0; }
.cew-redesign .cew-event-table__col--investor { flex: 1 1 0; min-width: 170px; }

.cew-redesign .cew-event-table__header-row th {
    font-size: var(--cew-fs-label);
    font-weight: var(--cew-fw-medium);
    line-height: 16px;
    color: var(--cew-text-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: left;
}

.cew-redesign .cew-event-table__row td {
    font-size: var(--cew-fs-body);
    line-height: 20px;
    color: var(--cew-text-strong);
}

.cew-redesign .cew-event-table__col--ref {
    color: var(--cew-text-faint);
    font-size: 13px;
    line-height: 16px;
    font-weight: var(--cew-fw-medium);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.cew-redesign .cew-event-table__col--type {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cew-redesign .cew-event-table__type-family {
    font-size: 11px;
    line-height: 14px;
    font-weight: var(--cew-fw-semibold);
    color: var(--cew-text-meta);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cew-redesign .cew-event-table__type-action {
    padding: 3px 8px;
}

.cew-redesign .cew-event-table__col--date { color: var(--cew-text); }

.cew-redesign .cew-event-table__col--investor { font-weight: var(--cew-fw-medium); }

.cew-redesign .cew-event-table__col--advisor,
.cew-redesign .cew-event-table__col--subject,
.cew-redesign .cew-event-table__col--investor {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cew-redesign .cew-event-table__col--subject.is-empty { color: var(--cew-text-muted); }

/* ─── Pagination footer (chunk 6) ────────────────────────────────── */

.cew-redesign .cew-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--cew-space-4);
    font-family: var(--cew-font-sans);
    font-size: var(--cew-fs-label);
    line-height: 16px;
    font-weight: var(--cew-fw-medium);
    color: var(--cew-text);
}

.cew-redesign .cew-pagination__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cew-redesign .cew-pagination__summary { color: var(--cew-text); }

.cew-redesign .cew-pagination__divider {
    width: 1px;
    height: 14px;
    background: var(--cew-border);
    flex-shrink: 0;
}

.cew-redesign .cew-pagination__size {
    display: inline-flex;
    align-items: center;
    gap: var(--cew-space-2);
    margin: 0;
    cursor: pointer;
}

.cew-redesign .cew-pagination__size-label { color: var(--cew-text); }

.cew-redesign .cew-pagination__size-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--cew-border);
    border-radius: var(--cew-radius-sm);
    padding: 3px 22px 3px 8px;
    background-color: #FFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239A9A9A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 10px 10px;
    color: var(--cew-text-strong);
    font-family: inherit;
    font-size: var(--cew-fs-label);
    line-height: 16px;
    font-weight: var(--cew-fw-medium);
    cursor: pointer;
}

.cew-redesign .cew-pagination__size-select:focus-visible {
    outline: 2px solid var(--cew-accent);
    outline-offset: 2px;
}

.cew-redesign .cew-pagination__nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cew-redesign .cew-pagination__nav-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cew-text-strong);
    border-radius: var(--cew-radius-sm);
    cursor: pointer;
}

.cew-redesign .cew-pagination__nav-btn:hover:not(:disabled) {
    background: var(--cew-surface-hint);
}

.cew-redesign .cew-pagination__nav-btn:disabled {
    color: var(--cew-text-muted);
    cursor: default;
}

.cew-redesign .cew-pagination__nav-btn:focus-visible {
    outline: 2px solid var(--cew-accent);
    outline-offset: 2px;
}

.cew-redesign .cew-pagination__page {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--cew-text);
    font-family: inherit;
    font-size: var(--cew-fs-label);
    line-height: 16px;
    font-weight: var(--cew-fw-medium);
    border-radius: var(--cew-radius-sm);
    cursor: pointer;
}

.cew-redesign .cew-pagination__page:hover:not(.is-current) {
    background: var(--cew-surface-hint);
}

.cew-redesign .cew-pagination__page:focus-visible {
    outline: 2px solid var(--cew-accent);
    outline-offset: 2px;
}

.cew-redesign .cew-pagination__page.is-current {
    background: var(--cew-accent);
    color: var(--cew-accent-ink);
}

.cew-redesign .cew-pagination__ellipsis {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cew-text-muted);
    font-size: 12.5px;
}
