/**
 * Adhesives Table Styles
 * 
 * Extends the base table styles with specific styles for adhesives table
 * NO BORDER RADIUS on any elements
 */

/* Adhesives Table Specific Styles */
.akt-adhesives-table {
    /* Uses all base table styles from table.css */
}

/* No Selection Message */
.akt-adhesives-table__no-selection,
.akt-adhesives-table__no-data {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--aktd-color-ice, #F2F4F6);
    color: var(--aktd-color-font, #363D52);
    font-size: 16px;
    border: 1px solid var(--aktd-color-dark-blue-10, #DAE7EF);
}

/* Column Specific Widths */
.adhesives-table__col--product {
    min-width: 200px;
}

.adhesives-table__col--industry {
    min-width: 200px;
}

.adhesives-table__col--usage {
    min-width: 200px;
}

.adhesives-table__col--substrates {
    min-width: 200px;
}

.adhesives-table__col--viscosity {
    min-width: 120px;
}

.adhesives-table__col--base {
    min-width: 150px;
}

.adhesives-table__col--curing {
    min-width: 150px;
}

.adhesives-table__col--feature {
    min-width: 250px;
}

/* Product Column with integrated PDF Link */
.akt-adhesives-table__product-wrapper {
    display: inline-block;
}

.akt-adhesives-table__product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aktd-color-dark-blue, #0071B4) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.akt-adhesives-table__product-link:hover {
    color: var(--aktd-color-dark-blue, #0071B4) !important;
}

.akt-adhesives-table__product-link strong {
    font-weight: 600;
    font-size: 14px;
}

.akt-adhesives-table__product-link:hover strong {
    text-decoration: underline;
}

/* PDF Icon next to product name */
.akt-adhesives-table__pdf-icon {
    width: 14px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.akt-adhesives-table__product-link:hover .akt-adhesives-table__pdf-icon {
    opacity: 1;
}

/* Product name without link */
.akt-adhesives-table__product-name {
    color: var(--aktd-color-font, #363D52);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

/* Collapsible Rows - Hidden state */
.akt-table-wrapper--collapsible .akt-table__row--hidden {
    display: none;
}

.akt-table-wrapper--collapsible.is-expanded .akt-table__row--hidden {
    display: table-row;
}

/* Toggle Button: Base styles now in table.css */

/* Size and base orientation for adhesives toggle icon */
.akt-adhesives-table .akt-table__toggle-icon {
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    transform: rotate(90deg);
}

.akt-adhesives-table .akt-table__toggle-icon svg { width: 100%; height: 100%; }

.akt-adhesives-table .akt-table__toggle-button[data-expanded="true"] .akt-table__toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .akt-adhesives-table__product-link {
    }
    
    .akt-adhesives-table__pdf-icon {
        width: 12px;
        height: 14px;
    }
}

/* Data Cell Styling now inherited from table.css */

/* Produkt-Spalte typografisch angleichen */
.akt-adhesives-table .akt-adhesives-table__product-link {
    font-size: 16px;
    font-style: normal;
    font-weight: 700; /* bold */
    line-height: 20px;
    transition: none;
    text-decoration: none !important;
    color: var(--aktd-color-dark-blue, #0071B4) !important;
}

.akt-adhesives-table .akt-adhesives-table__product-link strong {
    color: var(--aktd-color-dark-blue, #0071B4) !important;
}

.akt-adhesives-table .akt-adhesives-table__product-link strong,
.akt-adhesives-table .akt-adhesives-table__product-name {
    font-size: inherit;
    font-style: inherit;
    font-weight: 700; /* bold */
    line-height: inherit;
}

/* Produkt-Link: keine Hover/Active-Effekte */
.akt-adhesives-table .akt-adhesives-table__product-link:hover,
.akt-adhesives-table .akt-adhesives-table__product-link:active {
    color: var(--aktd-color-dark-blue, #0071B4) !important;
    text-decoration: none;
}


/* Sicherstellen, dass auch das innere <strong> nie unterstrichen wird */
.akt-adhesives-table .akt-adhesives-table__product-link:hover strong {
    text-decoration: none;
}

/* PDF-Icon bei Produkt-Link ohne Hover-Effekt */
.akt-adhesives-table .akt-adhesives-table__pdf-icon {
    opacity: 1;
    transition: none;
}

.akt-adhesives-table .akt-adhesives-table__product-link:hover .akt-adhesives-table__pdf-icon {
    opacity: 1;
}

/* Header paddings now inherited from table.css */

/* Prevent feature column header from stretching unexpectedly */
.akt-adhesives-table .akt-table__head .adhesives-table__col--feature {
    white-space: nowrap;
}

/* All columns - preserve line breaks */
/* Standard: kein Zeilenumbruch erzwingen; Inhalte steuern das Layout */
.adhesives-table__col--industry,
.adhesives-table__col--usage,
.adhesives-table__col--substrates,
.adhesives-table__col--feature,
.adhesives-table__col--base,
.adhesives-table__col--curing,
.adhesives-table__col--viscosity {
    white-space: normal;
}

/* Listendarstellung für mehrzeilige Inhalte (Industry/Feature) */
.akt-adhesives-table .akt-adhesives-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display:flex;
    flex-direction: column;
    gap: 6px;
}

.akt-adhesives-table .akt-adhesives-list li {
    margin: 0;
}

.akt-adhesives-table .akt-adhesives-list__spacer {
    display: block;
    width: 100%;
    min-height: 1em;
    white-space: pre;
}

/* Viscosity Column - numerical alignment */
.adhesives-table__col--viscosity {
    font-variant-numeric: tabular-nums;
}

/* Row hover styling now inherited from table.css */

/* Print Styles */
@media print {
    .akt-adhesives-table__product-link {
        color: var(--aktd-color-font, #363D52);
        text-decoration: none;
    }
    
    .akt-adhesives-table__pdf-icon {
        display: none;
    }
    
    .akt-table__toggle-wrapper {
        display: none;
    }
    
    .akt-table-wrapper--collapsible .akt-table__row--hidden {
        display: table-row !important;
    }
}

/* Loading State for Dynamic Tables */
.akt-adhesives-table.is-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.akt-adhesives-table.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--aktd-color-dark-blue-10, #DAE7EF);
    border-top-color: var(--aktd-color-dark-blue, #0071B4);
    animation: akt-adhesives-spinner 0.8s linear infinite;
}

@keyframes akt-adhesives-spinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Accessibility Focus Styles */
.akt-adhesives-table__product-link:focus {
    outline: none;
    color: var(--aktd-color-dark-blue, #0071B4) !important;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .akt-adhesives-table__product-link {
        text-decoration: underline;
    }
    
    .akt-table__toggle-button {
        border-width: 2px;
    }
}
