/* Responsive adjustments for smaller screens */
/* Media query for smaller screens */
@media (max-width: 750px) and (orientation: portrait){
    div#fugr-funds-graph-wrapper-outer-div {
    zoom: 95%;
    -moz-transform: scale(100%);/* Firefox Property */
    -moz-transform-origin: 0 0;
    -o-transform: scale(100%);/* Opera Property */
    -o-transform-origin: 0 0;
    -webkit-transform: scale(100%);/* Safari Property */
    -webkit-transform-origin: 0 0;
    transform: scale(100%); /* Standard Property */
    transform-origin: 0 0;  /* Standard Property */

    }
}

/* Responsive adjustments for smaller screens */
/* Media query for smaller screens */
@media (max-width: 750px) and (orientation: portrait){
    canvas#funds-graph-canvas, #fugr-funds-graph-container {

        display: none !important;
    }
}


div.fugrmessage{

    display: inline-block;;
    color:#a4936b;
    text-align: left;
    font-size: 25px;
}

div#fugrgraph-list-div{

    display: inline-block;;
    color:#a4936b;
    text-align: left;
    font-size: 25px;
}

#fugr-funds-graph-wrapper-outer-div{

    display: block;
}

#fugr-funds-graph-wrapper-inner-div{

    display: block;
}


.page-id-15 #fugr-funds-graph-wrapper {
    display: inline-block;
}

canvas#funds-graph-canvas {
    display: none; /* Hide the canvas initially */
  }
  
  #funds-graph-canvas.fugrshow {
    display: block; /* Show the canvas when this class is added */
  }



#fugr-funds-graph-controls-outer-div{

    padding: 20px;
    display: block;
    margin: 5px;
}

#fugr-funds-graph-controls{
	display: inline-block;
    width: 100%;
    border:
    5px solid #212121;
    outline: 2px ridge silver;
    padding: 5px;
    color: silver;
    background: rgb(61,54,30);
    background: linear-gradient(0deg, rgba(51,46,30,0.9808123933167017) 0%, rgba(47,43,35,1) 35%); 
    text-align: center;
}

#fugr-client-dropdown-div{

    display: inline-block
}

#fugr-address-dropdown-div{

    display: inline-block
}


#fugr-funds-graph-container-outer-div{

    display: inline-flex
}

#fugr-funds-graph-container{
    display: block;
    height: 300px;
    width: 600px;
}



/* ---------- Drill-down table under the graph ---------- */
/* Clicking a bar or the label beneath it lists everything that bar is made of. */

.fugr-detail {
    display: block;
    clear: both;
    margin-top: 20px;
    border-top: 2px solid #4c4b4b;
    padding-top: 12px;
    text-align: left;
}

/* `display: block` above beats the browser's own [hidden] rule, so restate it. */
.fugr-detail[hidden] {
    display: none;
}

.fugr-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

#fugr-detail-title {
    color: #b8a680;
    font-size: 20px;
}

.fugr-detail-close {
    background-color: #212121;
    color: silver;
    border-radius: 4px;
    border: 1px solid black;
    outline: 2px ridge rgb(84, 84, 84);
    cursor: pointer;
    height: 32px;
    width: 40px;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.fugr-detail-close:hover {
    background-color: #7e7853;
    box-shadow: 0px 0px 17px 5px rgba(97,93,73,0.9);
}

/* Wide tables scroll inside their own box rather than stretching the panel. */
.fugr-detail-body {
    max-height: 420px;
    overflow: auto;
}

table.fugr-detail-table {
    width: 100%;
    border-collapse: collapse;
    color: silver;
    font-size: 16px;
}

table.fugr-detail-table thead th {
    position: sticky;
    top: 0;
    background-color: #2f2b23;
    color: #b8a680;
    text-align: left;
    padding: 6px 8px;
    border-right: 2px solid #4c4b4b;
    border-bottom: 2px solid #4c4b4b;
    white-space: nowrap;
}

table.fugr-detail-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #4c4b4b;
    border-right: 1px solid #4c4b4b;
    vertical-align: top;
}

table.fugr-detail-table td.fugr-num,
table.fugr-detail-table th.fugr-num {
    text-align: right;
    white-space: nowrap;
}

table.fugr-detail-table td:first-child,
table.fugr-detail-table th:first-child {
    white-space: nowrap;
}

table.fugr-detail-table tfoot td {
    border-top: 2px solid #4c4b4b;
    border-bottom: none;
    color: #b8a680;
    font-weight: bold;
}

p.fugr-detail-empty {
    color: #a4936b;
    text-align: left;
}

/* ---------------------------------------------------------------------------
 * Download buttons on the drill-down panel. See the matching block in
 * expense_graph_style.css - the two panels are deliberately identical.
 * ------------------------------------------------------------------------- */
.fugr-detail-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.fugr-detail-export {
    background-color: #212121;
    color: silver;
    border-radius: 4px;
    border: 1px solid black;
    outline: 2px ridge rgb(84, 84, 84);
    cursor: pointer;
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.5px;
}

.fugr-detail-export:hover {
    background-color: #7e7853;
    box-shadow: 0px 0px 17px 5px rgba(97,93,73,0.9);
}

.fugr-detail-export[disabled] {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

.fugr-detail-export[disabled]:hover {
    background-color: #212121;
    box-shadow: none;
}
