/*==========================================================
RCP 2.0
Live Workspace V1
==========================================================*/

:root{

    --bg:#edf1f5;
    --panel:#ffffff;
    --header:#243447;
    --header2:#31485f;
    --border:#d6dde5;
    --text:#202020;
    --title:#0b4f8a;
    --tableAlt:#f8f9fb;

}

body.dark{

    --bg:#101722;
    --panel:#182433;
    --header:#24384f;
    --header2:#304a67;
    --border:#31465d;
    --text:#ffffff;
    --title:#7ec3ff;
    --tableAlt:#1d2b3c;

}


/* ==========================================================
   Heatmap Button Style
   ========================================================== */

.RED,
.YELLOW,
.PURPLE,
.ORANGE,
.BLACK,
.MIX,
.PE_LIGHT,
.PE_STRONG,
.CE_LIGHT,
.CE_STRONG{

    font-weight:700;

    border:1px solid rgba(255,255,255,.25);

    text-shadow:0 1px 0 rgba(0,0,0,.15);
}

/*==========================================================*/

*{

    box-sizing:border-box;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:Calibri,Arial,sans-serif;

    font-size:10pt;

    margin:0;

    overflow-y:auto;

}

.admin-section{

    width:1100px;

    margin:16px auto;

    background:#fff;

    border:1px solid #d9e2ec;

    border-radius:6px;

    padding:16px;

}

/*==========================================================*/

.header{

    position:fixed;

    top:0;
    left:0;
    right:0;

    z-index:99999;

    background:var(--panel);

    padding:2px 8px;

    border-bottom:1px solid #999;

    display:flex;
    justify-content:space-between;
    align-items:center;
}
.title{

    font-size:14pt;

    font-weight:bold;

    color:var(--title);

}
.toolbar{

    display:flex;

    align-items:center;

    gap:10px;

}

button{

    font-family:Calibri;

    font-size:10pt;

    padding:3px 10px;

    border:1px solid #999;

    border-radius:3px;

    background:#f4f4f4;

    cursor:pointer;

}


.NONE{
    background:transparent;
}

.YELLOW{
    background:#ffff00;
    color:#857983;
}

.PURPLE{
    background:#7030a0;
    color:#fff;
}

.ORANGE{
    background:#ff7300;
    color:#000;
}

.RED{
    background:#ff7300;
    color:#fff;
}


.GREY{
    background:#ada6ac;
    color:#fff;
}

.DGREY{
    background:#857983;
    color:#fff;
}


.BLACK{
    background:#000;
    color:#fff;
}


.MIX{
    background:linear-gradient(
        to bottom,
        #ff9800,
        #4A148C
    );
    color:white;
}


/* Monthly PE */

.PE_LIGHT{
    background:#C8E6C9;
    color:#857983;
}

.PE_STRONG{
    background:#2E7D32;
    color:#fff;
}

/* Monthly CE */

.CE_LIGHT{
    background:#F8BBD0;
    color:#857983;
}

.CE_STRONG{
    background:#f244c4;
    color:#fff;
}


/*==========================================================*/

#dashboardContainer{

    display:flex;

    gap:4px;

    padding:4px;

    width:max-content;

    align-items:flex-start;

}

/*==========================================================*/

.panel{

    flex:0 0 620px;

    background:var(--panel);

    border:1px solid #eef2f7;

    border-radius:6px;

    overflow:visible;

}
/*==========================================================*/

.panel-header{

    position:sticky;

    top:0;

    z-index:200;

    background:var(--header);

    color:white;

    padding:5px 8px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-weight:bold;
    box-shadow:0 2px 0 var(--header);
}


/*==========================================================*/
/* SIGNAL PANEL                                              */
/*==========================================================*/

.signal-panel{

    padding:10px;

    border-bottom:1px solid var(--border);

}

.signal-title{

    font-weight:bold;

    margin-bottom:8px;

}

.signal-table{

    width:100%;

    border-collapse:collapse;

}

.signal-table td{

    padding:3px 0;

    border:none;

}

.signal-table td:first-child{

    width:80px;

    text-align:left;

    font-weight:bold;

}

.signal-table td:last-child{

    text-align:left;

}

/*==========================================================*/
/* LIVE TABLE                                                */
/*==========================================================*/

.table-wrapper{

    overflow:visible;

    width:100%;

}
/*==========================================================*/

table{

    width:100%;

    table-layout:auto;

    border-collapse:collapse;
    margin-top:-1px;

}

/*==========================================================*/

thead th{

    position:sticky;

    top:27px;      /* height of panel-header */

    z-index:100;

    background:var(--header2);

    color:white;
    border-bottom:2px solid var(--header);

    box-shadow:0 -1px 0 var(--header);
}
/*==========================================================*/

tbody td{

    border:1px solid var(--border);

    padding:2px 3px;

    text-align:right;

    white-space:nowrap;

}

tbody td:first-child{

    text-align:center;

}

tbody td:nth-child(2){

    font-weight:bold;

}

/*==========================================================*/

tbody tr:nth-child(even){

    background:var(--tableAlt);

}

/*==========================================================*/

.rcp{

    font-weight:bold;

}

.drcp{

    font-weight:bold;

}

/*==========================================================*/
/* ADMIN PAGE                                               */
/*==========================================================*/

.admin-section{

    margin:12px;

    padding:12px;

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:6px;

}

.admin-section h2{

    margin:0 0 10px;

    font-size:22px;

    color:#184b8a;

}

.admin-table{

    width:100%;

    border-collapse:collapse;

}

.admin-table th{

    background:var(--header2);

    color:white;

    border:1px solid var(--border);

    padding:6px;

    text-align:center;

}

.admin-table td{

    border:1px solid var(--border);

    padding:2px 4px;

}

.admin-table input{

    width:120px;

    text-align:right;

}
.admin-table select{

    width:100%;

    padding:4px;

    font-family:Calibri;

    font-size:10pt;

}

.admin-table input[type="checkbox"]{

    width:auto;

}



/* ==============================================
   Admin UI
============================================== */

.admin-section{

    margin:14px;
    padding:14px 18px;

}

.section-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:12px;

}

.section-header h2{

    margin:0;

}

.section-header div{

    display:flex;
    align-items:center;
    gap:8px;

}

.section-header label{

    display:flex;
    align-items:center;
    gap:8px;

    font-weight:600;

}

.admin-table input{

    width:140px;
    text-align:right;

}

.admin-table td{

    vertical-align:middle;

}


.dashboard-scroll{

    margin-top:42px;

    height:calc(100vh - 42px);

    overflow:auto;
}

button{

    padding:2px 6px;

    border-radius:1px;

    min-width:80px;

    cursor:pointer;

}


.symbol{

    font-size:11pt;

}


.green-text{
    color:#00ff66 !important;
    font-weight:700;
}

.red-text{
    color:#ff4444 !important;
    font-weight:700;
}


.missing-row td{

    background:#a19f9f !important;
    color:white !important;

}


.bull{
    color:#00cc00;
    font-weight:bold;
}

.bullm{
    color:#008000;
    font-weight:bold;
}

.bear{
    color:#ff4444;
    font-weight:bold;
}

.bearm{
    color:#cc0000;
    font-weight:bold;
}

.resist{
    color:#ff9900;
    font-weight:bold;
}


