/* Card panels - matches legacy .col3 white box style */
.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 4px;
    border: none;
}

/* Table styling - matches legacy .data_grid */
.table th {
    background: #f5f5f5;
    padding: 7px;
    font-size: 0.85em;
    border-color: rgb(216, 231, 242);
}

.table td {
    padding: 7px;
    color: #555;
    font-size: 0.85em;
}

.table-hover tbody tr:hover {
    background-color: #f0f6fb;
}

/* Sort indicators */
th.sortable {
    cursor: pointer;
    user-select: none;
}
th.sort-asc::after {
    content: ' \25B2';
    font-size: 0.7em;
}
th.sort-desc::after {
    content: ' \25BC';
    font-size: 0.7em;
}

/* Reports filter sidebar */
#report-filters .form-label {
    font-size: 0.85em;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

#report-filters .table {
    font-size: 0.85em;
}

/* Performance card values */
#performance-table td:last-child {
    font-weight: 600;
    text-align: right;
}

/* Filter inputs in report table header */
.filter-input {
    font-size: 0.8em;
    padding: 2px 6px;
}

/* Navbar mini-nav stats */
.navbar .nav-link strong {
    color: #8cc8ff;
}

/* Loading spinner */
#report-loading {
    padding: 3rem 0;
}

/* Template preview modal - use available viewport height */
.modal-fullheight {
    height: calc(100vh - 2rem);
    margin: 1rem auto;
    max-height: none;
}
.modal-fullheight .modal-content {
    height: 100%;
    overflow: hidden;
}
.modal-fullheight .modal-body {
    flex: 1 1 auto;
    min-height: 0;
}

/* Template preview iframe - fill its container */
.template-preview-iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

/* Variations section pinned at bottom with own scroll */
.variations-scroll {
    max-height: 200px;
    overflow-y: auto;
}

/* Template list thumbnails */
.template-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}
.template-thumb-empty {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

/* Thumbnail hover popup */
.thumb-hover-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.thumb-hover-preview {
    display: none;
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: auto;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    background: #fff;
    z-index: 100;
}
.thumb-hover-wrap:hover .thumb-hover-preview {
    display: block;
}
