/*==========================================================
RCP 2.0
Live Workspace V1
==========================================================*/

:root{

    --bg:#edf1f5;
    --panel:#ffffff;
    --header:#2c3e50;
    --header2:#3f5873;
    --border:#d6dde5;
    --text:#202020;
    --title:#0b4f8a;
    --tableAlt:#f8f9fb;

}

body.dark{

    --bg:#101722;
    --panel:#182433;
    --header:#243447;
    --header2:#31485f;
    --border:#202c39;
    --text:#ffffff;
    --title:#7ec3ff;
    --tableAlt:#1B2938;

}


/* ==========================================================
   Heatmap Button Style
   ========================================================== */

.RED,
.YELLOW,
.PURPLE,
.ORANGE,
.BLACK,
.MIX,
.GREY,
.DGREY,
.PE_LIGHT,
.PE_STRONG,
.CE_LIGHT,
.CE_STRONG{

    font-weight:700;

    border:none;

    text-shadow:none;
    border-radius:2px;
    
    
}

/*==========================================================*/

*{

    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:sticky;

    top:0;

    z-index:1000;

    height:48px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 12px;

    background:var(--panel);

    border-bottom:1px solid var(--border);

}

.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:#FFE066;
    color:#857983;
}

.PURPLE{
    background:#D88AF4;
    color:#fff;
}

.ORANGE{
    background:#FFA64D;
    color:#fff;
}

.RED{
    background:#f244c4;
    color:#fff;
}

.BLACK{
    background:#000;
    color:#fff;
}


.BLACK_CE{
    background:#000;
    color:#ff3333 !important;
}

.BLACK_PE{
    background:#000;
    color:#00ff66 !important;
}

.GREY{
    background:#ada6ac;
    color:#fff;
}

.DGREY{
    background:#857983;
    color:#fff;
}

.MIX{
    background:#5DADE2;
    color:#fff;
}

.PE_LIGHT{
    background:#C8E6C9;
    color:#fff;
}

.PE_STRONG{
    background:#45854e;
    color:#fff;
}

.CE_LIGHT{
    background:#f2cc9b;
    color:#fff;
}

.CE_STRONG{
    background:#f59e2f;
    color:#fff;
}
/*==========================================================*/

#dashboardContainer{

    display:flex;

    flex-direction:column;

    gap:8px;

    padding:6px;

}

.dashboard-row{

    display:flex;

    gap:12px;

    align-items:flex-start;

    flex-wrap:nowrap;

    width:max-content;

}
/*==========================================================*/

.panel{

    flex:0 0 600px;

    background:var(--panel);

    border:1px solid rgba(255,255,255,.05);

    border-radius:6px;

    height:720px;

    display:flex;

    flex-direction:column;

    overflow:hidden;

}
/*==========================================================*/

.panel-header{

    background:var(--header);

    color:white;

    padding:5px 8px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-weight:bold;
    border-radius:6px 6px 0 0;

}


/*==========================================================*/
/* SIGNAL PANEL                                              */
/*==========================================================*/

.signal-panel{

    display:flex;

    align-items:center;

    gap:8px;

    padding:3px 6px;

    border-bottom:1px solid var(--border);

    font-size:9pt;

    height:24px;

}

.signal-title{

    font-size:9pt;

    font-weight:bold;

    margin-bottom:2px;

}
.signal-table{

    width:100%;

    border-collapse:collapse;

}

.signal-table td{

    padding:1px 0;

    border:none;

    line-height:14px;

}

.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{

     height:820px;

    overflow-y:auto;

    width:100%;

}
/*==========================================================*/

table{

    width:100%;

    table-layout:auto;

    border-collapse:separate;

    border-spacing:1px;

}

/*==========================================================*/

thead th{

    position:sticky;

    top:0;

    z-index:10;

    background:var(--header2);

    color:white;

    border:none;

    padding:6px 4px;

}
/*==========================================================*/

tbody td{

    border:none;

    padding:3px 4px;
    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{

    height:calc(100vh - 48px);

    overflow-x:auto;

    overflow-y:auto;

}

button{

    padding:2px 6px;

    border-radius:1px;

    min-width:80px;

    cursor:pointer;

}


.symbol{

    font-size:13pt;

    font-weight:bold;

    color:white;

    text-align:center;

    width:100%;

}



td{

    padding:4px 6px;

    text-align:center;

    vertical-align:middle;

}


tbody tr:hover{

    background:rgba(255,255,255,.06);

}