
#debugbar
{
    z-index: 200;
}

#debugbar.debugbar_closed
{
  position: fixed;
  bottom: 0;
  left:   0;
  
  width: 24px;
  height: 24px;
  
  border-width: 1px 1px 0 0;
  border-style: solid;
  border-color: #000;
  
  background-color: #BBB;
  
  box-shadow: 0 0 4px 0 rgba(50, 50, 50, 0.75);
  
  cursor: pointer;
}

#debugbar.debugbar_closed .dbicon { 
  fill: #222; 
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

#debugbar.debugbar_closed:hover { background-color: #F80; }
#debugbar.debugbar_closed .dbicon:hover { fill: #000; }

#debugbar.debugbar_closed .dbheader  { display: none; }
#debugbar.debugbar_closed .dbcontent { display: none; }



/* ------------------------------------------------------------------ */


#debugbar.debugbar_open
{
  position: fixed;
  bottom: 0;
  left:   0;
  
  width: 100%;
  
  height: 313px;
  
  background-color: #FFF;
  
  display: grid;
  grid-template-rows: auto auto 1fr;
}

#debugbar.debugbar_open .dbicon { display: none; }

#debugbar .dbresizeborder 
{
  height: 3px;
  background-color: #444;
  cursor: n-resize;
}

#debugbar .dbresizeborder:hover
{
  background-color: #000;
}

#debugbar .dbheader
{
  display: flex;
  flex-direction: row;
  
  border-width: 0 0 1px 0;
  border-style: solid;
  border-color: #000;
  
  background-color: #BBB;
  width: 100%;
}

#debugbar .dbcontent
{
  min-height: 0
}

#debugbar .dbheader .dbheadericon
{
  display: flex;
  align-items: center;
  margin: 3px;
}

#debugbar .dbheader .dbheadericon svg
{
  width:  20px;
  height: 20px;
  margin: 2px;
  fill: #000;
}

#debugbar .dbheader .dbtabs
{
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  
  flex-grow: 1;
}

#debugbar .dbheader .dbtabs .dbtabheader
{
  border-style: solid;
  border-color: #444;
  border-width: 0 1px 0 0;
  
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  
  background-color: #AAA;
}

#debugbar .dbheader .dbtabs .dbtabheader:first-child { border-width: 0 1px 0 1px; }

#debugbar .dbheader .dbtabs .dbtabheader
{
  cursor: pointer;
  user-select: none;
}

#debugbar .dbheader .dbtabs .dbtabheader:not(.dbactive):hover
{
  background-color: #AAC;
}

#debugbar .dbheader .dbtabs .dbtabheader.dbactive 
{
  background-color: #66F;
}

#debugbar .dbheader .dbtabs .dbtabheader .hdr_short,
#debugbar .dbheader .dbtabs .dbtabheader .hdr_long {
  display: none;
}

#debugbar .dbheader .dbtabs .dbtabheader:not(.dbactive) .hdr_short { display: initial; }
#debugbar .dbheader .dbtabs .dbtabheader.dbactive       .hdr_long  { display: initial; }

#debugbar .dbheader .dbtabs .dbtabheader.dbactive .hdr_long i {
  margin-right: 4px;
}

#debugbar .dbheader .dbtabs .dbtabheader .dbtabheadernum
{
  font-size: 0.85rem;
  
  display: flex;
  justify-content: center;
  
  margin-left: 2px;
  padding: 0 2px;
  
  background-color: red;
  min-width: 1rem;
  border-radius: 6px;
}

#debugbar .dbheader .dbtabs .dbtabheader .dbtabheadernum.zero 
{
  background-color: #777;
}

#debugbar .dbheader .dbheaderinfo
{
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

#debugbar .dbheader .dbheaderinfo .dbheaderinfofield
{
  display: flex;
  flex-direction: row;
  align-items: stretch;
  
  padding: 0 4px;
  margin-left: calc(1rem - 8px);
}

#debugbar .dbheader .dbheaderinfo .dbheaderinfofield:hover
{
  background-color: #AAA;
  cursor: default;
}

#debugbar .dbheader .dbheaderinfo .dbheaderinfofield .dbhiicon 
{
  display: flex;
  align-items: center;
  
  margin-right: 4px;
}

#debugbar .dbheader .dbheaderinfo .dbheaderinfofield .dbhiicon svg
{
  height: 16px;
  width: 16px;
}

#debugbar .dbheader .dbheaderinfo .dbheaderinfofield .dbhival
{
  display: flex;
  align-items: center;
  white-space: nowrap;
}

#debugbar .dbheader .dbheaderclose
{
  display: flex;
  align-items: center;
  
  margin-left: 1rem;
  
  cursor: pointer;
  
  text-decoration: none;
}

#debugbar .dbheader .dbheaderclose i
{
  font-size: 20px;
    margin: 0 4px 0 0;
    fill: #000;
  
  text-decoration: none;
  color: #000;
}

#debugbar .dbheader .dbheaderclose:hover i 
{
  color: #00F;
}

#debugbar .dbtabcontent.dbhidden { display: none; }

#debugbar .dbtabcontent
{
  width: 100%;
  height: 100%;
}


/* ------------------------------------------------------------------ */


#debugbar .dbdatatable_simple
{
  display: grid;
  grid-template-columns: auto 1fr;
  
  font-family: monospace;
  
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

#debugbar .dbdatatable_simple span {
  border-style: solid;
  border-color: #444;
  border-width: 0 0 1px 0;
  
  padding-top:    4px;
  padding-bottom: 4px;
}

#debugbar .dbdatatable_simple .dbkey {
  padding-left:  4px;
  padding-right: 1rem;
  min-width: 15rem;
  font-weight: bold;
}

#debugbar .dbdatatable_simple .dbval {

}

#debugbar .dbdatatable_simple .dbval.dbval_unset {
  color: #888;
  font-style: italic;
}

#debugbar .dbdatatable_simple .dbval.dbval_null {
  color: #888;
  font-style: italic;
}

#debugbar .dbdatatable_simple .dbval.status_red {
  color: #F00;
}
#debugbar .dbdatatable_simple .dbval.status_green {
  color: #090;
}

#debugbar .dbdata_messagecenter {
  display: flex;
  height: 100%;
  
  justify-content: center;
  align-items: center;
  
  font-size: 1.5rem;
  opacity: 0.5;
}


/* ------------------------------------------------------------------ */


#debugbar .dbdatatable_extcalls {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  
  font-family: monospace;
  
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

#debugbar .dbdatatable_extcalls .dbec_row {
  border-style: solid;
  border-color: #444;
  border-width: 1px 0 1px 0;
  
  padding-top:    4px;
  padding-bottom: 4px;
  
  margin-bottom: -1px;
  
  cursor: pointer;
}

#debugbar .dbdatatable_extcalls .dbec_type {
  padding-left: 0.5rem;
  
  font-weight: bold;
}

#debugbar .dbdatatable_extcalls .dbec_sinfo {
  padding-left: 1rem;
}

#debugbar .dbdatatable_extcalls .dbec_timeicon {
  width: 1rem;
  height: auto;
}

#debugbar .dbdatatable_extcalls .dbec_time {
  padding-left: 0.2rem;
  padding-right: 0.5rem;
}

#debugbar .dbdatatable_extcalls .dbec_data {
  grid-column: 1/-1;
  width: calc(100% - 2rem);
  margin: 1rem;
}

#debugbar .dbdatatable_extcalls .dbec_data table {
  table-layout: fixed;
  border-collapse: collapse;
}

#debugbar .dbdatatable_extcalls .dbec_data td {
  border: 1px solid #888;
  padding: 0.1rem 0.4rem;
}

#debugbar .dbdatatable_extcalls .dbec_data td.dbec_data_tablekey {
  font-weight: bold;
  vertical-align:top
}

#debugbar .dbdatatable_extcalls .dbec_data.collapsed {
  display: none;
}


/* ------------------------------------------------------------------ */


#debugbar .dbdatatable_dbstmts {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto auto auto;
  
  font-family: monospace;
  
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

#debugbar .dbdatatable_dbstmts .dbdbs_row {
  border-style: solid;
  border-color: #444;
  border-width: 1px 0 1px 0;
  
  padding-top:    4px;
  padding-bottom: 4px;
  
  margin-bottom: -1px;
  
  cursor: pointer;
}

#debugbar .dbdatatable_dbstmts .dbdbs_name {
  padding-left: 0.25rem;
  
  font-weight: bold;
  padding-right: 0.75rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_sql {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  padding-right: 1rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_rowicon {
  width:  1rem;
  height: 1rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_rowcount {
  padding-left: 0.2rem;
  padding-right: 0.5rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_memicon {
  width:  1.15rem;
  height: 1.00rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_mem {
  padding-left: 0.2rem;
  padding-right: 0.5rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_timeicon {
  width:  1rem;
  height: 1rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_time {
  padding-left: 0.2rem;
  padding-right: 0.5rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_data {
  grid-column: 1/-1;
  width: calc(100% - 2rem);
  margin: 1rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_data.collapsed {
  display: none;
}

#debugbar .dbdatatable_dbstmts .dbdbs_data .dbdbs_data_sql {
  font-family: 'Courier New', monospace;
  
  max-width: 1100px;
  
  background: #CCC;
  padding: 0.2rem;
  margin-bottom: 0.5rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_data .dbdbs_data_sql b {
  color: #00A;
}

#debugbar .dbdatatable_dbstmts .dbdbs_data .dbdbs_data_error {
  background: #FCC;
  padding: 0.2rem;
  margin-bottom: 0.5rem;
}

#debugbar .dbdatatable_dbstmts .dbdbs_data table {
  table-layout: fixed;
  border-collapse: collapse;
}

#debugbar .dbdatatable_dbstmts .dbdbs_data td {
  border: 1px solid #888;
  padding: 0.1rem 0.4rem;
  
  font-size: 1.1em
}

#debugbar .dbdatatable_dbstmts .dbdbs_data td.dbdbs_data_tablekey {
  font-weight: bold;
  vertical-align:top
}


/* ------------------------------------------------------------------ */

#debugbar .dbdatatable_objectcache {
  padding-bottom: 1px;
}

#debugbar .dbdatatable_simple .dboc_row {
  cursor: pointer;
  
  border-width: 1px 0 1px 0;
  margin-bottom: -1px;
}

#debugbar .dbdatatable_simple .dboc_data.collapsed {
  display: none;
}

#debugbar .dbdatatable_simple .dboc_data {
  grid-column: 1/-1;
  
  width: calc(100% - 2rem);
  margin: 1rem;
}

#debugbar .dbdatatable_simple .dboc_data table {
  table-layout: fixed;
  border-collapse: collapse;
}

#debugbar .dbdatatable_simple .dboc_data td, #debugbar .dbdatatable_simple .dboc_data th {
  border: 1px solid #888;
  padding: 0.1rem 0.4rem;
  
  font-size: 1.1em
}


#debugbar .dbdatatable_objectcache .dboc_data:last-of-type
{
  padding-bottom: 2rem;
}

/* ---------------------------------------------------------------- */


#debugbar .dbdatatable_dbtrns {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;

  font-family: monospace;

  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

#debugbar .dbdatatable_dbtrns .dbdbt_row {
  border-style: solid;
  border-color: #444;
  border-width: 1px 0 1px 0;

  padding-top:    4px;
  padding-bottom: 4px;

  margin-bottom: -1px;

  cursor: pointer;
}

#debugbar .dbdatatable_dbtrns .dbdbt_name {
  padding-left: 0.25rem;

  font-weight: bold;
  padding-right: 0.75rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_status {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  padding-right: 1rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_stmticon {
  width:  1rem;
  height: 1rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_stmtcount {
  padding-left: 0.2rem;
  padding-right: 0.5rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_timeicon {
  width:  1rem;
  height: 1rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_time {
  padding-left: 0.2rem;
  padding-right: 0.5rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_data {
  grid-column: 1/-1;
  width: calc(100% - 2rem);
  margin: 1rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_data.collapsed {
  display: none;
}

#debugbar .dbdatatable_dbtrns .dbdbt_data .dbdbt_data_sql {
  font-family: 'Courier New', monospace;

  max-width: 1100px;

  background: #CCC;
  padding: 0.2rem;
  margin-bottom: 0.5rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_data .dbdbt_data_sql b {
  color: #00A;
}

#debugbar .dbdatatable_dbtrns .dbdbt_data .dbdbt_data_error {
  background: #FCC;
  padding: 0.2rem;
  margin-bottom: 0.5rem;
}

#debugbar .dbdatatable_dbtrns .dbdbt_data table {
  table-layout: fixed;
  border-collapse: collapse;
}

#debugbar .dbdatatable_dbtrns .dbdbt_data td {
  border: 1px solid #888;
  padding: 0.1rem 0.4rem;

  font-size: 1.1em
}

#debugbar .dbdatatable_dbtrns .dbdbt_data td.dbdbt_data_tablekey {
  font-weight: bold;
  vertical-align:top
}


/* ---------------------------------------------------------------- */


#debugbar .dbajax_data {
  white-space: pre-wrap;

  border: 1px solid #888;
  margin: 0.5rem;
  padding: 0.5rem;

  font-family: monospace;

  background-color: #BBB;

  grid-column: 1/-1;

  max-height: 350px;
  width: calc(100% - 2rem);

  overflow-y: scroll;
}

#debugbar .dbajax_data.error {
  background-color: #B88;
}
























