/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.annual-report-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 10px;
}

.annual-report-navigation .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px; /* Common padding for all buttons */
    background-color: #a4bab8;
    color: #ffffff; /* Default icon color (white) via currentColor for SVG */
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #8eaaa8;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.annual-report-navigation .nav-button:hover {
    background-color: #93aba9;
    border-color: #7d9a98;
    color: #00204a; /* Dark blue icon color on hover */
}

/* General SVG styling within .nav-button: ALL icons same size */
.annual-report-navigation .nav-button svg {
    width: 30px;  /* Uniform width for ALL icons */
    height: 30px; /* Uniform height for ALL icons */
    fill: currentColor;
    z-index: 2;
    position: relative;
    transform: none !important; /* Ensure no transform by default */
    animation: none !important; /* Ensure no animation by default */
    /* Only allow transitions for fill and opacity, NOT transform */
    transition-property: fill, opacity !important;
    transition-duration: 0.3s !important;
    transition-timing-function: ease !important;
    transition-delay: 0s !important;
}

.annual-report-navigation .nav-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #b0c0bf;
    border-color: #a0b0af;
    color: #eeeeee;
}

.annual-report-navigation .nav-button.disabled:hover {
    background-color: #b0c0bf;
    border-color: #a0b0af;
    color: #eeeeee;
}

.annual-report-navigation .off-canvas-trigger-button .brxa-wrap,
.annual-report-navigation .off-canvas-trigger-button .brxa-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: static; /* Prevent these wrappers from creating a new stacking context for transform */
    background: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    /* Attempt to stop any transform/transition on these wrappers too */
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* --- ULTIMATE OVERRIDE FOR ROTATION & BRICKSFORGE ICONS --- */

/* Target OUR SVG icon (the grid) specifically and aggressively stop any transform/animation/transition */
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle .brxa-inner > svg {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important; /* Needed for z-index */
    z-index: 2 !important;
    /* width & height are set by the general .nav-button svg rule (24px) */
    transform: none !important; /* CRITICAL: Override any transform */
    transform-origin: center center !important; /* Reset transform origin */
    animation: none !important; /* CRITICAL: Stop any animation */
    transition: none !important; /* CRITICAL: Stop any transition that might affect transform */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important; /* Ensure icon is not affected by line-height */
}

/* Also, when the .brxe-open class is present, NO transform */
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open .brxa-inner > svg {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Hide ALL direct child spans within brxa-inner that are NOT our SVG element. */
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle .brxa-inner > span:not(:has(svg)) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    z-index: -1 !important;
}

/* Hide pseudo-elements that BricksForge might use. */
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle::before,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle::after,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle .brxa-wrap::before,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle .brxa-wrap::after,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle .brxa-inner::before,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle .brxa-inner::after {
    content: "" !important;
    display: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    z-index: -1 !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.annual-report-navigation .off-canvas-trigger-button.brxe-toggle .brxa-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
}

.annual-report-navigation .off-canvas-trigger-button.brxe-toggle {
    background-color: #a4bab8 !important;
    border: 1px solid #8eaaa8 !important;
    color: #ffffff !important;
    overflow: hidden !important;
}
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle:hover {
    background-color: #93aba9 !important;
    border-color: #7d9a98 !important;
    color: #00204a !important;
}

/* Specifically for the 'active' or 'open' state of the toggle */
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open::before,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open::after,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open .brxa-wrap::before,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open .brxa-wrap::after,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open .brxa-inner::before,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open .brxa-inner::after {
    content: "" !important;
    display: none !important;
}
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open .brxa-icon,
.annual-report-navigation .off-canvas-trigger-button.brxe-toggle.brxe-open .brxa-inner > span:not(:has(svg)) {
     display: none !important;
}

   #chart-bedrijfsomvang-houders,
  #chart-bedrijfsomvang-bewijzen,
  #chart-risicobedrijven,
  #chart-vihb-registraties-pie {
      width: auto !important;
      margin: 0 auto !important;
      display: block !important;
  }
