/* Version: 1.1.11 - Updated: 2026-01-21 */
.npdev-return {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.npdev-return svg {
    width: 24px;
    height: 24px;
}

.npdev-return span {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-small-font-size, 14px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-small-line-height, 20px);
}

/* Responsive: Show return button and hide breadcrumbs on mobile */
@media (max-width: 1024px) {
    .npdev-material-detail-page .breadcrumbs {
        display: none !important;
    }
    
    /* Only show return button on material detail page */
    .npdev-material-detail-page .npdev-return {
        display: flex !important;
    }
}

/* Hide mobile icon on desktop, content wrapper takes full width */
.mobile-col-icon {
    display: none;
}

.mobile-content-wrapper {
    display: grid;
    grid-template-columns: 408px 208px 112px 1fr;
    gap: 8px;
    width: 100%;
}

/* Hide mobile search on desktop */
.npdev-mobile-search {
    display: none;
}

.npdev-downloads-wrapper {
    display: flex;
    gap: 0;
    max-width: 1202px;
    margin: 0 auto;
    min-height: 600px;
}

.npdev-sidebar {
    width: 256px;
    background: #fff;
    padding: 0;
    flex-shrink: 0;
    border-right: 1px solid #EEE;
}

.sidebar-title {
    margin: 0;
    padding: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #000;
    background: #fff;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    /* Remove border between items */
}

.category-list li a {
    display: block;
    padding: 6px 16px;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.category-list li.active a,
.category-list li a:hover {
    background: #F5F5F5;
    color: #170057;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.category-list li.child-category a {
    padding-left: 35px;
    font-size: 14px;
}

.npdev-main-content {
    width: 946px;
    flex-shrink: 0;
    padding: 0 24px 40px 24px;
    background: #fff;
    overflow: visible;
}

.npdev-secondary-content {
    max-height: calc(116px + 640px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.npdev-secondary-content::-webkit-scrollbar {
    display: none;
}

.npdev-filters {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

@media (min-width: 768px) {
    .npdev-filters {
        padding: 24px 0 16px 0;
    }
}

.filter-left-group {
    display: flex;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group.filter-product {
    width: 224px;
}

.filter-group.filter-version {
    width: 224px;
}

.filter-group.filter-keyword {
    width: 288px;
}

.npdev-filters label {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #333;
    margin: 0;
}

.filter-select,
.filter-input {
    padding: 8px 16px !important;
    border: 1px solid #D6D6D6 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    color: #BBB !important;
    background: #FFF !important;
}

.filter-select.selected,
.filter-input:not(:placeholder-shown) {
    color: #333 !important;
}

.filter-select option {
    color: #333 !important;
}

.filter-select option[value=""] {
    color: #BBB !important;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M5 7.5L10 12.5L15 7.5" stroke="%23BBBBBB" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 20px 20px !important;
    padding-right: 44px !important;
    position: relative !important;
    z-index: 1 !important;
}

.filter-select::placeholder,
.filter-input::placeholder {
    color: #BBB !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

.filter-select option {
    background: #FFF !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
    line-height: 24px !important;
}

.filter-select option[value=""] {
    color: #BBB !important;
    font-weight: 400 !important;
}

.filter-select option:not([value=""]) {
    color: #333 !important;
    font-weight: 400 !important;
}

.filter-select option:not([value=""]):hover {
    background: #170057 !important;
    color: #fff !important;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #4a148c;
}

.npdev-materials-table {
    width: 100%;
    overflow: visible;
}

.table-header {
    display: grid;
    grid-template-columns: 408px 208px 112px 1fr;
    gap: 8px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #333;
}

.material-row {
    display: grid;
    grid-template-columns: 408px 208px 112px 1fr;
    gap: 8px;
    padding: 12px 8px;
    border-top: 1px solid #D6D6D6;
    align-items: flex-start;
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.material-row .col-action {
    cursor: default;
}

.material-row:hover {
    background: #F6F6FC;
}

.col-icon {
    width: 62px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ECEBF2;
    border-radius: 4px;
    padding: 12px 15px;
}

.col-icon img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.default-icon {
    font-size: 32px;
    line-height: 1;
}

.col-resource {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.col-resource-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.material-title {
    margin: 0;
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
    position: relative;
}

.material-title:hover + .material-title-tooltip {
    display: block;
}

.material-title-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    white-space: normal;
    max-width: 400px;
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
}

.material-title a {
    color: var(--dc-color-text-primary, #333);
    text-decoration: none;
    transition: color 0.2s;
}

.material-title a:hover {
    color: #7c3aed;
}

.material-description {
    margin: 0;
    color: var(--dc-color-text-secondary, #707070);
    font-size: var(--typography-base-sizes-small-font-size, 14px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-small-line-height, 20px);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    word-wrap: break-word;
    position: relative;
}

.col-resource-content {
    position: relative;
    overflow: visible;
}

.material-description:hover + .material-description-tooltip {
    display: block;
}

.material-description-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 400px;
    white-space: normal;
    font-size: var(--typography-base-sizes-small-font-size, 14px);
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-small-line-height, 20px);
}

.col-model {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    position: relative;
    overflow: visible;
}

.col-model-content {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.col-model:hover .col-model-tooltip {
    display: block;
}

.col-model-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 400px;
    white-space: normal;
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
}

.col-version {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
}

.col-action {
    text-align: left;
}

.npdev-product-downloads {
    width: 100%;
    overflow: hidden;
}

.npdev-downloads-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.npdev-btn-download,
.npdev-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.npdev-btn-download {
    padding: 6px 8px;
    border: 1px solid var(--dc-color-border-primary, #D6D6D6);
    background: var(--dc-color-foreground-quaternary, #F5F5F5);
    color: var(--dc-color-text-primary, #333);
    position: relative;
    max-width: 200px;
    white-space: nowrap;
}

.npdev-btn-download span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

/* Removed tooltip to avoid white block on hover */

.npdev-btn-download svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.npdev-btn-download svg path {
    stroke: #333333;
    transition: stroke 0.2s ease;
}

.material-row:hover .npdev-btn-download {
    border-color: #170057;
    background: #170057;
    color: #fff;
}

.material-row:hover .npdev-btn-download svg path {
    stroke: #ffffff;
}

.npdev-btn-login {
    padding: 8px 20px;
    background: #f0ad4e;
    color: #fff;
    border: none;
}

.npdev-no-materials {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.npdev-pagination {
    display: none;
}

.npdev-material-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.material-header {
    margin-bottom: 30px;
}

.material-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.material-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.material-header-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #2c3338;
}

.material-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 600;
    color: #666;
}

.meta-value {
    color: #333;
}

.material-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e5e5e5;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    font-size: 13px;
}

.category-tag:hover {
    background: #4a148c;
    color: #fff;
}

.material-summary h3,
.material-description h3,
.material-file-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3338;
    border-bottom: 2px solid #4a148c;
    padding-bottom: 8px;
}

.description-content {
    line-height: 1.8;
    color: #555;
}

.file-info-row {
    display: flex;
    gap: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.material-download-section {
    margin: 40px 0;
    text-align: center;
}

.download-notice {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 20px;
}

.download-notice p {
    margin: 0 0 15px 0;
    color: #856404;
}

.npdev-btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-icon {
    font-size: 18px;
    margin-right: 5px;
}

.material-back-link {
    margin-top: 30px;
    text-align: center;
}

.npdev-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.npdev-btn-secondary:hover {
    background: #dcdcde;
}

@media (max-width: 1024px) {
    .npdev-return {
        display: flex;
        padding: 8px 0;
    }
    
    .npdev-downloads-wrapper {
        flex-direction: column;
    }
    
    .npdev-sidebar {
        width: 100%;
        margin-bottom: 0;
        padding: 0 20px;
        border-right: none;
        border-bottom: none;
        background: transparent;
    }
    
    .sidebar-title {
        display: none;
    }
    
    .category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: transparent;
    }
    
    .category-list::-webkit-scrollbar {
        display: none;
    }
    
    .category-list li {
        flex-shrink: 0;
        border-bottom: none;
    }
    
    .category-list li a {
        display: block;
        padding: 4px 8px;
        background: #fff;
        border: 1px solid #D6D6D6;
        border-radius: 4px;
        white-space: nowrap;
        color: var(--dc-color-text-primary, #333);
        font-size: var(--typography-base-sizes-base-font-size, 16px);
        font-style: normal;
        font-weight: var(--font-weight-normal, 400);
        line-height: var(--typography-base-sizes-base-line-height, 24px);
        transition: all 0.2s;
    }
    
    .category-list li.active a,
    .category-list li a:hover {
        background: #fff;
        border-color: #170057;
        color: #170057;
    }
    
    .npdev-main-content {
        width: calc(100% - 40px);
        padding: 0;
        margin: 0 20px;
        background: transparent;
    }
    
    /* Mobile search */
    .npdev-mobile-search {
        display: block;
        width: 100%;
        margin: 16px 0;
    }
    
    .mobile-search-input {
        width: 100% !important;
        padding: 8px 16px !important;
        border: 1px solid #D6D6D6 !important;
        border-radius: 4px !important;
        background: #FFF !important;
        font-size: 16px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 24px !important;
        color: #333 !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    .mobile-search-input::placeholder {
        color: #BBB !important;
        font-size: 16px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 24px !important;
    }
    
    .npdev-secondary-content {
        max-height: none;
    }
    
    .npdev-filters {
        display: none;
    }
    
    .filter-left-group {
        display: none;
    }
    
    .filter-product,
    .filter-version,
    .filter-keyword {
        display: none;
    }
    
    .filter-keyword {
        width: 100%;
        max-width: 100%;
    }
    
    .filter-keyword label {
        display: none;
    }
    
    .filter-group {
        gap: 8px;
    }
    
    .filter-group label {
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        color: #333;
        text-align: center;
        display: block;
    }
    
    .filter-input {
        padding: 8px 16px;
        font-size: 16px;
        border: 1px solid var(--dc-color-border-primary, #D6D6D6);
        border-radius: 4px;
        background: var(--dc-color-foreground-white, #FFF);
        text-align: left;
    }
    
    .filter-input::placeholder {
        color: var(--dc-color-text-disabled, #BBB);
        font-size: var(--typography-base-sizes-base-font-size, 16px);
        font-style: normal;
        font-weight: var(--font-weight-normal, 400);
        line-height: var(--typography-base-sizes-base-line-height, 24px);
    }
    
    .table-header {
        display: none;
    }
    
    /* Mobile layout: 20% icon + 80% content */
    .mobile-col-icon {
        display: flex;
        flex: 0 0 20%;
        background: #ECEBF2;
        border-radius: 4px;
        padding: 12px 16px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-col-icon img {
        width: 32px;
        height: 32px;
        object-fit: cover;
    }
    
    .mobile-col-icon .default-icon {
        font-size: 32px;
        line-height: 1;
    }
    
    .mobile-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
        overflow: hidden;
    }
    
    .material-row {
        display: flex;
        padding: 12px 8px;
        background: #fff;
        margin-bottom: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #D6D6D6;
        cursor: pointer;
        gap: 16px;
    }
    
    .material-row:hover {
        background: #F6F6FC;
    }
    
    .col-icon {
        display: none;
    }
    
    .col-resource {
        display: block;
        margin-bottom: 0;
    }
    
    .col-resource-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .material-title {
        color: var(--dc-color-text-primary, #333);
        font-size: var(--typography-base-sizes-base-font-size, 16px);
        font-style: normal;
        font-weight: var(--font-weight-medium, 500);
        line-height: var(--typography-base-sizes-base-line-height, 24px);
        margin-bottom: 0;
    }
    
    .material-description {
        color: var(--dc-color-text-secondary, #707070);
        font-size: var(--typography-base-sizes-small-font-size, 14px);
        font-style: normal;
        font-weight: var(--font-weight-normal, 400);
        line-height: var(--typography-base-sizes-small-line-height, 20px);
        margin-bottom: 8px;
        /* Add ellipsis on mobile like desktop */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
    }
    
    .col-model {
        clear: none;
        color: var(--dc-color-text-primary, #333);
        font-size: var(--typography-base-sizes-base-font-size, 16px);
        font-style: normal;
        font-weight: var(--font-weight-normal, 400);
        line-height: var(--typography-base-sizes-base-line-height, 24px);
        margin-bottom: 4px;
        /* Add ellipsis on mobile */
        position: relative;
        overflow: visible;
    }
    
    .col-model-content {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
    
    .col-model:before {
        display: none;
    }
    
    .col-version {
        display: block;
        color: var(--dc-color-text-primary, #333);
        font-size: var(--typography-base-sizes-base-font-size, 16px);
        font-style: normal;
        font-weight: var(--font-weight-normal, 400);
        line-height: var(--typography-base-sizes-base-line-height, 24px);
        white-space: nowrap;
    }
    
    .col-version:before {
        display: none;
    }
    
    .col-action {
        text-align: left;
    }
    
    .npdev-btn-download {
        width: auto;
        padding: 6px 8px;
        color: var(--dc-color-text-primary, #333);
        font-size: var(--typography-base-sizes-base-font-size, 16px);
        font-style: normal;
        font-weight: var(--font-weight-normal, 400);
        line-height: var(--typography-base-sizes-base-line-height, 24px);
        justify-content: center;
        border-radius: 4px;
        border: 1px solid var(--dc-color-border-primary, #D6D6D6);
        background: var(--dc-color-foreground-quaternary, #F5F5F5);
    }
    
    .npdev-btn-download svg path {
        stroke: #333;
    }
    
    .npdev-pagination {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .npdev-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 2px;
    }
    
    .material-meta-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .material-header-content h1 {
        font-size: 24px;
    }
    
    /* Material Detail Footer - Mobile */
    .material-footer {
        flex-direction: row;
    }
    
    .material-title-row {
        flex: 0 0 50%;
        width: 50%;
    }
    
    .download-button-wrapper {
        flex: 0 0 50%;
        width: 50%;
        text-align: right;
    }
}

/* Material Detail Page */
.npdev-material-detail-page {
    padding: 0 0 26px 0;
    background: #f5f5f5;
}

.npdev-material-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs {
    padding: 10px 0;
    margin-bottom: 0;
}

.breadcrumbs a {
    color: var(--dc-color-text-disabled, #BBB);
    font-size: var(--typography-base-sizes-small-font-size, 14px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-small-line-height, 20px);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--dc-color-text-primary, #333);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--dc-color-text-disabled, #BBB);
    font-size: var(--typography-base-sizes-small-font-size, 14px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-small-line-height, 20px);
}

.breadcrumbs .current {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-small-font-size, 14px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-small-line-height, 20px);
}

.material-detail-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: none;
}

.material-detail-content .material-title {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-xlarge-font-size, 20px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-xlarge-line-height, 28px);
    margin: 0 0 4px 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: default;
}

.material-detail-content .material-title:hover::after {
    content: attr(data-full-title);
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    white-space: normal;
    max-width: 600px;
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    word-break: break-word;
}

/* Override flex-grow for material detail page layout */
#main-container .site-main {
    flex-grow: 0 !important;
}

/* Product download button hover effect */
.npdev-btn-download-detail:hover {
    border-color: #170057;
    background: #170057;
    color: #fff;
}

.npdev-btn-download-detail:hover svg path {
    stroke: #fff;
}

.material-detail-content .material-summary {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    padding-bottom: 27px;
    border-bottom: 1px solid #e5e5e5;
    word-break: break-word;
}

.material-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 27px;
}

.material-info-table th,
.material-info-table td {
    padding: 12px 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e5e5;
}

.material-info-table th {
    width: 151px;
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    background: transparent;
}

.material-info-table td {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
}

.material-info-table .description-cell {
    line-height: 1.8;
    word-break: break-word;
    position: relative;
}

.material-info-table .description-cell p {
    margin: 10px 0;
    word-break: break-word;
    /* Add ellipsis for long descriptions - apply to p tag */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-info-table .description-cell:hover {
    overflow: visible;
}

.material-info-table .description-cell:hover p {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.material-info-table .description-cell p:first-child {
    margin-top: 0;
}

.material-info-table .description-cell p:last-child {
    margin-bottom: 0;
}

.material-info-table .description-cell strong {
    color: #2c3338;
    font-weight: 600;
}

.material-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    background: transparent;
    border-top: 1px solid #D6D6D6;
    border-bottom: 1px solid #D6D6D6;
}

.material-title-row {
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    word-break: break-word;
    flex: 1;
    margin-right: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
}

.material-title-row:hover::after {
    content: attr(data-full-title);
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    white-space: normal;
    max-width: 400px;
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    word-break: break-word;
}

@media (max-width: 768px) {
    .material-title-row {
        cursor: pointer;
    }
    
    .material-title-row.expanded {
        white-space: normal;
        overflow: visible;
    }
    
    .material-title-row:hover::after {
        display: none;
    }
}

.download-button-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.npdev-btn-download-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid var(--dc-color-border-primary, #D6D6D6);
    background: var(--dc-color-foreground-quaternary, #F5F5F5);
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 150px;
    position: relative;
}

.npdev-btn-download-detail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Removed tooltip to avoid white block on hover */

.npdev-btn-download-detail svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.npdev-btn-download-detail svg path {
    stroke: #333333;
    transition: stroke 0.2s ease;
}

.npdev-btn-download-detail:hover {
    border-color: #170057;
    background: #170057;
    color: #fff;
}

.npdev-btn-download-detail:hover svg path {
    stroke: #ffffff;
}

.npdev-btn-login-detail {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: #e5e7eb;
    color: #374151;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.npdev-btn-login-detail:hover {
    background: #d1d5db;
}

@media (max-width: 768px) {
    .material-detail-content {
        padding: 20px;
    }
    
    .material-detail-content .material-title {
        font-size: 24px;
    }
    
    .material-info-table th,
    .material-info-table td {
        padding: 8px 12px;
    }
    
    .material-info-table th {
        width: 100px;
        font-size: 14px;
    }
    
    .material-title-row {
        text-align: left;
    }
    
    .download-button-wrapper {
        text-align: right;
        max-width: 100%;
        overflow: hidden;
    }
    
    .npdev-btn-download-detail,
    .npdev-btn-download {
        max-width: 120px;
        white-space: nowrap;
    }
    
    .npdev-btn-download-detail span,
    .npdev-btn-download span {
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    .material-info-table th {
        width: 35%;
    }
    
    .material-info-table td {
        width: 65%;
    }
}

/* Loading Spinner Animation */
@keyframes npdev-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.npdev-loading-spinner {
    display: inline-block;
    animation: npdev-spin 1s linear infinite;
    vertical-align: middle;
}

/* Toast Notification */
.npdev-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #fff;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.npdev-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Guest login button - same style as download button */
.npdev-btn-guest-login {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid var(--dc-color-border-primary, #D6D6D6);
    background: var(--dc-color-foreground-quaternary, #F5F5F5);
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.npdev-btn-guest-login svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.npdev-btn-guest-login svg path {
    stroke: #333333;
    transition: stroke 0.2s ease;
}

.npdev-btn-guest-login:hover {
    border-color: #170057;
    background: #170057;
    color: #fff;
}

.npdev-btn-guest-login:hover svg path {
    stroke: #ffffff;
}

.material-row:hover .npdev-btn-guest-login {
    border-color: #170057;
    background: #170057;
    color: #fff;
}

.material-row:hover .npdev-btn-guest-login svg path {
    stroke: #ffffff;
}

/* Guest login button for detail page */
.npdev-btn-guest-login-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid var(--dc-color-border-primary, #D6D6D6);
    background: var(--dc-color-foreground-quaternary, #F5F5F5);
    color: var(--dc-color-text-primary, #333);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.npdev-btn-guest-login-detail svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.npdev-btn-guest-login-detail svg path {
    stroke: #333333;
    transition: stroke 0.2s ease;
}

.npdev-btn-guest-login-detail:hover {
    border-color: #170057;
    background: #170057;
    color: #fff;
}

.npdev-btn-guest-login-detail:hover svg path {
    stroke: #ffffff;
}
