/* Custom Gallog overrides and additions */

/* box toggle controls (used by tradeport modals) */
.toggle-container{
    display: flex;
    gap: 6px;
}
.toggle-item {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
.toggle-item img {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease;
}
.toggle-item img.unselected {
    filter: invert(1);
}
.toggle-item span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
    color: black;
    pointer-events: none;
}
.toggle-item span.unselected {
    color: white;
}
.toggle-item:focus {
    outline: 2px solid #007BFF;
}

/* generic tab-content visibility utility (used by tradeport pages) */
.tab-content { display: none; }
.tab-content.is-active { display: block; }

/* future custom styles can go here */

/* commodity list/table tweaks: clear background so rows blend with card,
   but keep alternating shading for line distinction */

/* DataTables dark pagination and controls override */
/* ensure gallog styling replaces default Bulma/Datatables blue */

/* tables generated by DataTables should be transparent regardless of
   --bulma-table-background-color variable */
.dataTables_wrapper table,
.dataTables_wrapper .dataTables_scrollHead table,
.dataTables_wrapper .dataTables_scrollBody table {
    background-color: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #272b30 !important;
    color: #aaa !important;
    border: 1px solid #444 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #3a3f44 !important;
    color: #fff !important;
    border-color: #666 !important;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-color: #444 !important;
}

/* commodity list/table tweaks: clear background so rows blend with card,
   but keep alternating shading for line distinction */
.commodity-table {
    background-color: transparent !important; /* card already provides main background; override Bulma */
}
.commodity-table tbody tr {
    /* subtle dark overlay for contrast on dark card background */
    background-color: rgba(0,0,0,0.08);
}
.commodity-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.12);
}
.commodity-table thead {
    background-color: rgba(0,0,0,0.05);
}
.commodity-table td, .commodity-table th {
    border-color: rgba(0,0,0,0.1);
}
