/* Redgate self-service — theme. Overrides style.css/responsive.css from the bundle.
   Targets the existing class names only; no markup changes required. */

/* Base */
body { font-family: var(--rg-font); font-size: var(--rg-text-base); color: var(--rg-fg); background: var(--rg-surface); -webkit-font-smoothing: antialiased; }
a { color: var(--rg-navy); }
.main__area { min-height: calc(100vh - 56px); padding: 0 0 var(--rg-space-6); }

/* Header */
.header__area { height: 56px; padding: 0 var(--rg-space-5); border-bottom: 1px solid var(--rg-line); }
.logo__main { border-right: 0; padding: 0; }
.logo__main img { height: 22px; width: auto; }
.header__menu ul li .menu__link { font-size: var(--rg-text-base); font-weight: 500; color: var(--rg-fg-3); margin: 0 var(--rg-space-4); line-height: 56px; display: inline-block; }
.header__menu ul li .menu__link:hover { color: var(--rg-fg); }
.header__menu ul li .menu__link.active { color: var(--rg-fg); font-weight: 600; }
.header__menu ul li .menu__link::before { top: auto; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--rg-navy); }
.header__menu ul li .dropdown-toggle .fa-sort-down { font-size: 11px; color: var(--rg-fg-4); top: -2px; }
.header__right { gap: var(--rg-space-2); }
.language__dropdown__wrap { padding: 0 var(--rg-space-3); border: 0; }
.language__dropdown__wrap .dropdown-toggle { font-size: var(--rg-text-md); font-weight: 500; color: var(--rg-fg-2); display: inline-flex; align-items: center; gap: 6px; }
.language__dropdown__wrap .dropdown-toggle span { display: none; }
.language__dropdown__wrap .dropdown-toggle::after { border-top-color: var(--rg-fg-4); }
.mail a, .user__dropdown .dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.mail a:hover, .user__dropdown .dropdown-toggle:hover { background: var(--rg-surface-2); }
.mail img, .user__dropdown img { width: 18px; height: 18px; opacity: .75; }
.user__dropdown .dropdown-toggle::after { display: none; }

/* Dropdown menus */
.dropdown-menu { border: 0; border-radius: var(--rg-radius-lg); box-shadow: var(--rg-shadow-menu); padding: 6px; min-width: 200px; font-size: var(--rg-text-md); }
.dropdown-menu .dropdown-item { border-radius: var(--rg-radius); padding: 8px 10px; color: var(--rg-fg-2); border-top: 0 !important; }
.dropdown-menu .dropdown-item:hover { background: var(--rg-surface-2); color: var(--rg-fg); }
.dropdown-1 .dropdown-item.active { color: var(--rg-fg) !important; font-weight: 600; }

/* Page title & section titles */
.table__title { padding: var(--rg-space-5) var(--rg-space-5) 0; }
.table__title h4 { font-size: var(--rg-text-lg); font-weight: 600; color: var(--rg-fg); margin: 0 0 var(--rg-space-4); padding: 0; }
.investment__area > .table__title:first-child h4 { font-size: var(--rg-text-xl); color: var(--rg-fg); margin-bottom: var(--rg-space-5); }

/* Portfolio overview */
.portfolio__overview { margin: 0 0 var(--rg-space-6); }
.portfolio__overview .container-fluid { padding: 0 var(--rg-space-5); }
.portfolio__overview .row.align-items-center { align-items: flex-start !important; }
.portfolio__overview__total { flex: 0 0 auto; width: auto; padding: 0 var(--rg-space-6) 0 0; margin-right: var(--rg-space-6); border-right: 1px solid var(--rg-line); }
.portfolio__overview__right { flex: 1 1 auto; width: auto; }
.portfolio__overview h4 { font-size: var(--rg-text-md); color: var(--rg-fg-3); font-weight: 500; margin-bottom: var(--rg-space-1); }
.portfolio__overview h3 { font-size: var(--rg-text-2xl); font-weight: 600; color: var(--rg-fg); font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-bottom: var(--rg-space-1); }
.portfolio__overview__total h3 span.percentage--text { display: inline-flex; align-items: center; gap: 4px; font-size: var(--rg-text-sm); font-weight: 600; color: var(--rg-positive) !important; background: var(--rg-positive-soft); padding: 2px 8px; border-radius: 999px; margin: 0; top: 0; }
.portfolio__overview__total h3 span.percentage--text .fa-sort-up { font-size: 10px; position: relative; top: 2px; }
.circle { margin: 0; }
.circle #myChart { height: 120px !important; width: 120px !important; top: 0; }
.overview__blk { margin-bottom: var(--rg-space-4); }
.circle--sm { width: 10px; height: 10px; margin-right: 10px; top: 4px; }
.overview__blk__inner h3 { font-size: var(--rg-text-xl); }
.overview__blk__inner .sub--text { font-size: var(--rg-text-md); font-weight: 500; color: var(--rg-fg-3); margin-left: 6px; }

/* Tables */
.common__table__area { padding: 0 var(--rg-space-5); }
.common__table__area .table { border-top: 1px solid var(--rg-line); margin-bottom: 0; width: 100%; table-layout: auto; }
.common__table__area .table thead th { background: var(--rg-surface-2); color: var(--rg-fg-2); font-size: var(--rg-text-sm); font-weight: 600; text-align: right; padding: 10px var(--rg-space-3); border-bottom: 1px solid var(--rg-line); white-space: nowrap; }
.common__table__area .table thead th:first-child { text-align: left; }
.common__table__area .table thead th div { justify-content: flex-end; }
.common__table__area .table thead th:first-child div { justify-content: flex-start; }
.common__table__area .table thead th i { font-size: 9px; color: var(--rg-fg-4); margin-left: 6px; top: 0; }
.common__table__area .table thead th.sorting_asc i, .common__table__area .table thead th.sorting_desc i { color: var(--rg-fg); }
.common__table__area .table tbody td { font-size: var(--rg-text-base); color: var(--rg-fg-2); padding: 10px var(--rg-space-3); height: 44px; text-align: right; border-bottom: 1px solid var(--rg-line-soft); font-variant-numeric: tabular-nums; }
.common__table__area .table tbody td:first-child { text-align: left; color: var(--rg-fg); font-weight: 500; white-space: normal; }
.common__table__area .table tbody tr:hover td { background: var(--rg-surface-2); }
.common__table__area .table tbody tr:last-child td { padding: 10px var(--rg-space-4); border-bottom: 1px solid var(--rg-line); }
.common__table__area .table tbody td a { color: var(--rg-navy); }

/* Buttons */
.common__btn { font-size: var(--rg-text-md); font-weight: 600; padding: 8px 14px; border-radius: var(--rg-radius); background: var(--rg-navy); line-height: 1.2; }
.common__btn:hover { background: var(--rg-navy-hover); color: #fff; }
.common__btn.bordered { width: auto; padding: 7px 14px; border: 1px solid var(--rg-line); color: var(--rg-fg-2); background: var(--rg-surface); }
.common__btn.bordered:hover { background: var(--rg-surface-2); color: var(--rg-fg); }
.common__btn.active, .common__btn.bordered.active { background: var(--rg-navy-soft); border-color: transparent; color: var(--rg-navy); }
.common__btn.disabled { background: var(--rg-line); color: var(--rg-fg-4); }

/* Inputs */
.form-control, .single__input__item input, .single__input__item .form-control { height: 36px; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); font-size: var(--rg-text-base); color: var(--rg-fg); padding: 6px 10px; }
.form-control:focus { border-color: var(--rg-navy); box-shadow: 0 0 0 3px rgba(31, 63, 122, .15); }
.form-control::placeholder { color: var(--rg-fg-4); }

/* Column sizing: description column gets room, numbers stay compact */
.investment__area:has(.portfolio__overview) .table thead th:first-child, .investment__area:has(.portfolio__overview) .table tbody td:first-child { width: 22%; min-width: 180px; }

/* Orders: date range + search bar */
.header__right__calender { background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); padding: 2px 6px; gap: 6px; margin-right: var(--rg-space-2); }
.header__right__calender .common__btn { background: transparent; color: var(--rg-fg-3); font-weight: 500; padding: 4px 6px; }
.header__right__calender input { border: 0; height: 30px; font-variant-numeric: tabular-nums; }
.header__right__calender img { opacity: .6; }
.input-group .form-control { border-right: 0; }
.input-group .btn, .input-group button { border: 1px solid var(--rg-line); border-left: 0; border-radius: 0 var(--rg-radius) var(--rg-radius) 0; background: var(--rg-surface); color: var(--rg-fg-3); }

.header__right__calender .single__calender { display: flex; align-items: center; gap: 6px; }
.header__right__calender label { font-size: var(--rg-text-md); color: var(--rg-fg-3); margin: 0; }
.header__right__calender .single__calender__date { display: flex; align-items: center; gap: 4px; }
.header__right__calender .single__calender__date p { margin: 0; }
.header__right__calender input.datepicker { width: 92px; color: var(--rg-fg); font-size: var(--rg-text-base); background: transparent; padding: 0 4px; }
.header__right__calender .myCustomBtn { background: transparent; border: 0; color: var(--rg-fg-3); padding: 4px 6px; }
.header__right__calender .myCustomBtn:hover { color: var(--rg-fg); }

/* DataTables writes inline widths at init; keep the table inside the viewport */
.common__table__area .table thead th[style] { width: auto !important; }
.common__table__area .table thead th { white-space: normal; }
.common__table__area .table thead th div { flex-wrap: nowrap; }
.common__table__area .table { width: 100% !important; }

/* Icons: Bootstrap Icons, filled variants. Sized to the text they sit beside. */
.bi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; vertical-align: middle; }
.bi::before { display: block; }
.header__menu ul li .dropdown-toggle .bi { font-size: 10px; margin-left: 4px; position: relative; top: -1px; color: var(--rg-fg-4); }
.language__dropdown__wrap .dropdown-toggle .bi { font-size: 14px; color: var(--rg-fg-4); }
.language__dropdown__wrap .dropdown-toggle span { display: inline-flex; margin-right: 6px; }
.mail a .bi, .user__dropdown .dropdown-toggle .bi { font-size: 18px; color: var(--rg-fg-3); }
.mail a:hover .bi, .user__dropdown .dropdown-toggle:hover .bi { color: var(--rg-fg); }
.common__table__area .table thead th .bi { font-size: 9px; margin-left: 6px; }
.sorting[aria-sort="ascending"] .bi-caret-down-fill { transform: rotate(180deg); }
.portfolio__overview__total h3 span.percentage--text .bi { font-size: 10px; }
.header__right__calender .bi { font-size: 14px; color: var(--rg-fg-3); }
.header__right__calender span { display: inline-flex; }
.input-group .btn .bi, .input-group button .bi, .header__right__calender .myCustomBtn .bi { font-size: 15px; }
.menu-open .bi, .menu-close .bi { font-size: 22px; color: var(--rg-fg-2); }

/* Alignment: header, page, tables */
.header__area .container-fluid { padding: 0; }
.logo__main { display: flex; align-items: center; height: 56px; }
.logo__main a { display: inline-flex; align-items: center; }
.header__menu ul li { display: inline-flex; align-items: center; height: 56px; }
.header__menu ul li .dropdown { display: inline-flex; align-items: center; height: 56px; }
.header__right, .header__right > div { display: flex; align-items: center; height: 56px; }
.language__dropdown__wrap .dropdown, .user__dropdown .dropdown { display: inline-flex; align-items: center; }
.common__table__area .table thead th { vertical-align: bottom; }
.common__table__area .table thead th div { align-items: flex-end; }
.common__table__area .table tbody td { vertical-align: middle; }

/* Row actions: icon links instead of background images */
a.edit, a.add-new, a.delete { background: none !important; width: auto; height: auto; display: inline-flex; align-items: center; justify-content: center; padding: 6px; border-radius: 999px; color: var(--rg-fg-3); text-decoration: none; }
a.edit:hover, a.add-new:hover, a.delete:hover { color: var(--rg-fg); background: var(--rg-surface-2) !important; }
a.edit .bi, a.add-new .bi, a.delete .bi { font-size: 15px; }

/* First column is text: left-aligned, plain color, even when it holds links */
.common__table__area .table tbody td:first-child a { color: inherit; text-decoration: none; }
.common__table__area .table tbody td:first-child > * { justify-content: flex-start; text-align: left; }
.common__table__area .table tbody td:first-child .d-flex { justify-content: flex-start; gap: 12px; }

/* Orders date cell: plain text, date and time on one line */
.vip__data__wrap.text--sky--blue, .text--sky--blue { color: var(--rg-fg) !important; }
.vip__data__wrap { display: inline-flex; align-items: baseline; gap: 10px; font-size: var(--rg-text-base); font-weight: 400; }
.vip__data__wrap p { margin: 0; font-size: inherit; font-variant-numeric: tabular-nums; }
.vip__data__wrap p:nth-child(2) { margin-left: 0; color: var(--rg-fg-3); }

/* Messages: avatar */
.single__user__message__item__thumb { display: flex; align-items: center; justify-content: center; overflow: visible; }
.single__user__message__item__thumb .bi { font-size: 36px; color: var(--rg-fg-4); }
.single__message__user__item__right__read h6 { color: var(--rg-fg); font-weight: 500; font-size: var(--rg-text-base); }
.vip__data__wrap p:first-child { color: var(--rg-fg) !important; }
.vip__data__wrap p:nth-child(2) { color: var(--rg-fg-3) !important; }

/* Sort caret hangs into the cell padding so label and values share one right edge */
.common__table__area .table thead th:not(:first-child) .bi { width: 0; overflow: visible; justify-content: flex-start; margin-left: 4px; }
.common__table__area .table thead th:not(:first-child) .bi::before { margin-left: 2px; }
.common__table__area .table thead th:not(:first-child) .bi { min-width: 0; flex: 0 0 0; }
.common__table__area .table thead th { padding-right: 16px; }
.common__table__area .table thead th.sorting, .common__table__area .table thead th.sorting_asc, .common__table__area .table thead th.sorting_desc, .common__table__area .table thead th { padding-right: 16px !important; padding-left: 16px !important; }

/* Icons: Iconicool line set as an SVG sprite; size follows font-size */
svg.bi { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }
.mail a .bi, .user__dropdown .dropdown-toggle .bi { font-size: 22px; }
.common__table__area .table thead th .bi { font-size: 12px; }
.header__menu ul li .dropdown-toggle .bi { font-size: 12px; }
.language__dropdown__wrap .dropdown-toggle .bi { font-size: 16px; }
.portfolio__overview__total h3 span.percentage--text .bi { font-size: 12px; }
.header__right__calender .bi, .input-group .btn .bi, .input-group button .bi, .header__right__calender .myCustomBtn .bi { font-size: 18px; }
a.edit .bi, a.add-new .bi, a.delete .bi { font-size: 18px; }
.menu-open .bi, .menu-close .bi { font-size: 24px; }
.single__user__message__item__thumb .bi { font-size: 36px; }
