@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600&display=swap');

/* Frontend styling for Product Table View with Search */
.ptv-table-wrapper {
    margin: 20px 0;
    padding: 0;
    max-width: 100%;
    font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.ptv-search-form {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.ptv-search-container {
    display: flex;
    align-items: center;
}

.ptv-search-container input[type="text"] {
    padding: 10px;
    width: 300px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ptv-search-container input[type="text"]:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

.ptv-search-container button {
    padding: 10px 20px;
    border: 1px solid;
    background-color: #f7f7f7;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ptv-search-container button:hover {
    background: #ee1f27;
    color: #fff;
}

.ptv-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.ptv-table th,
.ptv-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.ptv-table th {
    background: #f4f4f4;
    font-weight: 600;
    color: #333;
    font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.ptv-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 24px;
}

.ptv-table th.sortable a {
    color: #333;
    text-decoration: none;
    display: block;
}

.ptv-table th.sortable:hover a {
    color: #ee1f27;
}

.ptv-table th.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    opacity: 0.5;
}

.ptv-table th.sorted-asc::after {
    border-top: none;
    border-bottom: 5px solid #ee1f27;
    opacity: 1;
}

.ptv-table th.sorted-desc::after {
    border-bottom: none;
    border-top: 5px solid #ee1f27;
    opacity: 1;
}

.ptv-table td {
    font-size: 14px;
    color: #555;
    font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
}

.ptv-table tr:nth-child(even) {
    background: #f9f9f9;
}

.ptv-table tr:hover {
    background: #f1f1f1;
}

.ptv-table a {
    
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ptv-table a:hover {
    color: #005177;
    text-decoration: underline;
}

.ptv-pagination {
    text-align: center;
    margin-top: 20px;
}

.ptv-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.ptv-pagination .page-numbers:hover {
    background: #ee1f27;
    color: #fff;
    border-color: #ee1f27;
}

.ptv-pagination .current {
    background: #ee1f27;
    color: #fff;
    border-color: #ee1f27;
    cursor: default;
}

@media (max-width: 768px) {
    .ptv-search-container input[type="text"] {
        width: 200px;
    }

    .ptv-table th,
    .ptv-table td {
        padding: 8px;
        font-size: 13px;
    }

    .ptv-table th.sortable::after {
        right: 4px;
    }

    .ptv-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
}