/*
 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
*/

/* Start Global styling for Tables */
table {
    width: 100%;
    border-collapse: separate;
    border: 1px solid #f16a21;
    border-spacing: 0;
    font-size: 14px;
    max-height: 400px;
    overflow: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    margin-bottom: 25px;
}

table tbody {
    display: table-row-group;
}

table tr {
    display: table-row;
}

table thead {
    background-color: #f0ebf8;
    position: sticky;
    top: 0;
    z-index: 2;
}

table th {
    padding: 18px 15px;
    font-weight: 600;
    background-color: antiquewhite;
    text-align: center;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap; /* Keep header text on one line if possible */
    display: table-cell;
    width: 1%; /* Helps columns auto-adjust to content width */
}

table td {
    padding: 15px 15px;
    text-align: center;
    color: #555555;
    border-bottom: 1px solid #f5f5f5;
    white-space: normal; /* Allow text inside cells to wrap */
    min-width: initial; /* Allows cells to shrink as much as needed */
    /* You could also remove the min-width property entirely or set to a smaller value like 80px */
    display: table-cell;
    width: 1%; /* Helps columns auto-adjust to content width */
}

table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:last-child td,
table tbody tr:last-child th {
    border-bottom: none;
}

table td .check-icon {
    color: green;
    font-size: 1.2em;
}

table td .cross-icon {
    color: red;
    font-size: 1.2em;
}

table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

table::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

table::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* End Global styling for Tables */

/* Start all figures & images throughout website */

figure, img {
    border-radius: 12px;
}

/* End all figures & images throughout website */