﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'Lato Medium';
    src: url('../fonts/Lato-Medium.woff');
}

@font-face {
    font-family: 'LatoMedium';
    src: url('fonts/Lato-Medium.eot');
    /* IE9 Compat Modes */
    src: url('fonts/Lato-Medium.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/Lato-Medium.woff2') format('woff2'),
    /* Modern Browsers */
    url('fonts/Lato-Medium.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/Lato-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

html,
body {
    font-family: 'LatoMedium';
    background-color: #f5f5f5;
}

.fill-height {
    min-height: 100%;
    height: 100%;
}

h1:focus {
    outline: none;
}

h3 {
    padding-top: 0.4rem;
    font-size: 1.65rem;
}

.search-title {
    border-bottom: 3px solid #71c59d;
}

a,
.btn-link {
    color: #0071c1;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

input[type=checkbox] {
    -ms-transform: scale(1.2);
    /* IE */
    -moz-transform: scale(1.2);
    /* FF */
    -webkit-transform: scale(1.2);
    /* Safari and Chrome */
    -o-transform: scale(1.2);
    /* Opera */
    padding: 10px;
}

    input[type=checkbox]:checked {
        background-color: #71c59d;
    }

.blazored-toast-container {
    z-index: 10000 !important;
}

.nav-link:hover {
    text-decoration: none;
}

.paginator-link {
    background: none;
    color: #71c59d;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

    .paginator-link:disabled {
        color: #cecece;
        cursor: default;
    }

    .paginator-link:hover:enabled {
        color: #3a8a64;
    }

.nav-tabs .nav-link {
    border-radius: 0px;
    border-color: var(--bs-nav-tabs-link-active-border-color);
    color: #000000;
    box-shadow: 3px 0 2px -2px rgba(0, 0, 0, 0.2);
}

    .nav-tabs .nav-link.active {
        background-color: #f2f9f1;
        color: #6ec399;
        font-weight: 800;
    }

.tab-nav-link {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: #f5f5f5;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

.expanded-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

.expanded-table-holder {
    width: 100%;
    /* overflow-x: auto;*/
    margin: 0 auto;
    /*overflow-x:auto;*/
}

.table-default-cursor .expanded-table > tbody > tr {
    cursor: default;
}

.table-default-cursor-tranches .expanded-table > tbody > tr {
    cursor: default;
}

    .table-default-cursor-tranches .expanded-table > thead > tr > th:first-child,
    .table-default-cursor-tranches .expanded-table > tbody > tr > td:first-child {
        flex: 3;
    }

.table-default-cursor-tranches .expanded-table > thead > tr > th:nth-child(2) {
    flex: 3;
    padding-right: 0rem;
}

.table-default-cursor-tranches .expanded-table > tbody > tr > td:nth-child(2) {
    flex: 3;
}

.table-default-cursor-tranches .expanded-table > thead > tr > th:nth-child(3) {
    flex: 1;
    padding-right: 7rem;
}

.table-default-cursor-tranches .expanded-table > tbody > tr > td:nth-child(3) {
    flex: 1;
    padding-right: 9rem;
}

.table-default-cursor-tranches .expanded-table > thead > tr > th:nth-child(4) {
    flex: 1.5;
    padding-right:3rem;
}

.table-default-cursor-tranches .expanded-table > tbody > tr > td:nth-child(4) {
    flex: 1;
    justify-content:flex-end;
    padding-right:5rem;
}

/* ---------- Base flex-table layout ---------- */
.expanded-table thead tr,
.expanded-table tbody tr {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    background-color: #fff;
}

.expanded-table th,
.expanded-table td {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    flex: 1 1 0%; /* explicit grow/shrink/basis so widths are predictable */
    min-width: 0; /* allow content to actually shrink when needed */
    overflow: hidden;
    text-overflow: ellipsis;
    /* leave white-space default; we’ll opt-in wrapping where needed */
}

/* Header look & feel */
.expanded-table thead th {
    background-color: #f9f9f9;
    font-weight: bold;
}

/* Tame Bootstrap 5.3 table padding vars (optional) */
.expanded-table {
    --bs-table-cell-padding-x: 1rem;
    --bs-table-cell-padding-y: 0.25rem;
}

/* ---------- Per-table fine tuning ---------- */
.securitisation-table .expanded-table > tbody > tr > td,
.securitisation-table .expanded-table > tbody > tr > th {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* BODY COLUMN RATIOS (keep your original proportions) */
.securitisation-table .expanded-table > tbody > tr > :nth-child(1) {
    flex: 3 1 0%;
}

.securitisation-table .expanded-table > tbody > tr > :nth-child(2) {
    flex: 4 1 0%;
}

.securitisation-table .expanded-table > tbody > tr > :nth-child(3) {
    flex: 1 1 0%;
}
/* asset class */
.securitisation-table .expanded-table > tbody > tr > :nth-child(4) {
    flex: 2 1 0%;
}

.securitisation-table .expanded-table > tbody > tr > :nth-child(5) {
    flex: 3 1 0%;
}

.securitisation-table .expanded-table > tbody > tr > :last-child {
    flex: 3 1 0%;
}

/* BODY CELL-SPECIFIC BEHAVIOR */
.securitisation-table .expanded-table > tbody > tr > td:first-child {
    /* allow wrapping like before */
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

.securitisation-table .expanded-table > tbody > tr > td:nth-child(2) {
    padding-left: 1.5rem;
    overflow: visible; /* if you want content/tooltips to spill */
}

.securitisation-table .expanded-table > tbody > tr > td:nth-child(3) {
    padding-left: 2rem; /* your original spacing */
}

/* replace 'revert-layer' with explicit resets or a value */
.securitisation-table .expanded-table > tbody > tr > td:nth-child(4),
.securitisation-table .expanded-table > tbody > tr > td:nth-child(5) {
    padding-left: initial; /* or 1rem / 0 to taste */
}

.securitisation-table .expanded-table > tbody > tr > td:last-child {
    overflow: visible;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/*This is for the reporting entity header name, as there are only two headers
  need to for this . May be with new telrik tables this will be much better */
.securitisation-table {
    --sec-header-right-width: 31.5rem;
}
    
    .securitisation-table .expanded-table > thead > tr {
        display: flex;
    }

        /* first header: flexible, wraps */
        .securitisation-table .expanded-table > thead > tr > th:first-child {
            flex: 1 1 auto;
            min-width: 0;
            overflow: visible;
            white-space: normal;
            word-break: break-word;
            padding-left: 3rem; /* keep your existing small left pad */
        }

        /* second (last) header: fixed column width instead of huge padding-left */
        .securitisation-table .expanded-table > thead > tr > th:last-child {
            flex: 0 0 var(--sec-header-right-width);
            justify-content: flex-start;
            overflow: visible;
            padding-left: 1rem; /* small internal pad */
        }

/* ---------- Hover (Bootstrap 5.3-friendly) ---------- */
/* Preferred: use BS variables so you don't fight specificity */
.expanded-table.table-hover {
    --bs-table-hover-bg: #f5f5f5;
    
}



.documents .expanded-table > thead > tr > th:first-child,
.documents .expanded-table > tbody > tr > td:first-child {
    flex: 2;
    padding: 1rem;
    padding-left: 2rem;
}

.documents .expanded-table>thead>tr>th:nth-child(2),
.documents .expanded-table>tbody>tr>td:nth-child(2){
    flex:1;
}
.documents .expanded-table > thead > tr > th:nth-child(3),
.documents .expanded-table > tbody > tr > td:nth-child(3) {
    flex: 1;
}
.documents .expanded-table > thead > tr > th:nth-child(4),
.documents .expanded-table > tbody > tr > td:nth-child(4) {
    flex: 1;
}



.expanded-table th.first-col, .expanded-table td.first-col {
    flex: 3;
    white-space: normal;
    overflow: visible;
    min-width: 150px;
    word-break: break-word;
}

.expanded-table th.last-col,
.expanded-table td.last-col {
    flex: 2.5;
    white-space: normal;
    overflow: visible;
    min-width: 130px;
    word-break: break-word;
}

.expanded-table tfoot tr td {
    display: flex;
    flex: 1;
    padding-left: 0;
    justify-content: flex-end;
    align-items: center;
}

    .expanded-table tfoot tr td span {
        padding: 0 10px;
    }


.expanded-table-holder {
    background-color: #ffffff;
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    padding: 0rem;
    width: 100%;
    min-width: 900px;
}

.expanded-table > tbody > tr {
    cursor: pointer;
}

    .expanded-table > tbody > tr:hover > * {
        background-color: #f5f5f5 !important;
    }

    .expanded-table > tbody > tr > td,
    .expanded-table > tbody > tr > th,
    .expanded-table > tfoot > tr > td,
    .expanded-table > tfoot > tr > th,
    .expanded-table > thead > tr > td,
    .expanded-table > thead > tr > th {
        padding: 3rem;
        padding-top: 1.1rem;
        padding-bottom: 1.2rem;
    }

.expanded-table > thead > tr > th,
.expanded-table > tfoot > tr > th {
    background-color: #f2f9f1;
    border-bottom-width: 0px;
}

.expanded-table > tbody > tr > td,
.expanded-table > tfoot > tr > td,
.expanded-table > thead > tr > td {
    border-bottom-width: 0px;
}

.expanded-table > tfoot > tr > td {
    background-color: #f2f9f1;
}

.expanded-table > tbody > tr {
    display: flex;
}

    .expanded-table > tbody > tr > td {
        flex: 1;
    }


.logo {
    width: 100%;
}


.btn {
    /* padding-left: 4.6rem;
    padding-right: 4.6rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem; */
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    letter-spacing: 0.2rem;
    font-size: 1.0rem;
    width: 100%;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-success {
    background-color: #6ec59c;
    color: #ffffff;
    border-color: #6ec59c;
}

label {
    font-weight: bold;
}

.label-colored {
    color: #6ec399;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    background-color: #f8f8f8;
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.blazored-typeahead__input-mask {
    background-color: #f8f8f8 !important;
}

.card {
    background-color: #f2f9f1;
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    padding: 1rem;
}

.card-colored-primary {
    background-color: #f2f9f1;
}

.card-white-primary {
    background-color: white
}

.card-tab-primary {
    background-color: #f2f9f1;
    border-top: 0px;
}

.card-link {
    text-underline-offset: 7px;
}

.card-title {
    margin-bottom: 1.5rem;
}

.modal-colored-primary {
    background-color: #f2f9f1;
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    z-index: 102;
    padding: 3rem;
    min-width: 500px;
    max-width: 600px;
    padding-top: 2rem;
}

.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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.spinner {
    border: 3px solid #f5f5f5;
    border-top: 3px solid #6ec59c;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2000ms linear infinite;
    top: 50%;
    left: 51%;
    position: absolute;
    margin: -40px 0 0 -40px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@media screen and (max-width: 1199px) {

    .securitisation-table .expanded-table,
    #documents .expanded-table-holder .expanded-table,
    #tranches .expanded-table-holder .expanded-table {
        margin-bottom: 0;
    }

    .securitisation-table,
    #documents .expanded-table-holder {
        display: flex;
        min-width: unset;
    }


        .securitisation-table .expanded-table thead tr {
            display: flex;
            flex: 1;
        }

            .securitisation-table .expanded-table thead tr th,
            .securitisation-table .expanded-table > tbody > tr > td,
            #documents .expanded-table > tbody > tr > td {
                flex: 1;
                display: flex;
                padding: 1rem;
            }

        .securitisation-table .expanded-table > tbody > tr {
            display: flex;
        }

        .securitisation-table .expanded-table thead tr th:first-of-type,
        #documents .expanded-table thead tr th:first-of-type {
            padding-left: 1rem;
            flex: 2;
        }

        .securitisation-table .expanded-table > tbody > tr > td:first-of-type,
        #documents .expanded-table > tbody > tr > td:first-of-type {
            flex: 2;
        }

        .securitisation-table .expanded-table > tfoot > tr > td,
        .securitisation-table .expanded-table > tfoot > tr > th,
        #documents .expanded-table > tfoot > tr > td,
        #documents .expanded-table > tfoot > tr > th {
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

        .securitisation-table .expanded-table > tbody > tr > td:first-of-type a {
            width: 215px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
}

@media screen and (max-width: 767px) {

    .nav-tabs {
        flex-wrap: nowrap;
    }

        .nav-tabs .nav-item {
            flex: 1;
        }

            .nav-tabs .nav-item button {
                padding: 1rem;
                height: 100%;
                width: 100%;
            }

    .securitisation-table .expanded-table thead tr,
    #documents .expanded-table thead tr {
        display: flex;
        flex: 1;
    }

        .securitisation-table .expanded-table thead tr th,
        .securitisation-table .expanded-table > tbody > tr > td {
            flex: 1;
            display: flex;
            padding: 1rem;
        }

    .securitisation-table .expanded-table > tbody > tr {
        display: flex;
    }

        .securitisation-table .expanded-table > tbody > tr > td:first-of-type a {
            width: 125px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .securitisation-table .table tr td:nth-child(n+3),
    .securitisation-table .table tr th:nth-child(n+3),
    #documents .table tr td:nth-child(n+3),
    #documents .table tr th:nth-child(n+3) {
        display: none;
    }
}

@media screen and (max-width: 425px) {
    .securitisation-table .expanded-table > tbody > tr > td:first-of-type a {
        width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .securitisation-table .expanded-table > tbody > tr > td:first-of-type,
    .securitisation-table .expanded-table > thead > tr > th:first-of-type,
    #documentation .expanded-table > tbody > tr > td:first-of-type,
    #documentation .expanded-table > thead > tr > th:first-of-type {
        flex: 1;
    }

    #tranches thead tr th,
    #tranches tbody tr td {
        padding: 1rem;
    }

    #tranches .expanded-table-holder,
    #documents .expanded-table-holder {
        display: flex;
        width: unset;
        min-width: unset;
    }

    .nav-tabs .nav-item button {
        padding: 0.5rem;
    }
}

.download-button {
    background-color: #6ec59c;
    color: #ffffff;
    border-color: #6ec59c;
    width: 200px;
    margin: 20px auto;
    padding: 10px 20px;
    display: block;
    box-sizing: border-box;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0,0,0,0);
    z-index: 999;
}

/* Floating Modal - Positioned at Top Right */
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfect centering */

    background: #f2f9f1;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 500px;
    z-index: 1000;
    font-family: 'LatoMedium';
}

/* Header Styling */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    /*text-align:center;*/
    font-weight: bold;
    margin-bottom: 5px;
    color: black;
    font-family: 'LatoMedium'
}

    /* Close Button */
    .modal-header .close-button {
        background: none;
        border: none;
        font-size: 2rem;
        color: black;
        cursor: pointer;
        top: inherit;
        padding-bottom: 0.25rem;
    }

        .modal-header .close-button:hover {
            color: #555;
        }

/* Modal Message */
.modal-content p {
    font-family: 'LatoMedium';
    color: black;
    font-size: 1rem;
    margin-bottom: 15px;
    align-content: center;
}

/* Button Container */
.modal-buttons {
    display: flex;
    /*justify-content: flex-end;*/
    gap: 8px;
    padding: 0,50px,0,0;
    align-items: center;
    vertical-align: central;
}

/* Download Button */
button.confirm {
    background-color: #6ec59c;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

    button.confirm:hover {
        background-color: #218838;
    }

/* Cancel Button */
button.cancel {
    background-color: #6ec59c;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

    button.cancel:hover {
        background-color: #218838;
    }

/*may be the correct one ?*/
/* Hide the default floating badge */
body > div.grecaptcha-badge {
    /*display: none !important;*/
    visibility: hidden !important;
    display: none !important;
    opacity: 0 !important;
    overflow: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Default badge size inside your custom control */
.custom-recaptcha {
    width: 60px;
    height: 60px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: block;
    pointer-events: auto;
    margin-left: 450px;
}

    /* Corrected badge visibility */
    .custom-recaptcha .grecaptcha-badge {
        visibility: visible !important;
        opacity: 1 !important;
        width: 60px;
        height: 60px;
        position: absolute;
        bottom: 0;
        right: 0;
        display: block;
        box-shadow: 0 0 5px gray;
        border-radius: 2px;
        pointer-events: auto;
    }
