/* Debug stylesheets */
td.debugheader
{
	background-color : #eeeeee;
	border-top : 1px solid #444488;
	border-bottom : 1px solid #444488;
	font-size : 0.9em;
	font-family: Arial, Helvetica, sans-serif;
}

pre.debugtransaction
{
	background-color : #f8f6d8;
}

p.comment /* Class to be used during development for quick comments that someone should notice easily */
{
    background-color: #ffff00;
    font-weight: bold;
    padding: 4px;
    margin: 4px;
    border: 2px dashed;
    display: block; /* Set this attribute to "none" to hide the comments */
}

/* eZSetup stuff */
td.ezsetup_header
{
	background-color : #eeeeee;
	border-top : 1px solid #444488;
	border-bottom : 1px solid #444488;
	font-size : 120%;
	font-family: Arial, Helvetica, sans-serif;
}

td.ezsetup_req
{
	font-size : 80%;
	font-family: Arial, Helvetica, sans-serif;
}

.ezsetup_critical
{
	background-color : #eeeeee;
	border-top : 1px solid #444488;
	border-bottom : 1px solid #444488;
	font-size : 120%;
	font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
	color: #FF0000;
}

.ezsetup_uncritical
{
	background-color : #eeeeee;
	border-top : 1px solid #444488;
	border-bottom : 1px solid #444488;
	font-size : 120%;
	font-family: Arial, Helvetica, sans-serif;
	color: #E2A31D;
}

.ezsetup_pass
{
	background-color : #eeeeee;
	border-top : 1px solid #444488;
	border-bottom : 1px solid #444488;
	font-size : 120%;
	font-family: Arial, Helvetica, sans-serif;
	color: #00B500;
}

div.debug-toolbar label
{
    font-weight: normal;
}

/* used templates statistics */
#debug
{
    text-align: left;
    border-top: 1px dashed black;
    padding: 0.3em;
    background-color: #fff;
}

#debug table
{
    border-collapse: collapse;
	/* width:100; */
}
/* @media screen and (max-width: 1119px) {


} */


#timingpoints, #timeaccumulators, #debug_resources, #debug_includes, #debug table.debug_resource_usage
{
    border: 1px dashed black;
}

#debug table tr.group td
{
    padding-top: 0.7em;
    font-size: 0.95em;
}

#debug table tr.group td:first-child
{
    padding-left: 0.2em;
    font-size: 1em;
}

#debug table tr.data td
{
    background-color: #ffffff;
    border-top: 1px solid #444488;
    border-bottom: 1px solid #444488;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
}

#debug table tr.data:nth-child(odd) td {  background-color: #eeeeee; }

#debug table + h2, #debug table + h3
{
    margin-top: 1em;
}

#debug table.debug_resource_usage th + th, #debug table.debug_resource_usage td + td, table#timeaccumulators th + th, table#timeaccumulators td + td, table#timingpoints th + th, table#timingpoints td + td, table#debug_resources td, table#debug_includes td
{
	padding: 0.25em 0.5em 0.25em 0.5em;
}

#debug th
{
    text-align: left;
}

/* style info tags (that have more info when hovering) */
#debug span.debuginfo:after
{
	border: 2px solid #23a4f5;
	border-radius: 10px;
	color: #23a4f5;
	height: 10px;
	width: 10px;
	line-height: 10px;
	font-size: 10px;
	content: "i";
	margin-left: 5px;
	padding: 0 5px 0 5px;
	opacity: 0.6;
}

#debug span.debuginfo:hover:after { opacity: 1; }

/* center 1st and two last columns of template usage output */
#templateusage tr.data td:first-child, #templateusage tr.data td:nth-child(n+5) { 
	text-align: center; 
	/* width:100px; */
}

/* heading colors for misc notices/warnings... */
#debug tr.notice  td.debugheader span { color: green; }
#debug tr.warning td.debugheader span { color: orange; }
#debug tr.error   td.debugheader span { color: red; }
#debug tr.debug   td.debugheader span { color: brown; }
#debug tr.timing  td.debugheader span { color: blue; }
#debug tr.strict  td.debugheader span { color: purple; }

/* ============ DEBUG CONTENT ============ */
#debug {
  overflow: auto;
}

#debug * {
  word-break: break-all;
  /* white-space: pre-wrap; */
}

/* ========================= July 02, 2025 ========================= */

/* eZ Debug Accordion container */
  #debug {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
  }

  /* Accordion header */
  #debug h2 a {
    background-color: #f2f2f2;
    cursor: pointer;
    padding: 15px;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Icon for open/close */
  #debug h2 a::after {
    content: '\25BC'; /* Down arrow */
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  /* Rotate arrow when active */
  #debug h2 a.active::after {
    transform: rotate(180deg);
  }

  /* Accordion content */
  #debug-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease;
    background-color: #fff;
  }

  /* When active, set max-height to something large enough */
  #debug-details.active {
    padding: 15px;
    max-height: 100%;
    /* Adjust if content is larger */
  }

  #debug #templateusage > tbody > tr > th {
    font-size: smaller;
  }

/*
  #debug div#debug-details.active div#time-accumulators {
    display: none;
  }

  #debug div#debug-details.active div#timing-points {
    display: none;
  }

  #debug div#debug-details.active div.table-responsive table#main-debug-table tbody tr td div.block.debug-toolbar {
    display: none;
  }
*/

/* ========================= July 02, 2025 ========================= */


/* ============ DEBUG CONTENT ============ */
