/* Shared accessibility styles. Loaded after style_1.css and login.css. */

.a11y-skip {
    position: absolute;
    left: 8px;
    top: -48px;
    z-index: 10001;
    background: #1a1464;
    color: #ffffff;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.a11y-skip:focus {
    top: 8px;
}

.a11y-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.a11y-page-title {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    color: #1a1a1a;
    margin: 10px 12px 0;
}

h1.a11y-page-title.a11y-sr {
    margin: -1px;
}

:focus-visible {
    outline: 3px solid #1a1464;
    outline-offset: 1px;
}

.select_drop_set:focus-within {
    outline: 3px solid #1a1464;
    outline-offset: 2px;
}

.switch-toggle input:focus-visible + label,
.switch-toggle label:focus-visible {
    outline: 3px solid #1a1464;
    outline-offset: 2px;
}

#button-10:has(.checkbox:focus-visible) {
    outline: 3px solid #1a1464;
    outline-offset: 2px;
}

.k-grid-excel:focus-visible,
.k-grid-toolbar .k-button:focus-visible,
.k-pager-nav:focus-visible,
.k-grid-search:focus-within,
.k-searchbox:focus-within,
.k-grid-toolbar .k-input:focus-within,
button.a11y-icon-btn:focus-visible,
i.plus_minus:focus-visible {
    outline: 3px solid #1a1464 !important;
    outline-offset: 2px;
}

button.admin_menu_btn {
    font-family: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: inherit;
}

.for_admin:focus-within ul.admin_menu_pl {
    display: block;
}

.for_admin:focus-within i.admin_arrow {
    color: #ff3838;
    line-height: 1.4;
    transform: rotate(180deg);
}

#main-content:focus {
    outline: none;
}

button.help_add,
button.log_out_btn,
button.help_close,
button.mob_c,
button.power_off,
button.prev,
button.next,
button.a11y-icon-btn,
button#forgotpass,
button.show_pass {
    font-family: inherit;
    cursor: pointer;
}

button.help_add,
button.log_out_btn,
button.help_close,
button.mob_c,
button.power_off,
button.a11y-icon-btn,
button#forgotpass,
button.show_pass {
    border: 0;
}

button.mob_c,
button.power_off,
button.a11y-icon-btn {
    background: transparent;
    padding: 0;
}

button.show_pass {
    background-color: transparent;
}

button.a11y-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    vertical-align: middle;
}

button#forgotpass {
    background: none;
    color: #0f0f83;
    text-decoration: underline;
    font: inherit;
    padding: 0;
}

a.text-green,
.header_tracker a[href^="tel:"] {
    color: #083070;
    font-weight: 700;
}

button.date_years {
    color: #5f5f5f;
    background: #f8f8f8;
    border: 1px solid #c8c8c8;
}

button.date_years.active {
    background: #4C4CCC;
    color: #ffffff;
    border: 1px solid #3a3ab5;
}

.help_close {
    background: #d10000;
    color: #ffffff;
}

.num_pl,
.total_sec span,
[style*="329206"] {
    color: #0d7a32 !important;
}

.next_date span.active {
    background: #0d7a32;
    border-color: #0a5c26;
}

[style*="color:red"],
[style*="color: red"] {
    color: #d10000 !important;
}

button.btn_menus:hover i,
button.btn_menus:focus i,
button.btn_menus.active_color i {
    color: #d10000;
}

.k-pager-info,
.k-pager-info i {
    color: #d10000 !important;
}

.k-pager-numbers .k-link {
    color: #1a1a1a !important;
}

.k-pager-numbers .k-state-selected,
.k-pager-numbers .k-link.k-state-selected {
    color: #ffffff !important;
    background-color: #4C4CCC !important;
}

.red::before,
.green::before {
    font-weight: 700;
}

.green::before {
    content: "+";
}

.red::after,
.green::after {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.red::after {
    content: " Loss";
}

.green::after {
    content: " Profit";
}

@media (max-width: 768px) {
    button.mob_c,
    button.power_off,
    button.help_close,
    .u_log .log_out_btn,
    button.show_pass,
    button.help_add {
        min-width: 44px;
        min-height: 44px;
    }

    /* Year arrows stay beside the financial years. A 44px target covers the year text. */
    .slideshow-container > button.prev,
    .slideshow-container > button.next {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        margin: -14px -40px;
        font-size: 16px;
        line-height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Clipped grid header cells stay available to the accessibility tree. */
.a11y-grid-pad {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.a11y-footer-links {
    padding: 8px 12px 12px;
}

.a11y-footer-links a {
    color: #083070;
    font-weight: 700;
    text-decoration: underline;
    margin-right: 16px;
}

.a11y-login .a11y-footer-links a {
    color: #ffffff;
}

.a11y-dialog[hidden] {
    display: none;
}

.a11y-dialog.active {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.a11y-dialog-panel {
    background: #ffffff;
    color: #1a1a1a;
    max-width: 32rem;
    margin: 16px;
    padding: 20px;
    border: 3px solid #1a1464;
}

.a11y-dialog-panel button,
.a11y-dialog-panel a {
    display: inline-block;
    min-height: 44px;
    margin: 8px 8px 0 0;
    padding: 10px 14px;
    background: #1a1464;
    color: #ffffff;
    text-decoration: underline;
}

body.a11y-standalone-page {
    background: #ffffff;
    color: #1a1a1a;
}

.a11y-standalone {
    max-width: 42rem;
    margin: 0 auto;
    padding: 16px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.a11y-standalone-header {
    background: #4C4CCC;
    color: #ffffff;
    padding: 12px 16px;
}

.a11y-standalone-header a {
    color: #ffffff;
    font-weight: 700;
}

.a11y-form .a11y-field {
    margin: 0 0 14px;
}

.a11y-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.a11y-form input,
.a11y-form select,
.a11y-form textarea {
    width: 100%;
    max-width: 28rem;
    min-height: 44px;
    font: inherit;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid #1a1a1a;
}

.a11y-form button {
    min-height: 44px;
    padding: 10px 16px;
    background: #1a1464;
    color: #ffffff;
    border: 0;
    font: inherit;
}

.a11y-hint,
.a11y-optional {
    font-weight: 400;
    color: #1a1a1a;
}

.a11y-note {
    background: #f4f4f4;
    border-left: 4px solid #1a1464;
    padding: 12px;
}

/* Login matches the live Portfolio Tracker screen. Accessibility links stay on the copyright bar. */
body.a11y-login {
    padding-bottom: 40px;
}

body.a11y-login .lock h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #212529;
}

body.a11y-login .login_form .icon_user,
body.a11y-login .login_form .icon_pass {
    position: relative;
    display: block;
}

body.a11y-login #showPassword {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    top: 50%;
    bottom: auto;
    right: 0;
    margin-top: -22px;
}

body.a11y-login .a11y-login-error {
    margin: 6px 0 0;
    color: #d10000;
    font-weight: 600;
}

body.a11y-login .a11y-login-error:empty {
    margin: 0;
}

body.a11y-login input.input_form:focus-visible,
body.a11y-login #showPassword:focus-visible,
body.a11y-login #Loginbtn:focus-visible,
body.a11y-login #forgotpass:focus-visible,
body.a11y-login .otpBox:focus-visible,
body.a11y-login .down_txt a:focus-visible {
    outline: 3px solid #1a1464;
    outline-offset: 2px;
}

body.a11y-login .footer {
    display: flex;
    align-items: center;
    min-height: 29px;
    padding: 0 16px;
}

body.a11y-login .footer .left_foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 29px;
}

body.a11y-login p.foot_sm {
    grid-column: 2;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

body.a11y-login p.foot_sm,
body.a11y-login p.foot_sm a {
    color: #ffffff;
}

body.a11y-login .a11y-footer-links {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0 0 0 16px;
}

body.a11y-login .a11y-footer-links a {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    line-height: 29px;
    text-decoration: underline;
}

@media (max-width: 991px) {
    body.a11y-login .footer .left_foot {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 6px 0;
    }

    body.a11y-login p.foot_sm {
        white-space: normal;
    }

    body.a11y-login .a11y-footer-links {
        justify-content: center;
        padding: 0;
    }

    body.a11y-login {
        padding-bottom: 88px;
    }
}

/* Logo stays inside its column when the window is narrower (175% / 200% zoom). */
.logo_tracker img {
    max-width: 100%;
    height: auto;
}

/* Admin submenu hangs below the header. Keep the whole list above the filter bar. */
.header_tracker {
    z-index: 40;
}

.header_tracker .container-fluid,
.header_tracker .row,
.header_tracker .col-lg-10,
.header_menu,
.header_menu > nav,
.for_admin {
    overflow: visible;
}

.for_admin {
    z-index: 50;
}

ul.admin_menu_pl {
    z-index: 51;
    background: #ffffff;
    min-width: 210px;
    overflow: visible;
    left: 0;
    right: auto;
}

ul.admin_menu_pl li a {
    white-space: normal;
    height: auto;
    overflow: visible;
}

/* Same header and filter bar. They wrap onto extra lines instead of overlapping. */
@media (max-width: 1499px) {
    .header_tracker .col-lg-10 {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        column-gap: 12px;
        row-gap: 4px;
    }

    .header_menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        flex: 1 1 520px;
        min-width: 0;
        overflow: visible;
    }

    .menu_name {
        max-width: 100%;
    }

    .right_cont_sec {
        float: none;
        flex: 0 1 auto;
        max-width: 100%;
        margin-top: 8px;
    }

    .u_log {
        align-items: flex-start;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .log_user {
        min-width: 0;
    }

    .log_user span b {
        overflow-wrap: anywhere;
    }

    section.inner_sec .col-lg-9.col-md-9 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 12px;
        row-gap: 8px;
    }

    .switch-toggle {
        float: none;
        margin-top: 0;
    }

    .icon_img {
        float: none;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px 12px;
        width: auto;
        flex: 1 1 280px;
        margin-top: 0;
        text-align: left;
    }

    .slider_sec {
        width: 340px;
        flex: 0 0 340px;
        max-width: 100%;
    }

    .date_opt.active {
        display: inline-flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 4px;
        margin-left: 0;
    }

    .icon_date {
        display: inline-flex;
        align-items: center;
        width: auto;
        margin-left: 0;
        text-align: left;
    }

    .bdr_sec {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .allvalue_data {
        width: auto;
        flex: 1 1 220px;
    }

    .k-grid {
        max-width: 100%;
    }
}

/* 200% zoom on a normal desktop is under 992px. Keep the same controls visible. */
@media (max-width: 991px) {
    .header_menu {
        position: static;
        left: auto;
        top: auto;
        bottom: auto;
        width: auto;
        background: transparent;
        border: 0;
        padding: 0;
        margin-left: 0;
        opacity: 1;
        visibility: visible;
        overflow: visible;
        display: flex;
    }

    .menu_name,
    .menu_name li {
        width: auto;
        display: inline-block;
    }

    .menu_name li a,
    ul#myDropdown_menu.menu_name li a {
        color: #010101 !important;
        background: transparent;
        font-weight: 500;
        width: auto;
        display: inline;
        padding: 5px 0;
    }

    ul#myDropdown_menu.menu_name li:hover a,
    .menu_name li:hover a {
        color: #4C4CCC !important;
    }

    .for_admin {
        display: inline-flex;
        text-align: right;
        background: transparent;
        margin: 20px 0 0 15px;
        padding: 0;
        border: 0;
        z-index: 50;
        overflow: visible;
    }

    .for_admin .admin_menu_btn,
    .for_admin span {
        color: #4C4CCC;
    }

    ul.admin_menu_pl {
        position: absolute;
        display: none;
        width: 210px;
        left: 0;
        right: auto;
        margin: 20px 0 0;
        background: #ffffff;
        z-index: 51;
        overflow: visible;
    }

    .right_cont_sec {
        display: inline-block;
    }

    .icon_img {
        display: flex;
        border: 0;
    }

    .name_code {
        display: block;
    }

    .menu_data {
        display: none;
    }

    button.mob_c,
    button.power_off,
    i.fa.fa-calendar-check-o.open_cal {
        display: none;
    }

    section.header_tracker {
        height: auto;
    }

    .logo_tracker img {
        width: 200px;
        max-width: 100%;
    }

    .select_drop_set {
        width: 100%;
        float: none;
    }

    .slider_sec {
        width: 340px;
    }

    .k-grid-toolbar {
        flex-wrap: wrap;
        height: auto;
    }
}

/* Phones and small tablets: the same controls wrap instead of overflowing. */
@media (max-width: 600px) {
    .slider_sec {
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .date_opt.active {
        flex-wrap: wrap;
        width: 100%;
    }

    .date_opt.active input {
        max-width: 42vw;
    }

    .icon_date,
    .clientcodelabel,
    #CLCode {
        max-width: 100%;
    }

    .k-grid-toolbar {
        height: auto;
    }

    .k-grid-toolbar .k-button {
        white-space: normal;
        height: auto;
    }

    .a11y-footer-links a {
        display: inline-block;
        margin: 4px 10px 4px 0;
    }

    .login_form,
    .input_form,
    .cont_ent,
    .half_add,
    .half_add1 {
        max-width: 100%;
    }
}

/* Data tables may scroll in two directions. The page itself is not orientation-locked. */
@media (max-width: 320px) {
    .a11y-standalone,
    .a11y-dialog-panel,
    .a11y-footer-links {
        max-width: 100%;
    }

    .a11y-footer-links a {
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }
}

/* The + detail uses a thick top border as its open space. Keep that only while the narrow columns are showing. */
@media (min-width: 992px) {
    tr.active_bdr td {
        border-top-width: 0 !important;
    }

    .tr_sec.active .mob_view_data {
        display: none !important;
    }
}
