﻿/* styles for any components that require styles at the root level */

:root {
    --stepper-height: 90px;
    --notification-date-color: #92d2ff;
    --transaction-date-color: #ffd086;
}

/*------------- Telerik Dropdown -------------*/
.small-dropdown.k-input,
.small-dropdown.k-input .k-input-inner,
.small-dropdown .k-picker .k-input-inner {
    font-size: 11px;
}

.small-dropdown .k-animation-container .k-list .k-list-item {
    font-size: 11px;
}
/*------------- Telerik Dropdown -------------*/

/*------------- Telerik input fields -------------*/
.k-input, .k-picker, .k-input-inner {
    font-family: inherit !important;
}

.k-animation-container .k-list .k-list-item {
    font-family: var(--app-font-family);
}
/*------------- Telerik input fields -------------*/

/*----------- Transaction Entry Wizard -----------*/
.btn-transaction-entry-container .k-link.k-menu-link {
    padding: 10px 15px;
    box-shadow: unset !important;
    border-bottom: 1px solid #e0e0e0;
}

.btn-transaction-entry-container .k-link.k-menu-link:hover {
    background-color: #9ACFF1 !important;
}

.btn-transaction-entry-container .k-menu-link-text {
    display: flex;
    gap: 10px;
    line-height: 30px;
    align-items: center;
}

li.btn-transaction-entry {
    width: 200px;
}

.icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    color: #fff;
}

.icon-circle .icon {
    font-size: 10px;
}

.icon-circle-small {
    width: 20px;
    height: 20px;
}

/*----------- Transaction Entry Wizard -----------*/

/*------------- Telerik Popup window -------------*/
.k-window {
    border: unset !important;
}

.k-window-titlebar {
    background-color: var(--color-primary) !important;
    color: white !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.k-window .k-actions {
    border-top-color: var(--app-border-light);
    padding-block: 1rem;
}

.warning-window .k-window-titlebar {
    background-color: #C0392B !important;
}

.warning-window .k-window-titlebar .warning-icon-circle .icon {
    font-size: 12px;
}

.warning-window .k-window-titlebar .warning-icon-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent; 
    color: #fff; 
    background-color: #D06B60;
    margin-right: 10px;
}

.warning-window .k-window-title {
    display: flex;
}

.k-window-content {
    color: var(--app-text-color) !important;
}

.transaction-entry-window .k-window-content {
    max-height: 90vh;
    overflow-y: auto;
}

.k-dialog-content {
    white-space: pre-line;
}
/*------------- Telerik Popup window -------------*/
/*------------- Option DropDown -------------*/
.option-dropdown-container {
    font-family: var(--kendo-font-family, inherit) !important;
    font-size: var(--kendo-font-size, inherit) inherit;
}

.option-dropdown-container .k-grouping-header {
    display: none;
}

.option-dropdown-container .k-grid-header {
    padding-right: 0;
    display: none;    
}

.option-dropdown-container .k-grid-header th {
    padding-top: 5px;
    padding-bottom: 5px;
}

.option-dropdown-container .k-grid-table tr.k-grouping-row {
    background-color: #777 !important;
    color: #fff;
}

.option-dropdown-container .k-grid-table tr.k-master-row td {
    background-color: white;
    cursor: pointer;
}

.option-dropdown-container .k-grid-table tr.k-master-row:hover td, .default-option:hover {
    background-color: var(--kendo-color-primary) !important;
    color: white;
}

.option-dropdown-container .k-table-row td {
    padding-top: 5px;
    padding-bottom: 5px;
    border-left: none;
}

.option-dropdown-container .k-grouping-row tr, .option-dropdown-container .k-grouping-row p.k-reset {
    cursor: none;
    pointer-events: none;
    font-weight: normal;
}

.option-dropdown-container .k-grouping-row td .k-icon {
    display: none;
}

.option-dropdown-container .k-grid {
    border-top: none;
    font-family: inherit !important;
}

.option-dropdown-container .k-grid-norecords {
    display: none;
}

.option-dropdown-container .k-grid .k-grid-content {
    overflow-y: auto;
}
/*------------- Option DropDown -------------*/

/*------------- Trade Datepicker/Calendar -------------*/
.legend-item .transaction {
    background-color: var(--transaction-date-color);
}

.legend-item .notification {
    background-color: var(--notification-date-color);
}

.k-calendar-td .k-link {
    color: #000 !important;
}

.k-calendar-td.k-today .k-link, .k-calendar-td.k-selected.k-today .k-link {
    background-color: unset;
    font-weight: normal;
    border: unset;
}

.k-calendar-td.transaction-date .k-link, .k-calendar-td.k-selected.transaction-date .k-link {
    background-color: var(--transaction-date-color) !important;
    border-radius: 0;
}

.k-calendar-td.notification-date .k-link {
    background-color: var(--notification-date-color) !important;
    pointer-events: none;
    border-radius: 0;
}

.k-calendar-td.transaction-date:hover .k-link {
    background-color: var(--transaction-date-color) !important;
}

.k-calendar-td.notification-date:hover .k-link {
    background-color: var(--notification-date-color) !important;
    pointer-events: none;
}

.k-calendar-td.both-dates .k-link, .k-calendar-td.k-selected.both-dates .k-link {
    background: linear-gradient(to bottom right, var(--notification-date-color) 50%, var(--transaction-date-color) 50%);
    border-radius: 0;
}

.k-calendar-td.both-dates .k-link:hover {
    background: linear-gradient(to bottom right, var(--notification-date-color) 50%, var(--transaction-date-color) 50%);
}

.k-calendar-td.disabled-date {
    pointer-events: none;
}

.k-today {
    font-weight: normal !important;
    border: none !important;
}

.k-today .k-link,
.k-link:focus,
.k-calendar-td.k-focus .k-link {
    box-shadow: unset !important;
}

.k-calendar-td.k-focus .k-link {
    border: unset;
}

.k-calendar-td.k-focus.k-selected .k-link{
    border: 1px solid #0061a3 !important;
    font-weight: 500 !important;
}

.k-calendar-td.disabled-date .k-link {
    background-color: unset !important;
    border: unset !important;
    font-weight: normal;
}

.readonly-date-picker {
    cursor: pointer;
}

.readonly-date-picker .k-input-inner {
    pointer-events: none !important;    
}
/*------------- Trade Datepicker/Calendar -------------*/

/*------------- Loading spinner -------------*/
.spinner-container {
    position: fixed !important;
}

.spinner-container .k-loader-container-overlay {
    opacity: 0.6 !important;
}

.spinner-container .k-loader-container-inner {
    background-color: #9f9c9c;
    padding: 0.4rem !important;
    border-radius: 5px;
}
/*------------- Loading spinner -------------*/

/*------------- Telerik Grid -------------*/
.k-grid .k-grid-header .k-table-th {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--app-text-color);
    vertical-align: middle !important;
}

.k-grid.grid-no-group-header .k-grouping-header {
    display: none;
}

.k-grid.grid-no-group-header tr.k-grouping-row {
    display: none;
}

.grid-sticky-header > .k-grid-aria-root,
.k-grid-aria-root:has(.grid-sticky-header),
.k-grid-container:has(.grid-sticky-header),
.k-grid-content:has(.grid-sticky-header) {
    overflow: visible !important;
    height: auto;
}

.grid-sticky-header .k-grid-header {
    position: sticky;
    top: 0px;
    z-index: 10;
}

.grid-small-font .k-grid-table, .grid-small-font .k-grid-footer-table, .grid-small-font .k-grid-header-table {
    font-size: 12px;
}

.k-grid th.header-right {
    justify-content: end;
    text-align: right;
}

.k-grid th.header-center {
    justify-content: center;
}

.k-grid .k-table-th, .k-grid td, .k-grid .k-table-td, .k-grid-header-wrap {
    border: none !important;
}

.k-grid .k-grid-header .k-column-title {
    white-space: break-spaces !important;
}

/*------------- Telerik Grid -------------*/
/*------------- Stepper Footer Buttons -------------*/
.stepper-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stepper-footer .icon-long-arrow-left {
    transform: rotate(-135deg);
    margin-right: 10px;
}

.stepper-footer .icon-long-arrow-right {
    margin-left: 10px;
}

.stepper-footer button:first-child {
    padding-inline: 15px;
}

.stepper-footer button:last-child {
    padding-inline: 50px;
    line-height: 38px;
    background-color: #0061A3 !important;
}
/*------------- Stepper Footer Buttons -------------*/

/*------------- Telerik Tab Strip -------------*/
.k-tabstrip {
    font-family: inherit !important;
}
/*------------- Telerik Tab Strip -------------*/

.deadline-passed {
    color: #dd1010;
    font-weight: 600;
}

/**************** Dashboard Container CSS *******************/
.status-text {
    font-size: 14px;
    font-weight: 500;
    color: #d08a2f;
    background: #f7ead4;
    padding: 0px 10px 0px 10px;
}

/* Details col */
/* ID row */
.row-id {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.badge-executed {
    background: #e0e0e0;
    color: #878181;
    font-size: 12px;
    padding: 4px 10px;
    font-weight: bold;
}
.transaction-link {
    font-weight: 600;
    color: #0b5ed7;
    text-decoration: none;
    cursor: pointer;
}

/* Badge */
.badge-linked {
    background: #dbe7f5;
    color: #2f5d9f;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Title */
.row-title {
    font-size: 16px;
    margin-bottom: 6px;
}

/* Meta */
.row-meta {
    font-size: 13px;
    color: #6c757d;
}

/* Actions Col */
.actions-col {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Tab container bottom border */
.custom-tabs.k-tabstrip .k-tabstrip-items {
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff;
}

    .custom-tabs.k-tabstrip .k-tabstrip-items .k-item {
        color: #6b7280 !important;
        font-size: 14px;
        padding: 10px 18px !important;
        border: none !important;
    }

        .custom-tabs.k-tabstrip .k-tabstrip-items .k-item.k-active {
            color: #111827 !important;
            border-bottom: 3px solid #111827 !important;
        }

.custom-tabs.k-tabstrip .k-item.k-active .k-link {
    background-color: transparent !important;
    color: #111827 !important;
}

.custom-tabs .k-tabstrip-content.k-active {
    min-height: 100px;
}
/* Tab text */
.custom-tabs.k-tabstrip .k-link {
    color: inherit !important;
    padding: 0 !important;
}

.custom-tabs .k-tabstrip-top > .k-tabstrip-content {
    padding: 0px;
}

.custom-tabs .k-tabstrip-top > .k-tabstrip-items-wrapper {
    padding: 5px;
    border: none;
}

.transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Left status */
.status-col {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-text {
    font-weight: 600;
}

    .status-text.orange {
        color: #f59e0b;
    }

    .status-text.green {
        color: #10b981;
    }

/* Middle content */
.details-col {
    flex: 1;
}

.row-id {
    font-weight: 600;
}

.transaction-link {
    color: #0d6efd;
    cursor: pointer;
    text-decoration: none;
}

.badge-linked {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-size: 12px;
}

/* Title text */
.row-title {
    color: #6b7280;
    font-size: 14px;
}

/* Deadline */
.row-meta {
    font-size: 13px;
    color: #9ca3af;
}

/* Right actions */
.actions-col {
    display: flex;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    .status-dot.orange {
        background-color: #f59e0b;
    }

    .status-dot.green {
        background-color: #10b981;
    }

    .status-dot.darkblue {
        background-color: #111827;
    }

.k-button.k-primary {
    background-color: #2563eb;
    border: none;
}

.k-button.k-error {
    background-color: #ef4444;
    border: none;
}

.tabstrip-wrapper {
    position: relative;
}

.tab-export-btn {
    position: absolute;
    top: 6px;
    right: 15px;
    z-index: 10;
}

.custom-tabs .k-tabstrip-items {
    padding-right: 160px;
}

.btn-cancel {
    border: 1px solid #dd1010;
    border-radius: 0px !important;
    color: #dd1010 !important;
}

.btn-border-radius-0 {
    border-radius: 0px !important;
}


/******** Buttons style   **********/
.button-gradient-blue1 {
    background: linear-gradient( 135deg, rgb(71, 135, 199) 0%, rgb(0, 140, 200) 100% ) !important;
    color: #fff !important;
    border: none;
    padding: 10px 16px;
    border-radius: 0px;
    cursor: pointer;
}

.btn-width-150 {
    width: 150px;
}

/************** Internal Dashboard Grid Row Colours ************************/
/* Scoped to internal-dashboard page only — will not affect other grids */

/* Expiring rows — amber background */
.internal-dashboard-grid .row-amber td,
.internal-dashboard-grid .row-amber .k-table-td {
    background-color: #fff7ed !important;
}

/* Investor Action / Pending Cancel rows — light red background */
.internal-dashboard-grid .row-red td,
.internal-dashboard-grid .row-red .k-table-td {
    background-color: #fef2f2 !important;
}

/* Selected row — light blue background */
.internal-dashboard-grid .selected-row td,
.internal-dashboard-grid .selected-row .k-table-td {
    background-color: #e8f0fb !important;
    border-top: 1px solid #365ABD !important;
    border-bottom: 1px solid #365ABD !important;
}

/* Row hover */
.internal-dashboard-grid .k-grid-table tbody tr:hover td,
.internal-dashboard-grid .k-grid-table tbody tr:hover .k-table-td {
    background-color: #f5f6f8 !important;
    cursor: pointer;
}

.doc-grid .k-grid-header,
.doc-grid .k-grid-header-wrap,
.doc-grid .k-table-thead,
.doc-grid .k-table-thead th,
.doc-grid .k-header,
.k-grid.blue-header .k-grid-header,
.k-grid.blue-header .k-header {
    background-color: #1f3a5f !important;
    color: #ffffff !important;
}

.doc-grid .k-table-thead th {
    font-size: 12px;
    text-transform: uppercase;
    padding: 12px 10px;
}

/* ===== REMOVE ALL GRID BORDERS ===== */
.doc-grid,
.doc-grid * {
    border: none !important;
}

    /* ===== HEADER (dark blue strip) ===== */
    .doc-grid .k-grid-header-wrap {
        background-color: #1f3a5f !important;
    }

    .doc-grid .k-table-thead th, .k-grid.blue-header .k-table-thead th {
        background-color: #1f3a5f !important;
        color: #ffffff !important;
        text-transform: uppercase;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* ===== ROWS ===== */
    .doc-grid .k-table-tbody tr {
        background-color: #ffffff;
    }

        .doc-grid .k-table-tbody tr:nth-child(even) {
            background-color: #f7f7f7;
        }

    /* ===== CELLS ===== */
    .doc-grid .k-table-td {
        padding: 12px 10px;
        font-size: 14px;
    }

    /* ===== REMOVE GRID LINES COMPLETELY ===== */
    .doc-grid .k-grid-content,
    .doc-grid .k-table,
    .doc-grid .k-grid-header {
        border: none !important;
    }