/*
 Copyright (C) 2009-2022 Patented Rewards Cards LLC. - All Rights Reserved
*/

/*----------------------------------------------------------
The base color for this template is #5c87b2. If you'd like
to use a different color start by replacing all instances of
#5c87b2 with your new color.
----------------------------------------------------------*/
body {
    font-size: .75em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #696969;
}

/* LOGIN SCREENS
----------------------------------------------------------*/
#errorpanel {
    background-color: #fff;
    padding: 30px 30px 15px;
    width: 800px;
    margin: auto;
    margin-top: 20px;
}

#platformList ul {
    border: 1px solid #ddd;
    margin: 20px 0;
    padding: 0 0 0 0;
    background: #fff url(images/ul.gif) repeat-y;
}

#platformList li {
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #555;
    background: inherit;
    font: bold 1.3em verdana,sans-serif;
}

/* block hover effect */
#platformList a, #platformList a:visited {
    display: block;
    padding: 10px 0 10px 10px;
    color: #66d;
    background: #f4f4f4 url(images/ul.jpg) no-repeat;
    text-decoration: none;
    border: solid #ccc;
    border-width: 0 0 1px 0;
}

#platformList li.last a, #platformList li.last a:visited {
    border-width: 0;
}

#platformList a:hover, #platformList a:visited:hover {
    background: #fef url(images/ul.jpg) no-repeat 0px -800px;
    border: solid #ccc;
    border-width: 0 0 1px 0;
    color: #555;
}

#platformList a.ext:hover, #platformList a.ext:visited:hover {
    background: #efe url(images/ul.jpg) no-repeat 0px -400px;
    border: solid #ccc;
    border-width: 0 0 1px 0;
}

#platformList li.last a:hover, #platformList li.last a:visited:hover {
    border-width: 0;
}

#platformList li.selected_platform a {
    background: Red;
    color: White;
}

#platformList li.selected_platform {
    color: White;
}

/* ACCORDION MENU   
----------------------------------------------------------*/
#accordion_placeholder {
    background-color: #AAAAAA;
}

/* FORM LAYOUT ELEMENTS   
----------------------------------------------------------*/

fieldset {
    margin: 1em 0;
    padding: 1em;
    border: 1px solid #CCC;
}

    fieldset p {
        margin: 2px 12px 10px 10px;
    }

legend {
    font-size: 1.1em;
    font-weight: 600;
    padding: 2px 4px 8px 4px;
}

input[type="text"] {
    border: 1px solid #CCC;
}

select {
    border: 1px solid #CCC;
}

input[type="password"] {
    border: 1px solid #CCC;
}

textarea {
    border: 1px solid #CCC;
    width: 100%;
}

.textarea-no-resize {
    min-height: 50px;
    resize: none;
    overflow-y: scroll;
}

/* TABLE
----------------------------------------------------------*/

table {
    border-collapse: collapse;
}

    table th {
        padding: 0px 1px;
        text-align: left;
        background-color: #e8eef4;
    }

/* MISC  
----------------------------------------------------------*/
.clear {
    clear: both;
}

.error {
    color: Red;
}

#menucontainer {
    margin-top: 40px;
}

div#title {
    display: block;
    float: left;
    text-align: left;
}

#logindisplay {
    font-size: 1.1em;
    display: block;
    text-align: right;
    margin: 10px;
    color: White;
}

    #logindisplay a:link {
        color: white;
        text-decoration: underline;
    }

    #logindisplay a:visited {
        color: white;
        text-decoration: underline;
    }

    #logindisplay a:hover {
        color: white;
        text-decoration: none;
    }

/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors {
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid {
    display: none;
}

/* Styles for editor and display helpers
----------------------------------------------------------*/
.display-label,
.editor-label,
.display-field,
.editor-field {
    margin: 0.5em 0;
}

.text-box {
    width: 30em;
}

    .text-box.multi-line {
        height: 6.5em;
    }

.tri-state {
    width: 6em;
}

.t-panelbar .t-group .t-link {
    line-height: 2.5em;
}

.no-brandinglogo {
    width: 250px;
    height: 75px;
    border: solid 1px Gray;
    padding-top: 30px;
    text-align: center;
}

.brandinglogo {
    width: 250px;
    height: 135px;
    border: solid 1px Gray;
    text-align: center;
}

.no-pc-image {
    width: 250px;
    height: 90px;
    border: solid 1px Gray;
    padding-top: 35px;
    text-align: center;
}

.pc-image {
    width: 250px;
    height: 167px;
    border: solid 1px Gray;
    text-align: center;
}

.brandinglogo70x20 {
    width: 71px;
    height: 21px;
    border: solid 1px Gray;
    text-align: center;
}

header{
    color: #FFFFFF;
}


#divSelectedMallName {
    text-decoration: underline;
    cursor: pointer;
    padding: 5px 0px 5px 0px;
}

#divOtherMalls {
    background-color: White;
    position: absolute;
    padding: 20px;
    border-width: 0px 1px 1px 1px;
    border-style: solid;
    border-color: Gray;
    z-index: 100;
}
/************************* end *************************************/
input[type=text].auto-selected {
    background-color: #E3E3E3;
    cursor: pointer;
}

#result {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}

.txtBold {
    font-weight: bold;
}

.tranDetailRow {
    font-size: 1.1em;
}

#winAddEditMerchant.local-merchant #txtDescription {
    width: 499px;
}

#winAddEditMerchant.local-merchant #txtBanner {
    width: 503px;
}

#winAddEditMerchant #txtCities {
    width: 265px;
    margin-left: 0px;
    height: 80px;
    resize: none;
}

#winAddEditMerchant #ddlLocationType {
    margin-bottom: 2px;
}

#winAddEditMerchant #btnSelectLocations {
    margin-bottom: 2px;
    width: 120px;
}

#winAddEditMerchant #btnClearSelectedLocations {
    width: 120px;
}

@-moz-document url-prefix() {
    #winAddEditMerchant #txtDescription {
        width: 520px;
    }

    #winAddEditMerchant #txtBanner {
        width: 520px;
    }

    #winAddEditMerchant.local-merchant #txtDescription {
        width: 501px;
    }

    #winAddEditMerchant.local-merchant #txtBanner {
        width: 501px;
    }
}

.table {
    display: table;
    color: black;
}

.row {
    display: table-row;
}

.cell {
    display: table-cell;
    padding: 10px;
    text-align: right;
}

.bold {
    font-weight: bold;
}


.loading-bg {
    background-image: url("Images/ajax-loader.gif");
    background-position: center;
    background-repeat: no-repeat;
}

.indexContainer {
    width: 100%;
    max-width: 1100px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    overflow: hidden;
}

.indexContainer .row {
    display: flex;
    padding: 10px;
    /*border-bottom: 1px solid #dddddd;*/
    position: relative;
    min-height: 1px;
}

.column.member {
    background-color: #f9f9f9;
}

.column.merchant {
    background-color: #eafaea;
}

.column.server {
    background-color: #ddd;
}

.column.portal-sponsor {
    background-color: #e0e0e0;
}

.column.reports {
    background-color: #f5f5f5;
}

.indexContainer .column:last-child {
    border-bottom: none;
}

.indexContainer .column {
    flex: 1;
    padding: 0 10px;
    position: relative;
}

    .indexContainer .column:first-child .separator {
        display: none;
    }

    .indexContainer .column a {
        text-decoration: none;
        color: #333;
        display: block;
        padding: 10px;
    }

.indexContainer .hoverlink:hover {
    background-color: #f0f0f0;
}

.ptaghyperlink {
    color: blue;
    text-decoration: underline;
}

.category-label {
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 0;
}

/***Bootstrap 5 -> submenu style**/
.dropdown:hover > .dropdown-menu,
.dropend:hover > .dropdown-menu {
    display: block;
    margin-top: .1em;
    margin-left: .1em;
}

@media screen and (min-width:769px) {
    .dropend:hover > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
    }

    .dropend .dropdown-toggle {
        margin-left: .5em;
    }
}

/******************/
/* .e-menu-wrapper ul.e-menu {
    border: none !important;
} */
/* Hide the arrow for top-level menu items */
.e-menu-parent > .e-menu-item .e-caret {
    display: none;
}

/* Ensure the arrow is visible for submenu items */
.e-navigable > .e-caret {
    display: inline-block !important;
}

#commSummary .row{
    display:block;
}

#commSummary .row>* {
    width: auto;
}

.e-menu-wrapper:not(.e-menu-popup) {
    width: 100% !important;
    border-bottom: 1px solid #ccc !important;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 20;
}

.e-menu-container,
.e-menu-wrapper ul.e-menu {
    min-width: max-content;
}

.e-menu-wrapper.e-menu-popup,
.e-menu-popup {
    z-index: 1080 !important;
}

.e-menu-popup .e-menu-item {
    position: relative;
}

.e-menu-popup .e-menu-item .e-anchor-wrap,
.e-menu-popup .e-menu-item .e-menu-url,
.e-menu-popup .e-menu-item a {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 100%;
}

.e-menu-popup .e-menu-item .e-caret {
    margin-left: auto;
}

.e-dialog .e-dlg-content {
    padding: 0 !important;
}

.e-grid {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.e-grid .e-rowcell {
    font-size: 12px !important;
}

.e-grid .e-row.e-altrow {
    background-color: #f2f2f2;
} 

.e-grid{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.e-control{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
}

.e-grid .e-headercelldiv {
    font-size:12px !important;
}

/***********/

/* Style all Syncfusion Tab headers to match Bootstrap 4 nav-tabs */
.e-tab .e-tab-header {
    border: none;
    background: none;
    margin-bottom: 0;
}

/* Style individual tab items */
.e-tab .e-tab-header .e-toolbar-item {
    margin: 0;
}

/* Style tab text/links */
.e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #007bff;
    border: 1px solid transparent;
    border-radius: 0.25rem 0.25rem 0 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    display: inline-block;
    box-sizing: border-box;
}

/* Style active tab with "box" appearance and transparent background */
.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text {
    color: #495057;
    background: transparent;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0.25rem 0.25rem 0 0;
    position: relative;
    z-index: 2;
    box-shadow: none !important;
    box-sizing: border-box;
}

/* Style mouse-over effect for non-active tabs to match active tab's "box" */
.e-tab .e-tab-header .e-toolbar-item:not(.e-active) .e-tab-text:hover {
    color: #495057;
    background: transparent;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0.25rem 0.25rem 0 0;
    box-shadow: none !important;
    box-sizing: border-box;
}

/* Override Syncfusion's default mouse-over styles for both active and non-active tabs */
.e-tab .e-tab-header .e-toolbar-item:hover,
.e-tab .e-tab-header .e-toolbar-item:hover .e-tab-text,
.e-tab .e-tab-header .e-toolbar-item.e-active:hover,
.e-tab .e-tab-header .e-toolbar-item.e-active:hover .e-tab-text {
    background: transparent !important;
    border-color: #dee2e6 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

/* Style tab content with top border */
.e-tab .e-content .e-item {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

/*Autocomplete result style and Wrapped*/
.e-popup.e-ddl {
    width: auto !important; 
    min-width: 250px; 
    max-width: 600px; 
}

.e-popup.e-ddl .e-list-item {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    padding: 4px 8px; 
    text-align: left !important;
    line-height: 1.3em;
}

.e-popup.e-ddl .autocomplete-item {
    display: block;
    white-space: normal;
}

.e-popup.e-ddl .autocomplete-item .code {
    display: block;
    font-weight: bold;
    margin-bottom: 2px; 
}

.e-popup.e-ddl .autocomplete-item .name {
    display: block;
    color: #666;
}

/* Theme system */
:root {
    --bo-bg: #f5f7fa;
    --bo-surface: #ffffff;
    --bo-surface-elevated: #ffffff;
    --bo-text: #1f2937;
    --bo-text-muted: #6b7280;
    --bo-border: #d1d5db;
    --bo-primary: #2f6da3;
    --bo-link: #2f6da3;
    --bo-header-bg: #5c87b2;
}

html[data-theme="dark"] {
    --bo-bg: #0f172a;
    --bo-surface: #111827;
    --bo-surface-elevated: #1f2937;
    --bo-text: #e5e7eb;
    --bo-text-muted: #9ca3af;
    --bo-border: #374151;
    --bo-primary: #60a5fa;
    --bo-link: #93c5fd;
    --bo-header-bg: #1e293b;
}

body.app-shell,
body.login-page,
body {
    background-color: var(--bo-bg);
    color: var(--bo-text);
}

.app-shell {
    min-height: 100vh;
    overflow-x: auto;
}

.app-header {
    position: relative;
    z-index: 30;
}

.top-header-band {
    background-color: var(--bo-header-bg);
    color: #f9fafb;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bo-border);
}

.top-header-row {
    gap: 0.75rem 1.25rem;
}

.top-header-brand,
.top-header-actions {
    min-width: 0;
}

.top-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-header-welcome {
    display: inline-block;
    white-space: normal;
}

.top-header-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.app-footer {
    color: var(--bo-text-muted);
    background-color: transparent;
    border-top: 1px solid var(--bo-border);
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.theme-switcher-login {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 999;
    background: var(--bo-surface);
    border: 1px solid var(--bo-border);
    border-radius: 8px;
    padding: 6px 8px;
}

.theme-switcher-label {
    font-size: 0.95rem;
    color: inherit;
}

.theme-switcher-select {
    min-width: 110px;
}

.main-content-shell {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.main-content-shell > * {
    min-width: 0;
}

a {
    color: var(--bo-link);
}

html[data-theme="dark"] header .btn {
    color: var(--bo-text);
    background-color: var(--bo-surface-elevated);
    border-color: var(--bo-border);
}

html[data-theme="dark"] header .btn.btn-primary {
    color: #0b1220;
    background-color: var(--bo-primary);
    border-color: var(--bo-primary);
}

html[data-theme="dark"] .container-fluid,
html[data-theme="dark"] .container,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .dropdown-menu {
    background-color: var(--bo-surface);
    color: var(--bo-text);
    border-color: var(--bo-border);
}

html[data-theme="dark"] .top-header-band {
    background-color: var(--bo-header-bg) !important;
    color: #f9fafb !important;
}

html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    color: var(--bo-text);
    border-color: var(--bo-border);
}

html[data-theme="dark"] table th {
    background-color: #1f2937;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: var(--bo-surface-elevated) !important;
    color: var(--bo-text) !important;
    border-color: var(--bo-border) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--bo-text-muted) !important;
}

html[data-theme="dark"] .ui-widget-content,
html[data-theme="dark"] .ui-widget-header,
html[data-theme="dark"] .ui-menu,
html[data-theme="dark"] .ui-dialog,
html[data-theme="dark"] .ui-state-default,
html[data-theme="dark"] .ui-state-hover,
html[data-theme="dark"] .ui-state-active {
    background: var(--bo-surface-elevated) !important;
    color: var(--bo-text) !important;
    border-color: var(--bo-border) !important;
}

html[data-theme="dark"] .e-control,
html[data-theme="dark"] .e-grid,
html[data-theme="dark"] .e-popup,
html[data-theme="dark"] .e-dialog,
html[data-theme="dark"] .e-menu-wrapper {
    border-color: var(--bo-border) !important;
}

html[data-theme="dark"] .e-grid .e-content tr.e-row,
html[data-theme="dark"] .e-grid .e-content tr.e-row .e-rowcell {
    background-color: #111827 !important;
    color: var(--bo-text) !important;
}

html[data-theme="dark"] .e-grid .e-content tr.e-row.e-altrow,
html[data-theme="dark"] .e-grid .e-content tr.e-row.e-altrow .e-rowcell {
    background-color: #1f2937 !important;
    color: var(--bo-text) !important;
}

html[data-theme="dark"] .e-grid .e-content tr.e-row:hover .e-rowcell {
    background-color: #2a3648 !important;
}

html[data-theme="dark"] .e-grid .e-content tr.e-row.e-selectionbackground .e-rowcell,
html[data-theme="dark"] .e-grid .e-content tr.e-row[aria-selected="true"] .e-rowcell {
    background-color: #1d4f8a !important;
    color: #f8fafc !important;
}

/* Patch hardcoded inline light styles in legacy views */
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: white"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background:white"] {
    background-color: var(--bo-surface) !important;
    color: var(--bo-text) !important;
}

html[data-theme="dark"] [style*="color: black"],
html[data-theme="dark"] [style*="color:black"],
html[data-theme="dark"] [style*="color: #000"],
html[data-theme="dark"] [style*="color:#000"] {
    color: var(--bo-text) !important;
}

/* Home page dashboard blocks */
html[data-theme="dark"] .indexContainer {
    background-color: var(--bo-surface) !important;
    border-color: var(--bo-border) !important;
}

html[data-theme="dark"] .column.member,
html[data-theme="dark"] .column.merchant,
html[data-theme="dark"] .column.server,
html[data-theme="dark"] .column.portal-sponsor,
html[data-theme="dark"] .column.reports {
    background-color: #1f2937 !important;
}

html[data-theme="dark"] .column a {
    color: var(--bo-text) !important;
}

html[data-theme="dark"] .ptaghyperlink {
    color: #93c5fd !important;
}

html[data-theme="dark"] .hoverlink:hover {
    background-color: #273549 !important;
}

html[data-theme="dark"] .user-summary-box {
    background: #111827 !important;
    border-color: var(--bo-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .user-summary-title {
    border-bottom-color: var(--bo-border) !important;
    color: var(--bo-text) !important;
}

html[data-theme="dark"] .user-summary-row,
html[data-theme="dark"] .summary-checkbox,
html[data-theme="dark"] .category-label {
    color: var(--bo-text) !important;
}

/* Mall switcher dropdown */
html[data-theme="dark"] #divSelectedMallName {
    color: #e5e7eb !important;
    text-decoration-color: #93c5fd;
}

html[data-theme="dark"] #divOtherMalls {
    background-color: #111827 !important;
    color: var(--bo-text) !important;
    border-color: var(--bo-border) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] #platformList ul {
    background: #1f2937 !important;
    border-color: var(--bo-border) !important;
}

html[data-theme="dark"] #platformList li {
    color: var(--bo-text) !important;
}

html[data-theme="dark"] #platformList a,
html[data-theme="dark"] #platformList a:visited {
    background: #1f2937 !important;
    color: var(--bo-text) !important;
    border-color: var(--bo-border) !important;
}

html[data-theme="dark"] #platformList a:hover,
html[data-theme="dark"] #platformList a:visited:hover,
html[data-theme="dark"] #platformList a.ext:hover,
html[data-theme="dark"] #platformList a.ext:visited:hover {
    background: #273549 !important;
    color: #f9fafb !important;
}

html[data-theme="dark"] #platformList li.selected_platform a {
    background: #1d4f8a !important;
    color: #f8fafc !important;
}

@media (max-width: 991.98px) {
    .top-header-row {
        gap: 0.75rem;
    }

    .top-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .top-header-links {
        justify-content: flex-start;
    }

    .indexContainer .row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .indexContainer .column {
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .top-header-band .fs-4,
    .top-header-band .fs-5 {
        font-size: 1rem !important;
    }

    .top-header-brand,
    .top-header-actions {
        width: 100%;
    }

    .top-header-actions {
        gap: 0.75rem !important;
    }

    .top-header-links {
        width: 100%;
    }

    .theme-switcher {
        width: 100%;
        justify-content: space-between;
        margin-right: 0;
    }

    .theme-switcher-select {
        min-width: 0;
        width: 100%;
        max-width: 180px;
    }

    .e-menu-wrapper:not(.e-menu-popup) {
        margin-bottom: 12px;
    }
}
